---
policy: /ce/ca/aws/lambda/function-runtime
logic: /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
executionTime: 2026-01-31T12:02:06.13538636Z
generationMs: 55
executionMs: 884
rows:
  - id: '001'
    match: true
    status:
      expected: DISAPPEARED
      actual: DISAPPEARED
    conditionIndex:
      expected: 99
      actual: 99
    conditionText:
      expected: isDisappeared(CA10__disappearanceTime__c)
      actual: isDisappeared(CA10__disappearanceTime__c)
    runtimeError: {}
  - id: '002'
    match: true
    status:
      expected: INAPPLICABLE
      actual: INAPPLICABLE
    conditionIndex:
      expected: 199
      actual: 199
    conditionText:
      expected: extract('CA10__packageType__c') == 'Image'
      actual: extract('CA10__packageType__c') == 'Image'
    runtimeError: {}
  - id: '003'
    match: true
    status:
      expected: INCOMPLIANT
      actual: INCOMPLIANT
    conditionIndex:
      expected: 299
      actual: 299
    conditionText:
      expected: "extract('CA10__runtime__c').containsAny(setOfText(['nodejs', 'dotnetcore2.0',\
        \ 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10',\
        \ 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6',\
        \ 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided',\
        \ 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x',\
        \ 'python3.9']))"
      actual: "extract('CA10__runtime__c').containsAny(setOfText(['nodejs', 'dotnetcore2.0',\
        \ 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10',\
        \ 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6',\
        \ 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided',\
        \ 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x',\
        \ 'python3.9']))"
    runtimeError: {}
  - id: '004'
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 300
      actual: 300
    conditionText:
      expected: otherwise
      actual: otherwise
    runtimeError: {}
usedFiles:
  - path: /ce/ca/aws/lambda/function-runtime/policy.yaml
    md5Hash: 584C35F0D6794F3C898380F3C8C413B3
    content: "---\nnames:\n  full: \"AWS Lambda Function Runtime is deprecated\"\n\
      \  contextual: \"Function Runtime is deprecated\"\ndescription: >\n  Ensure\
      \ that AWS Lambda functions are using supported runtimes. AWS periodically \n\
      \  deprecates runtimes that reach the end of their community support, after\
      \ which \n  they no longer receive security updates or technical support.\n\
      type: \"COMPLIANCE_POLICY\"\ncategories:\n  - \"RELIABILITY\"\nframeworkMappings:\n\
      \  - \"/frameworks/aws-fsbp-v1.0.0/lambda/02\"\n  - \"/frameworks/cloudaware/resource-reliability/infrastructure-modernization\"\
      \nsimilarPolicies:\n  awsSecurityHub:\n    - name: \"[Lambda.2] Lambda functions\
      \ should use supported runtimes\"\n      url: \"https://docs.aws.amazon.com/securityhub/latest/userguide/lambda-controls.html#lambda-2\"\
      \n  cloudConformity:\n    - url: https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/Lambda/supported-runtime-environment.html\n\
      \      name: Lambda Using Supported Runtime Environment"
  - path: /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
    md5Hash: 097B72808DE8F9E8A1A442313E52DD71
    content: "---\ninputType: \"CA10__CaAwsLambdaFunction__c\"\ntestData:\n  - file:\
      \ \"test-data.json\"\nimportExtracts:\n  - file: \"/types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml\"\
      \nconditions:\n  - status: \"INAPPLICABLE\"\n    currentStateMessage: \"This\
      \ policy doesn't apply to Lambda functions created using a container image.\"\
      \n    check:\n      IS_EQUAL:\n        left:\n          EXTRACT: \"CA10__packageType__c\"\
      \n        right:\n          TEXT: \"Image\"\n  - status: \"INCOMPLIANT\"\n \
      \   currentStateMessage: \"The Lambda Function Runtime is in the list of deprecated\
      \ runtimes.\"\n    remediationMessage: \"Update the function to use a newer,\
      \ supported runtime version.\"\n    check:\n      CONTAINS_ANY:\n        arg:\n\
      \          EXTRACT: \"CA10__runtime__c\"\n        search:\n          SET:\n\
      \            itemType: \"TEXT\"\n            items:\n              - \"nodejs\"\
      \n              - \"dotnetcore2.0\"\n              - \"dotnetcore1.0\"\n   \
      \           - \"nodejs6.10\"\n              - \"nodejs4.3-edge\"\n         \
      \     - \"nodejs4.3\"\n              - \"nodejs8.10\"\n              - \"python2.7\"\
      \n              - \"ruby2.5\"\n              - \"nodejs10.x\"\n            \
      \  - \"dotnetcore2.1\"\n              - \"dotnet5.0\"\n              - \"python3.6\"\
      \n              - \"nodejs12.x\"\n              - \"dotnetcore3.1\"\n      \
      \        - \"python3.7\"\n              - \"nodejs14.x\"\n              - \"\
      ruby2.7\"\n              - \"provided\"\n              - \"go1.x\"\n       \
      \       - \"java8\"\n              - \"dotnet7\"\n              - \"nodejs16.x\"\
      \n              - \"python3.8\"\n              - \"dotnet6\"\n             \
      \ - \"nodejs18.x\"\n              - \"python3.9\"\notherwise:\n  status: \"\
      COMPLIANT\"\n  currentStateMessage: \"The Lambda function is using a supported\
      \ runtime.\"\n\n\n  \n\n\n"
  - path: /ce/ca/aws/lambda/function-runtime/test-data.json
    md5Hash: B70DBB3F37998452FCF59466F5186914
    content: |
      [
        {
          "expectedResult": {
            "status": "DISAPPEARED",
            "conditionIndex": "99",
            "conditionText": "isDisappeared(CA10__disappearanceTime__c)",
            "runtimeError": null
          },
          "context": { "snapshotTime": "2025-12-01T00:50:53Z" },
          "CA10__disappearanceTime__c": "2025-09-29T19:17:49Z",
          "CA10__runtime__c": "provided.al2023",
          "CA10__packageType__c": "Zip",
          "Id": "001"
        },
        {
          "expectedResult": {
            "status": "INAPPLICABLE",
            "conditionIndex": "199",
            "conditionText": "extract('CA10__packageType__c') == 'Image'",
            "runtimeError": null
          },
          "context": { "snapshotTime": "2025-12-01T00:50:53Z" },
          "CA10__disappearanceTime__c": null,
          "CA10__runtime__c": "",
          "CA10__packageType__c": "Image",
          "Id": "002"
        },
        {
          "expectedResult": {
            "status": "INCOMPLIANT",
            "conditionIndex": "299",
            "conditionText": "extract('CA10__runtime__c').containsAny(setOfText(['nodejs', 'dotnetcore2.0', 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10', 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6', 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided', 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x', 'python3.9']))",
            "runtimeError": null
          },
          "context": { "snapshotTime": "2025-12-01T00:50:53Z" },
          "CA10__disappearanceTime__c": null,
          "CA10__runtime__c": "go1.x",
          "CA10__packageType__c": "Zip",
          "Id": "003"
        },
        {
          "expectedResult": {
            "status": "COMPLIANT",
            "conditionIndex": "300",
            "conditionText": "otherwise",
            "runtimeError": null
          },
          "context": { "snapshotTime": "2025-12-01T00:50:53Z" },
          "CA10__disappearanceTime__c": null,
          "CA10__runtime__c": "python3.14",
          "CA10__packageType__c": "Zip",
          "Id": "004"
        }
      ]
  - path: /types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml
    md5Hash: 76AAEC535F0E5F244F3303D8C3C2C9CE
    content: "---\nextracts:\n# Nullable. Text.\n  - name: \"CA10__runtime__c\"\n\
      \    value: \n      FIELD:\n        path: \"CA10__runtime__c\"\n# Values: PassThrough\
      \ | Active. Not nullable. Text.\n  - name: \"CA10__tracingConfigResponseMode__c\"\
      \n    value: \n      FIELD:\n        path: \"CA10__tracingConfigResponseMode__c\"\
      \n        undeterminedIf:\n          isEmpty: \"The function tracing config\
      \ cannot be empty. Possible data corruption.\"\n# Values: Zip | Image. Not nullable.\
      \ Text.\n  - name: \"CA10__packageType__c\"\n    value: \n      FIELD:\n   \
      \     path: \"CA10__packageType__c\"\n        undeterminedIf:\n          isEmpty:\
      \ \"The function package type cannot be empty. Possible data corruption.\"\n\
      # Nullable. Can't have no access, retrieved via lambda:ListFunctions\n  - name:\
      \ \"CA10__vpcId__c\"\n    value: \n      FIELD:\n        path: \"CA10__vpcId__c\"\
      \n"
script: |-
  CREATE TEMP FUNCTION mock_ExpectedResult()
  RETURNS ARRAY<STRUCT<
          Id STRING,
          expectedResult STRUCT<status STRING, conditionIndex DECIMAL, conditionText STRING, runtimeError STRING>
      >>
  DETERMINISTIC
  LANGUAGE js
  AS r"""
    return [ {
    "Id" : "001",
    "expectedResult" : {
      "status" : "DISAPPEARED",
      "conditionIndex" : "99",
      "conditionText" : "isDisappeared(CA10__disappearanceTime__c)",
      "runtimeError" : null
    }
  }, {
    "Id" : "002",
    "expectedResult" : {
      "status" : "INAPPLICABLE",
      "conditionIndex" : "199",
      "conditionText" : "extract('CA10__packageType__c') == 'Image'",
      "runtimeError" : null
    }
  }, {
    "Id" : "003",
    "expectedResult" : {
      "status" : "INCOMPLIANT",
      "conditionIndex" : "299",
      "conditionText" : "extract('CA10__runtime__c').containsAny(setOfText(['nodejs', 'dotnetcore2.0', 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10', 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6', 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided', 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x', 'python3.9']))",
      "runtimeError" : null
    }
  }, {
    "Id" : "004",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : "300",
      "conditionText" : "otherwise",
      "runtimeError" : null
    }
  } ];
  """;

  CREATE TEMP FUNCTION mock_CA10__CaAwsLambdaFunction__c()
  RETURNS ARRAY<STRUCT<
      CA10__disappearanceTime__c TIMESTAMP,
      CA10__packageType__c STRING,
      CA10__runtime__c STRING,
      Id STRING,
      context STRUCT<
          snapshotTime TIMESTAMP
      >
  >>
  DETERMINISTIC
  LANGUAGE js
  AS r"""
    return [ {
    "context" : {
      "snapshotTime" : new Date("2025-12-01T00:50:53Z")
    },
    "CA10__disappearanceTime__c" : new Date("2025-09-29T19:17:49Z"),
    "CA10__packageType__c" : "Zip",
    "CA10__runtime__c" : "provided.al2023",
    "Id" : "001"
  }, {
    "context" : {
      "snapshotTime" : new Date("2025-12-01T00:50:53Z")
    },
    "CA10__packageType__c" : "Image",
    "CA10__runtime__c" : "",
    "Id" : "002"
  }, {
    "context" : {
      "snapshotTime" : new Date("2025-12-01T00:50:53Z")
    },
    "CA10__packageType__c" : "Zip",
    "CA10__runtime__c" : "go1.x",
    "Id" : "003"
  }, {
    "context" : {
      "snapshotTime" : new Date("2025-12-01T00:50:53Z")
    },
    "CA10__packageType__c" : "Zip",
    "CA10__runtime__c" : "python3.14",
    "Id" : "004"
  } ];
  """;

  CREATE TEMP FUNCTION process_CA10__CaAwsLambdaFunction__c(
      obj STRUCT<
          CA10__disappearanceTime__c TIMESTAMP,
          CA10__packageType__c STRING,
          CA10__runtime__c STRING,
          Id STRING
      >,
      snapshotTime TIMESTAMP
  )
  RETURNS STRUCT<status STRING, conditionIndex DECIMAL, conditionText STRING, currentStateMessage STRING, currentStateReferences STRING, remediation STRING, runtimeError STRING>
  DETERMINISTIC
  LANGUAGE js
  AS r"""
  var BytesLib = new function () {
      this.normalize = function(arg) {
          return arg == null ? '' : arg;
      };
      this.isEmpty = function(arg) {
          return this.normalize(arg) == '';
      };
      this.isNotEmpty = function(arg) {
          return this.normalize(arg) != '';
      };
      this.equal = function(left, right) {
          return this.normalize(left) == this.normalize(right);
      };
      this.notEqual = function(left, right) {
          return this.normalize(left) != this.normalize(right);
      };
      this.startsWith = function(arg, substring) {
          return this.normalize(arg).startsWith(this.normalize(substring));
      };
      this.endsWith = function(arg, substring) {
          return this.normalize(arg).endsWith(this.normalize(substring));
      };
      this.contains = function(arg, substring) {
          return this.normalize(arg).includes(this.normalize(substring));
      };
      this.containsAll = function(arg, substrings) {
          if (substrings == null || substrings.length === 0) return false;
          let normalizedArg = this.normalize(arg);
          return substrings.every(sub => normalizedArg.includes(this.normalize(sub)));
      };
      this.containsAny = function(arg, substrings) {
          if (substrings == null || substrings.length === 0) return false;
          let normalizedArg = this.normalize(arg);
          return substrings.some(sub => normalizedArg.includes(this.normalize(sub)));
      };
  }();
  var TextLib = new function () {
      this.normalize = function(arg) {
          return arg == null ? '' : arg.replace(/\s+/g, ' ').trim().toLowerCase();
      };
      this.isEmpty = function(arg) {
          return this.normalize(arg) == '';
      };
      this.isNotEmpty = function(arg) {
          return this.normalize(arg) != '';
      };
      this.equal = function(left, right) {
          return this.normalize(left) == this.normalize(right);
      };
      this.notEqual = function(left, right) {
          return this.normalize(left) != this.normalize(right);
      };
      this.startsWith = function(arg, substring) {
          return this.normalize(arg).startsWith(this.normalize(substring));
      };
      this.endsWith = function(arg, substring) {
          return this.normalize(arg).endsWith(this.normalize(substring));
      };
      this.contains = function(arg, substring) {
          return this.normalize(arg).includes(this.normalize(substring));
      };
      this.containsAll = function(arg, substrings) {
          if (substrings == null || substrings.length === 0) return false;
          let normalizedArg = this.normalize(arg);
          return substrings.every(sub => normalizedArg.includes(this.normalize(sub)));
      };
      this.containsAny = function(arg, substrings) {
          if (substrings == null || substrings.length === 0) return false;
          let normalizedArg = this.normalize(arg);
          return substrings.some(sub => normalizedArg.includes(this.normalize(sub)));
      };
  }();
  var CollectionLib = new function () {
      this.parse = function(arg, separator, skipEmpty, skipDuplicates, sort, normalize) {
          if (arg == null) return [];
          let parts = arg.split(separator);
          return this.fromArray(parts, skipEmpty, skipDuplicates, sort, normalize);
      };
      this.fromArray = function(arr, skipEmpty, skipDuplicates, sort, normalize) {
          if (arr == null) return [];
          let result = [];
          let seen = new Set();
          arr.forEach(el => {
              let normalized = normalize ? TextLib.normalize(el) : BytesLib.normalize(el);
              if (!skipEmpty || (normalize ? TextLib.isNotEmpty(el) : BytesLib.isNotEmpty(el))) {
                  if (!skipDuplicates || !seen.has(normalized)) {
                      if (skipDuplicates) seen.add(normalized);
                      result.push(normalized);
                  }
              }
          });
          if (sort) result.sort();
          return result;
      };
      this.equal = function(left, right) {
          left = left == null ? [] : left;
          right = right == null ? [] : right;
          if (left.length !== right.length) return false;
          for (let i = 0; i < left.length; i++) {
              if (left[i] !== right[i]) return false;
          }
          return true;
      };
      this.notEqual = function(left, right) {
          return !this.equal(left, right);
      };
      this.size = function(collection) {
          return collection == null ? 0 : collection.length;
      };
      this.startsWith = function(collection, search, normalize) {
          if (collection == null || collection.length === 0) return false;
          let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search);
          return collection[0] === normalizedSearch;
      };
      this.endsWith = function(collection, search, normalize) {
          if (collection == null || collection.length === 0) return false;
          let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search);
          return collection[collection.length - 1] === normalizedSearch;
      };
      this.contains = function(collection, search, normalize) {
          if (collection == null || collection.length === 0) return false;
          return collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search));
      };
      this.containsAll = function(collection, searchArray, normalize) {
          if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false;
          return searchArray.every(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)));
      };
      this.containsAny = function(collection, searchArray, normalize) {
          if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false;
          return searchArray.some(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)));
      };
  }();
      var references1 = [];
      // condition[0], conditionIndex:[0..99]
      references1.push('Deleted From AWS [CA10__disappearanceTime__c]: ' + obj.CA10__disappearanceTime__c);
      if (obj.CA10__disappearanceTime__c != null) {
          return {status: 'DISAPPEARED', conditionIndex: 99, conditionText: "isDisappeared(CA10__disappearanceTime__c)", currentStateMessage: "Object is deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[1], conditionIndex:[100..199]
      function fieldChecked4() {
          if (TextLib.isEmpty(obj.CA10__packageType__c)) {
              throw new Error("UNDETERMINED condition:101", {cause: {status: 'UNDETERMINED', conditionIndex: 101, conditionText: "CA10__packageType__c.isEmpty()", currentStateMessage: "The function package type cannot be empty. Possible data corruption.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}});
          }
          return obj.CA10__packageType__c;
      }
      function extract3() { if (!this.out) { this.out = fieldChecked4(); } return this.out; };
      references1.push('Package Type [obj.CA10__packageType__c]: ' + obj.CA10__packageType__c);
      try {
          if (TextLib.equal(extract3.call(extract3), 'Image')) {
              return {status: 'INAPPLICABLE', conditionIndex: 199, conditionText: "extract('CA10__packageType__c') == 'Image'", currentStateMessage: "This policy doesn't apply to Lambda functions created using a container image.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
          }
      } catch (err) {
          if (err.cause && err.cause.status) { return err.cause; } else { throw err; }
      }
      // condition[2], conditionIndex:[200..299]
      function extract6() { if (!this.out) { this.out = obj.CA10__runtime__c; } return this.out; };
      references1.push('Runtime [obj.CA10__runtime__c]: ' + obj.CA10__runtime__c);
      if (TextLib.containsAny(extract6.call(extract6), CollectionLib.fromArray(['nodejs', 'dotnetcore2.0', 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10', 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6', 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided', 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x', 'python3.9'], true, true, true, true))) {
          return {status: 'INCOMPLIANT', conditionIndex: 299, conditionText: "extract('CA10__runtime__c').containsAny(setOfText(['nodejs', 'dotnetcore2.0', 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10', 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6', 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided', 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x', 'python3.9']))", currentStateMessage: "The Lambda Function Runtime is in the list of deprecated runtimes.", currentStateReferences: references1.join('\n'), remediation: "Update the function to use a newer, supported runtime version.", runtimeError: null};
      }
      return {status: 'COMPLIANT', conditionIndex: 300, conditionText: "otherwise", currentStateMessage: "The Lambda function is using a supported runtime.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
  """;


  SELECT
    expectedResult.Id as Id,
    IF (
      IFNULL(expectedResult.expectedResult.status, '') = IFNULL(sObject.result.status, '')
      AND IFNULL(expectedResult.expectedResult.conditionIndex, -1) = IFNULL(sObject.result.conditionIndex, -1)
      AND IFNULL(expectedResult.expectedResult.conditionText, '') = IFNULL(sObject.result.conditionText, '')
      AND IFNULL(expectedResult.expectedResult.runtimeError, '') = IFNULL(sObject.result.runtimeError, ''),
      "MATCH",
      "FAIL"
    ) as match,
    expectedResult.expectedResult.status as expectedStatus, sObject.result.status as actualStatus,
    expectedResult.expectedResult.conditionIndex as expectedConditionIndex, sObject.result.conditionIndex as actualConditionIndex,
    expectedResult.expectedResult.conditionText as expectedConditionText, sObject.result.conditionText as actualConditionText,
    expectedResult.expectedResult.runtimeError as expectedRuntimeError, sObject.result.runtimeError as actualRuntimeError
  FROM UNNEST(mock_ExpectedResult()) expectedResult
  LEFT JOIN (
      SELECT
          sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c,
          sObject.CA10__packageType__c AS CA10__packageType__c,
          sObject.CA10__runtime__c AS CA10__runtime__c,
          sObject.Id AS Id,
          process_CA10__CaAwsLambdaFunction__c(
              STRUCT(
                  sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c,
                  sObject.CA10__packageType__c AS CA10__packageType__c,
                  sObject.CA10__runtime__c AS CA10__runtime__c,
                  sObject.Id AS Id
              ),
              sObject.context.snapshotTime
          ) as result
      FROM UNNEST(mock_CA10__CaAwsLambdaFunction__c()) AS sObject
  ) sObject ON sObject.Id = expectedResult.Id;
