--- policy: /ce/ca/aws/bedrock/knowledge-base-model-support logic: /ce/ca/aws/bedrock/knowledge-base-model-support/prod.logic.yaml executionTime: 2026-10-30T18:09:10.699834247Z generationMs: 97 executionMs: 975 rows: - id: active match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: legacy match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1199 actual: 1199 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' runtimeError: {} - id: eol-unrecognized-native-state match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 1200 actual: 1200 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: missing-lifecycle match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 1004 actual: 1004 conditionText: expected: CA10A2__modelLifecycleStatus__c.isEmpty() actual: CA10A2__modelLifecycleStatus__c.isEmpty() runtimeError: {} - id: blank-lifecycle match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 1004 actual: 1004 conditionText: expected: CA10A2__modelLifecycleStatus__c.isEmpty() actual: CA10A2__modelLifecycleStatus__c.isEmpty() runtimeError: {} - id: unknown-lifecycle match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 1200 actual: 1200 conditionText: expected: otherwise actual: otherwise runtimeError: {} - id: wrong-case-lifecycle match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: whitespace-lifecycle match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 1004 actual: 1004 conditionText: expected: CA10A2__modelLifecycleStatus__c.isEmpty() actual: CA10A2__modelLifecycleStatus__c.isEmpty() runtimeError: {} - id: missing-model-reference match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 699 actual: 699 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty() actual: extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty() runtimeError: {} - id: uncollected-model match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 899 actual: 899 conditionText: expected: isEmptyLookup('CA10A2__foundationEmbeddingModel__r') actual: isEmptyLookup('CA10A2__foundationEmbeddingModel__r') runtimeError: {} - id: unresolved-model match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 904 actual: 904 conditionText: expected: CA10A2__modelArn__c.isEmpty() actual: CA10A2__modelArn__c.isEmpty() runtimeError: {} - id: disappeared-active-model match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 899 actual: 899 conditionText: expected: isEmptyLookup('CA10A2__foundationEmbeddingModel__r') actual: isEmptyLookup('CA10A2__foundationEmbeddingModel__r') runtimeError: {} - id: disappeared-legacy-model match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 899 actual: 899 conditionText: expected: isEmptyLookup('CA10A2__foundationEmbeddingModel__r') actual: isEmptyLookup('CA10A2__foundationEmbeddingModel__r') runtimeError: {} - id: deleting match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 399 actual: 399 conditionText: expected: extract('CA10A2__status__c') == 'DELETING' actual: extract('CA10A2__status__c') == 'DELETING' runtimeError: {} - id: disappeared-knowledge-base match: true status: expected: DISAPPEARED actual: DISAPPEARED conditionIndex: expected: 99 actual: 99 conditionText: expected: isDisappeared(CA10A2__disappearanceTime__c) actual: isDisappeared(CA10A2__disappearanceTime__c) runtimeError: {} - id: configured-creating match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1199 actual: 1199 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' runtimeError: {} - id: configured-updating match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1199 actual: 1199 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' runtimeError: {} - id: configured-failed match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1199 actual: 1199 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' runtimeError: {} - id: configured-delete_unsuccessful match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1199 actual: 1199 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' runtimeError: {} - id: configured-update_unsuccessful match: true status: expected: INCOMPLIANT actual: INCOMPLIANT conditionIndex: expected: 1199 actual: 1199 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY' runtimeError: {} - id: unknown-status match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 499 actual: 499 conditionText: expected: "not(setOfText(['CREATING', 'ACTIVE', 'UPDATING', 'FAILED', 'DELETE_UNSUCCESSFUL',\ \ 'UPDATE_UNSUCCESSFUL']).contains(extract('CA10A2__status__c')))" actual: "not(setOfText(['CREATING', 'ACTIVE', 'UPDATING', 'FAILED', 'DELETE_UNSUCCESSFUL',\ \ 'UPDATE_UNSUCCESSFUL']).contains(extract('CA10A2__status__c')))" runtimeError: {} - id: missing-status match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10A2__status__c.isEmpty() actual: CA10A2__status__c.isEmpty() runtimeError: {} - id: blank-status match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 301 actual: 301 conditionText: expected: CA10A2__status__c.isEmpty() actual: CA10A2__status__c.isEmpty() runtimeError: {} - id: sql-knowledge-base match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() actual: extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() runtimeError: {} - id: kendra-knowledge-base match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() actual: extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() runtimeError: {} - id: unresolved-kendra-reference match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 299 actual: 299 conditionText: expected: extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() actual: extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() runtimeError: {} - id: conflicting-sql-and-embedding match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 199 actual: 199 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty()) actual: extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty()) runtimeError: {} - id: conflicting-kendra-and-embedding match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 199 actual: 199 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty()) actual: extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty()) runtimeError: {} - id: future-snapshot-active match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: kendra-helper-fk-only match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 699 actual: 699 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty() actual: extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty() runtimeError: {} - id: missing-native-embedding-arn match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 799 actual: 799 conditionText: expected: not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/'))) actual: not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/'))) runtimeError: {} - id: sagemaker-embedding-excluded match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 599 actual: 599 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:')) actual: extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:')) runtimeError: {} - id: mismatched-model-arn match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') actual: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') runtimeError: {} - id: mismatched-model-region match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') actual: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') runtimeError: {} - id: missing-model-arn match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 904 actual: 904 conditionText: expected: CA10A2__modelArn__c.isEmpty() actual: CA10A2__modelArn__c.isEmpty() runtimeError: {} - id: active-titan-g1 match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: active-cohere-english match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: active-cohere-multilingual match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: active-nova-multimodal match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: active-govcloud-titan match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: sagemaker-split-native-arn match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 599 actual: 599 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:')) actual: extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:')) runtimeError: {} - id: sagemaker-with-stale-foundation-helper match: true status: expected: INAPPLICABLE actual: INAPPLICABLE conditionIndex: expected: 599 actual: 599 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:')) actual: extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:')) runtimeError: {} - id: conflicting-foundation-and-sagemaker match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 199 actual: 199 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty()) actual: extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty()) runtimeError: {} - id: empty-sagemaker-field match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} - id: non-foundation-arn-active match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 799 actual: 799 conditionText: expected: not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/'))) actual: not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/'))) runtimeError: {} - id: non-foundation-arn-legacy match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 799 actual: 799 conditionText: expected: not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/'))) actual: not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/'))) runtimeError: {} - id: case-sensitive-model-identity match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') actual: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') runtimeError: {} - id: whitespace-model-identity match: true status: expected: UNDETERMINED actual: UNDETERMINED conditionIndex: expected: 999 actual: 999 conditionText: expected: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') actual: extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c') runtimeError: {} - id: storage-config-type-is-not-kb-variant match: true status: expected: COMPLIANT actual: COMPLIANT conditionIndex: expected: 1099 actual: 1099 conditionText: expected: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' actual: extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE' runtimeError: {} usedFiles: - path: /ce/ca/aws/bedrock/knowledge-base-model-support/policy.yaml md5Hash: 2FD82D8D4311CDE8E87CBD6D7704C86D content: | --- names: full: AWS Bedrock Knowledge Base should use an Active embedding model contextual: Knowledge Base should use an Active embedding model description: > Ensure that the foundation embedding model configured for an Amazon Bedrock knowledge base is Active rather than Legacy to plan migration before regional model retirement disrupts ingestion or retrieval. type: BEST_PRACTICE categories: - RELIABILITY frameworkMappings: - /frameworks/cloudaware/resource-reliability/infrastructure-modernization - path: /ce/ca/aws/bedrock/knowledge-base-model-support/prod.logic.yaml md5Hash: 2EC07C8248AED673DD678C4A22E37413 content: | --- inputType: CA10A2__CaAwsBedrockKnowledgeBase__c testData: - file: test-data.json importExtracts: - file: /types/CA10A2__CaAwsBedrockKnowledgeBase__c/object.extracts.yaml - file: /types/CA10A2__CaAwsBedrockFoundationModel__c/object.extracts.yaml conditions: - status: UNDETERMINED currentStateMessage: The knowledge base has conflicting foundation embedding and SQL, Kendra, or SageMaker configuration. check: AND: args: - NOT_EMPTY: arg: EXTRACT: CA10A2__foundationEmbeddingModelArn__c - OR: args: - IS_EQUAL: left: EXTRACT: CA10A2__sqlConfigType__c right: TEXT: REDSHIFT - NOT_EMPTY: arg: EXTRACT: CA10A2__kendraIndexArn__c - NOT_EMPTY: arg: EXTRACT: CA10A2__sageMakerEmbeddingModelArn__c - status: INAPPLICABLE currentStateMessage: The knowledge base has SQL or Amazon Kendra configuration. check: OR: args: - IS_EQUAL: left: EXTRACT: CA10A2__sqlConfigType__c right: TEXT: REDSHIFT - NOT_EMPTY: arg: EXTRACT: CA10A2__kendraIndexArn__c - status: INAPPLICABLE currentStateMessage: The knowledge base is being deleted. check: IS_EQUAL: left: EXTRACT: CA10A2__status__c right: TEXT: DELETING - status: UNDETERMINED currentStateMessage: The knowledge base status is unrecognized. check: NOT: arg: CONTAINS: arg: SET: itemType: TEXT items: - CREATING - ACTIVE - UPDATING - FAILED - DELETE_UNSUCCESSFUL - UPDATE_UNSUCCESSFUL search: EXTRACT: CA10A2__status__c - status: INAPPLICABLE currentStateMessage: The embedding model uses a SageMaker endpoint outside the foundation-model lifecycle scope. check: OR: args: - CONTAINS: arg: EXTRACT: CA10A2__foundationEmbeddingModelArn__c search: BYTES: ":sagemaker:" - CONTAINS: arg: EXTRACT: CA10A2__sageMakerEmbeddingModelArn__c search: BYTES: ":sagemaker:" - status: INAPPLICABLE currentStateMessage: No native foundation embedding ARN or model relationship identifies an assessable vector configuration; managed and other unclassified variants are outside this policy scope. check: AND: args: - IS_EMPTY: arg: EXTRACT: CA10A2__foundationEmbeddingModelArn__c - IS_EMPTY: arg: EXTRACT: CA10A2__foundationEmbeddingModel__c - status: UNDETERMINED currentStateMessage: The configured embedding ARN is missing or does not identify a foundation model. check: NOT: arg: CONTAINS: arg: EXTRACT: CA10A2__foundationEmbeddingModelArn__c search: BYTES: "::foundation-model/" - status: UNDETERMINED currentStateMessage: The foundation embedding model lookup is missing, unresolved, or disappeared; its lifecycle cannot be established. check: IS_EMPTY_LOOKUP: CA10A2__foundationEmbeddingModel__r - status: UNDETERMINED currentStateMessage: The related foundation model ARN does not match the knowledge base's configured embedding model ARN and Region. check: NOT_EQUAL: left: EXTRACT: CA10A2__foundationEmbeddingModelArn__c right: EXTRACT: CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c - status: COMPLIANT currentStateMessage: The configured foundation embedding model is Active in its AWS Region. check: IS_EQUAL: left: EXTRACT: CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c right: TEXT: ACTIVE - status: INCOMPLIANT currentStateMessage: The configured foundation embedding model is Legacy and scheduled for retirement. remediationMessage: Plan migration to an Active embedding model, including re-embedding and rebuilding the vector index as required. check: IS_EQUAL: left: EXTRACT: CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c right: TEXT: LEGACY otherwise: status: UNDETERMINED currentStateMessage: The configured embedding model lifecycle status is missing or unrecognized; verify its regional status in Amazon Bedrock. - path: /ce/ca/aws/bedrock/knowledge-base-model-support/test-data.json md5Hash: 267E9A8B36F22C3779D7AD979A31AA86 content: | [ { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-active", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-active", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "active", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-legacy", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-legacy", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "legacy", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 1199, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-eol-unrecognized-native-state", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-eol-unrecognized-native-state", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "EOL", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "eol-unrecognized-native-state", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 1200, "conditionText": "otherwise" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-missing-lifecycle", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-missing-lifecycle", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": null, "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "missing-lifecycle", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 1004, "conditionText": "CA10A2__modelLifecycleStatus__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-blank-lifecycle", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-blank-lifecycle", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "blank-lifecycle", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 1004, "conditionText": "CA10A2__modelLifecycleStatus__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-unknown-lifecycle", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-unknown-lifecycle", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "UNKNOWN", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "unknown-lifecycle", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 1200, "conditionText": "otherwise" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-wrong-case-lifecycle", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-wrong-case-lifecycle", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "active", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "wrong-case-lifecycle", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-whitespace-lifecycle", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-whitespace-lifecycle", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": " ", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "whitespace-lifecycle", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 1004, "conditionText": "CA10A2__modelLifecycleStatus__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "missing-model-reference", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 699, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "uncollected-model", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 899, "conditionText": "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-unresolved-model", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": null, "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "unresolved-model", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 904, "conditionText": "CA10A2__modelArn__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-disappeared-active-model", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-disappeared-active-model", "CA10A2__disappearanceTime__c": "2026-10-22T00:00:00Z", "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "disappeared-active-model", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 899, "conditionText": "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-disappeared-legacy-model", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-disappeared-legacy-model", "CA10A2__disappearanceTime__c": "2026-10-22T00:00:00Z", "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "disappeared-legacy-model", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 899, "conditionText": "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "DELETING", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-deleting", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-deleting", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "deleting", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 399, "conditionText": "extract('CA10A2__status__c') == 'DELETING'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": "2026-10-22T00:00:00Z", "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-disappeared-knowledge-base", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-disappeared-knowledge-base", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "disappeared-knowledge-base", "expectedResult": { "status": "DISAPPEARED", "runtimeError": null, "conditionIndex": 99, "conditionText": "isDisappeared(CA10A2__disappearanceTime__c)" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "CREATING", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-configured-creating", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-configured-creating", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "configured-creating", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 1199, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "UPDATING", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-configured-updating", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-configured-updating", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "configured-updating", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 1199, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "FAILED", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-configured-failed", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-configured-failed", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "configured-failed", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 1199, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "DELETE_UNSUCCESSFUL", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-configured-delete_unsuccessful", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-configured-delete_unsuccessful", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "configured-delete_unsuccessful", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 1199, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "UPDATE_UNSUCCESSFUL", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-configured-update_unsuccessful", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-configured-update_unsuccessful", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "configured-update_unsuccessful", "expectedResult": { "status": "INCOMPLIANT", "runtimeError": null, "conditionIndex": 1199, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "UNKNOWN", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-unknown-status", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-unknown-status", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "unknown-status", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 499, "conditionText": "not(setOfText(['CREATING', 'ACTIVE', 'UPDATING', 'FAILED', 'DELETE_UNSUCCESSFUL', 'UPDATE_UNSUCCESSFUL']).contains(extract('CA10A2__status__c')))" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": null, "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-missing-status", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-missing-status", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "missing-status", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 301, "conditionText": "CA10A2__status__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-blank-status", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-blank-status", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "blank-status", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 301, "conditionText": "CA10A2__status__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": "REDSHIFT", "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "sql-knowledge-base", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": "arn:aws:kendra:us-east-1:123456789012:index/kendra-test", "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "kendra-knowledge-base", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": "arn:aws:kendra:us-east-1:123456789012:index/kendra-test", "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "unresolved-kendra-reference", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 299, "conditionText": "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": "REDSHIFT", "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-conflicting-sql-and-embedding", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-conflicting-sql-and-embedding", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "conflicting-sql-and-embedding", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 199, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": "arn:aws:kendra:us-east-1:123456789012:index/kendra-test", "CA10A2__foundationEmbeddingModel__c": "model-conflicting-kendra-and-embedding", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-conflicting-kendra-and-embedding", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "conflicting-kendra-and-embedding", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 199, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2030-01-01T00:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-future-snapshot-active", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-future-snapshot-active", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "future-snapshot-active", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "kendra-helper-fk-only", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 699, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty()" }, "CA10A2__kendraIndex__c": "kendra-helper-only", "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-missing-native-embedding-arn", "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": "model-missing-native-embedding-arn", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "missing-native-embedding-arn", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 799, "conditionText": "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding", "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding" }, "Id": "sagemaker-embedding-excluded", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 599, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-mismatched-model-arn", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-mismatched-model-arn", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1" }, "Id": "mismatched-model-arn", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 999, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-mismatched-model-region", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-mismatched-model-region", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "mismatched-model-region", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 999, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-missing-model-arn", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-missing-model-arn", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": null }, "Id": "missing-model-arn", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 904, "conditionText": "CA10A2__modelArn__c.isEmpty()" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-active-titan-g1", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-active-titan-g1", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1" }, "Id": "active-titan-g1", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-active-cohere-english", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-english-v3", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-active-cohere-english", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-english-v3" }, "Id": "active-cohere-english", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-active-cohere-multilingual", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-multilingual-v3", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-active-cohere-multilingual", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-multilingual-v3" }, "Id": "active-cohere-multilingual", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-active-nova-multimodal", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-2-multimodal-embeddings-v1:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-active-nova-multimodal", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-2-multimodal-embeddings-v1:0" }, "Id": "active-nova-multimodal", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-active-govcloud-titan", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws-us-gov:bedrock:us-gov-west-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-active-govcloud-titan", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws-us-gov:bedrock:us-gov-west-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "active-govcloud-titan", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": null, "CA10A2__foundationEmbeddingModelArn__c": null, "Id": "sagemaker-split-native-arn", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 599, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))" }, "CA10A2__sageMakerEmbeddingModelArn__c": "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding-model", "CA10A2__foundationEmbeddingModel__r": { "Id": null, "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" } }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-sagemaker-with-stale-foundation-helper", "CA10A2__foundationEmbeddingModelArn__c": null, "CA10A2__foundationEmbeddingModel__r": { "Id": "model-sagemaker-with-stale-foundation-helper", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "sagemaker-with-stale-foundation-helper", "expectedResult": { "status": "INAPPLICABLE", "runtimeError": null, "conditionIndex": 599, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))" }, "CA10A2__sageMakerEmbeddingModelArn__c": "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding-model" }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-conflicting-foundation-and-sagemaker", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-conflicting-foundation-and-sagemaker", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "conflicting-foundation-and-sagemaker", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 199, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())" }, "CA10A2__sageMakerEmbeddingModelArn__c": "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding-model" }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-empty-sagemaker-field", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-empty-sagemaker-field", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "empty-sagemaker-field", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__sageMakerEmbeddingModelArn__c": "" }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-non-foundation-arn-active", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-non-foundation-arn-active", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding" }, "Id": "non-foundation-arn-active", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 799, "conditionText": "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-non-foundation-arn-legacy", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-non-foundation-arn-legacy", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "LEGACY", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding" }, "Id": "non-foundation-arn-legacy", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 799, "conditionText": "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-case-sensitive-model-identity", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-case-sensitive-model-identity", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "ARN:AWS:BEDROCK:US-EAST-1::FOUNDATION-MODEL/AMAZON.TITAN-EMBED-TEXT-V2:0" }, "Id": "case-sensitive-model-identity", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 999, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-whitespace-model-identity", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-whitespace-model-identity", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0 " }, "Id": "whitespace-model-identity", "expectedResult": { "status": "UNDETERMINED", "runtimeError": null, "conditionIndex": 999, "conditionText": "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" }, "CA10A2__sageMakerEmbeddingModelArn__c": null }, { "context": { "snapshotTime": "2026-10-23T12:00:00Z" }, "CA10A2__disappearanceTime__c": null, "CA10A2__status__c": "ACTIVE", "CA10A2__sqlConfigType__c": null, "CA10A2__kendraIndexArn__c": null, "CA10A2__foundationEmbeddingModel__c": "model-storage-config-type-is-not-kb-variant", "CA10A2__foundationEmbeddingModelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__foundationEmbeddingModel__r": { "Id": "model-storage-config-type-is-not-kb-variant", "CA10A2__disappearanceTime__c": null, "CA10A2__modelLifecycleStatus__c": "ACTIVE", "CA10A2__modelArn__c": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" }, "Id": "storage-config-type-is-not-kb-variant", "expectedResult": { "status": "COMPLIANT", "runtimeError": null, "conditionIndex": 1099, "conditionText": "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" }, "CA10A2__configType__c": "S3_VECTORS", "CA10A2__sageMakerEmbeddingModelArn__c": null } ] - path: /types/CA10A2__CaAwsBedrockFoundationModel__c/object.extracts.yaml md5Hash: E5B9B6AF9C7EB89705D32F84D850DB58 content: | --- extracts: # Optional output modalities from bedrock:ListFoundationModels, stored as newline-separated text. - name: CA10A2__outputModalities__c value: FIELD: path: CA10A2__outputModalities__c # Values: ACTIVE | LEGACY. Collected by bedrock:ListFoundationModels. - name: CA10A2__modelLifecycleStatus__c value: FIELD: path: CA10A2__modelLifecycleStatus__c undeterminedIf: isEmpty: The foundation model lifecycle status is unavailable. - name: CA10A2__modelArn__c value: FIELD: path: CA10A2__modelArn__c undeterminedIf: isEmpty: The foundation model ARN is unavailable. returnType: BYTES - path: /types/CA10A2__CaAwsBedrockKnowledgeBase__c/object.extracts.yaml md5Hash: FBBE8D853917355F0E431383450C51A9 content: | --- extracts: - name: CA10A2__kendraIndexArn__c value: FIELD: path: CA10A2__kendraIndexArn__c - name: CA10A2__foundationEmbeddingModelArn__c value: FIELD: path: CA10A2__foundationEmbeddingModelArn__c returnType: BYTES - name: CA10A2__sageMakerEmbeddingModelArn__c value: FIELD: path: CA10A2__sageMakerEmbeddingModelArn__c returnType: BYTES - name: CA10A2__status__c value: FIELD: path: CA10A2__status__c undeterminedIf: isEmpty: The knowledge base status is unavailable. - name: CA10A2__sqlConfigType__c value: FIELD: path: CA10A2__sqlConfigType__c - name: CA10A2__foundationEmbeddingModel__c value: FIELD: path: CA10A2__foundationEmbeddingModel__c script: |- CREATE TEMP FUNCTION mock_ExpectedResult() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "Id" : "active", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "legacy", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 1199, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" } }, { "Id" : "eol-unrecognized-native-state", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 1200, "conditionText" : "otherwise" } }, { "Id" : "missing-lifecycle", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 1004, "conditionText" : "CA10A2__modelLifecycleStatus__c.isEmpty()" } }, { "Id" : "blank-lifecycle", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 1004, "conditionText" : "CA10A2__modelLifecycleStatus__c.isEmpty()" } }, { "Id" : "unknown-lifecycle", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 1200, "conditionText" : "otherwise" } }, { "Id" : "wrong-case-lifecycle", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "whitespace-lifecycle", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 1004, "conditionText" : "CA10A2__modelLifecycleStatus__c.isEmpty()" } }, { "Id" : "missing-model-reference", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 699, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty()" } }, { "Id" : "uncollected-model", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 899, "conditionText" : "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')" } }, { "Id" : "unresolved-model", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 904, "conditionText" : "CA10A2__modelArn__c.isEmpty()" } }, { "Id" : "disappeared-active-model", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 899, "conditionText" : "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')" } }, { "Id" : "disappeared-legacy-model", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 899, "conditionText" : "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')" } }, { "Id" : "deleting", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 399, "conditionText" : "extract('CA10A2__status__c') == 'DELETING'" } }, { "Id" : "disappeared-knowledge-base", "expectedResult" : { "status" : "DISAPPEARED", "runtimeError" : null, "conditionIndex" : 99, "conditionText" : "isDisappeared(CA10A2__disappearanceTime__c)" } }, { "Id" : "configured-creating", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 1199, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" } }, { "Id" : "configured-updating", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 1199, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" } }, { "Id" : "configured-failed", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 1199, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" } }, { "Id" : "configured-delete_unsuccessful", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 1199, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" } }, { "Id" : "configured-update_unsuccessful", "expectedResult" : { "status" : "INCOMPLIANT", "runtimeError" : null, "conditionIndex" : 1199, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'" } }, { "Id" : "unknown-status", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 499, "conditionText" : "not(setOfText(['CREATING', 'ACTIVE', 'UPDATING', 'FAILED', 'DELETE_UNSUCCESSFUL', 'UPDATE_UNSUCCESSFUL']).contains(extract('CA10A2__status__c')))" } }, { "Id" : "missing-status", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 301, "conditionText" : "CA10A2__status__c.isEmpty()" } }, { "Id" : "blank-status", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 301, "conditionText" : "CA10A2__status__c.isEmpty()" } }, { "Id" : "sql-knowledge-base", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()" } }, { "Id" : "kendra-knowledge-base", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()" } }, { "Id" : "unresolved-kendra-reference", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 299, "conditionText" : "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()" } }, { "Id" : "conflicting-sql-and-embedding", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())" } }, { "Id" : "conflicting-kendra-and-embedding", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())" } }, { "Id" : "future-snapshot-active", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "kendra-helper-fk-only", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 699, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty()" } }, { "Id" : "missing-native-embedding-arn", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 799, "conditionText" : "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))" } }, { "Id" : "sagemaker-embedding-excluded", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 599, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))" } }, { "Id" : "mismatched-model-arn", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 999, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" } }, { "Id" : "mismatched-model-region", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 999, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" } }, { "Id" : "missing-model-arn", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 904, "conditionText" : "CA10A2__modelArn__c.isEmpty()" } }, { "Id" : "active-titan-g1", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "active-cohere-english", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "active-cohere-multilingual", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "active-nova-multimodal", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "active-govcloud-titan", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "sagemaker-split-native-arn", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 599, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))" } }, { "Id" : "sagemaker-with-stale-foundation-helper", "expectedResult" : { "status" : "INAPPLICABLE", "runtimeError" : null, "conditionIndex" : 599, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))" } }, { "Id" : "conflicting-foundation-and-sagemaker", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 199, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())" } }, { "Id" : "empty-sagemaker-field", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } }, { "Id" : "non-foundation-arn-active", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 799, "conditionText" : "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))" } }, { "Id" : "non-foundation-arn-legacy", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 799, "conditionText" : "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))" } }, { "Id" : "case-sensitive-model-identity", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 999, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" } }, { "Id" : "whitespace-model-identity", "expectedResult" : { "status" : "UNDETERMINED", "runtimeError" : null, "conditionIndex" : 999, "conditionText" : "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')" } }, { "Id" : "storage-config-type-is-not-kb-variant", "expectedResult" : { "status" : "COMPLIANT", "runtimeError" : null, "conditionIndex" : 1099, "conditionText" : "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'" } } ]; """; CREATE TEMP FUNCTION mock_CA10A2__CaAwsBedrockKnowledgeBase__c() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-active", "Id" : "active" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-legacy", "Id" : "legacy" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-eol-unrecognized-native-state", "Id" : "eol-unrecognized-native-state" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-missing-lifecycle", "Id" : "missing-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-blank-lifecycle", "Id" : "blank-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-unknown-lifecycle", "Id" : "unknown-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-wrong-case-lifecycle", "Id" : "wrong-case-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-whitespace-lifecycle", "Id" : "whitespace-lifecycle" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "missing-model-reference" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "uncollected-model" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-unresolved-model", "Id" : "unresolved-model" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-disappeared-active-model", "Id" : "disappeared-active-model" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-disappeared-legacy-model", "Id" : "disappeared-legacy-model" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "DELETING", "CA10A2__foundationEmbeddingModel__c" : "model-deleting", "Id" : "deleting" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__disappearanceTime__c" : new Date("2026-10-22T00:00:00Z"), "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-disappeared-knowledge-base", "Id" : "disappeared-knowledge-base" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "CREATING", "CA10A2__foundationEmbeddingModel__c" : "model-configured-creating", "Id" : "configured-creating" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "UPDATING", "CA10A2__foundationEmbeddingModel__c" : "model-configured-updating", "Id" : "configured-updating" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "FAILED", "CA10A2__foundationEmbeddingModel__c" : "model-configured-failed", "Id" : "configured-failed" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "DELETE_UNSUCCESSFUL", "CA10A2__foundationEmbeddingModel__c" : "model-configured-delete_unsuccessful", "Id" : "configured-delete_unsuccessful" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "UPDATE_UNSUCCESSFUL", "CA10A2__foundationEmbeddingModel__c" : "model-configured-update_unsuccessful", "Id" : "configured-update_unsuccessful" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "UNKNOWN", "CA10A2__foundationEmbeddingModel__c" : "model-unknown-status", "Id" : "unknown-status" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : null, "CA10A2__foundationEmbeddingModel__c" : "model-missing-status", "Id" : "missing-status" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "", "CA10A2__foundationEmbeddingModel__c" : "model-blank-status", "Id" : "blank-status" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : "REDSHIFT", "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "sql-knowledge-base" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : "arn:aws:kendra:us-east-1:123456789012:index/kendra-test", "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "kendra-knowledge-base" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : "arn:aws:kendra:us-east-1:123456789012:index/kendra-test", "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "unresolved-kendra-reference" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : "REDSHIFT", "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-conflicting-sql-and-embedding", "Id" : "conflicting-sql-and-embedding" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : "arn:aws:kendra:us-east-1:123456789012:index/kendra-test", "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-conflicting-kendra-and-embedding", "Id" : "conflicting-kendra-and-embedding" }, { "context" : { "snapshotTime" : new Date("2030-01-01T00:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-future-snapshot-active", "Id" : "future-snapshot-active" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "kendra-helper-fk-only" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-missing-native-embedding-arn", "Id" : "missing-native-embedding-arn" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "sagemaker-embedding-excluded" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-mismatched-model-arn", "Id" : "mismatched-model-arn" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-mismatched-model-region", "Id" : "mismatched-model-region" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-missing-model-arn", "Id" : "missing-model-arn" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-active-titan-g1", "Id" : "active-titan-g1" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-english-v3", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-active-cohere-english", "Id" : "active-cohere-english" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-multilingual-v3", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-active-cohere-multilingual", "Id" : "active-cohere-multilingual" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-2-multimodal-embeddings-v1:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-active-nova-multimodal", "Id" : "active-nova-multimodal" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws-us-gov:bedrock:us-gov-west-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-active-govcloud-titan", "Id" : "active-govcloud-titan" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding-model", "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : null, "Id" : "sagemaker-split-native-arn" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : null, "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding-model", "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-sagemaker-with-stale-foundation-helper", "Id" : "sagemaker-with-stale-foundation-helper" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : "arn:aws:sagemaker:us-east-1:123456789012:endpoint/embedding-model", "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-conflicting-foundation-and-sagemaker", "Id" : "conflicting-foundation-and-sagemaker" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : "", "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-empty-sagemaker-field", "Id" : "empty-sagemaker-field" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-non-foundation-arn-active", "Id" : "non-foundation-arn-active" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-non-foundation-arn-legacy", "Id" : "non-foundation-arn-legacy" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-case-sensitive-model-identity", "Id" : "case-sensitive-model-identity" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-whitespace-model-identity", "Id" : "whitespace-model-identity" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "CA10A2__foundationEmbeddingModelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__sqlConfigType__c" : null, "CA10A2__kendraIndexArn__c" : null, "CA10A2__sageMakerEmbeddingModelArn__c" : null, "CA10A2__status__c" : "ACTIVE", "CA10A2__foundationEmbeddingModel__c" : "model-storage-config-type-is-not-kb-variant", "Id" : "storage-config-type-is-not-kb-variant" } ]; """; CREATE TEMP FUNCTION mock_CA10A2__CaAwsBedrockFoundationModel__c() RETURNS ARRAY >> DETERMINISTIC LANGUAGE js AS r""" return [ { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-active", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-legacy", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-eol-unrecognized-native-state", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "EOL" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-missing-lifecycle", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : null }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-blank-lifecycle", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-unknown-lifecycle", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "UNKNOWN" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-wrong-case-lifecycle", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "active" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-whitespace-lifecycle", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : " " }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : null, "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-disappeared-active-model", "CA10A2__disappearanceTime__c" : new Date("2026-10-22T00:00:00Z"), "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-disappeared-legacy-model", "CA10A2__disappearanceTime__c" : new Date("2026-10-22T00:00:00Z"), "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-deleting", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-disappeared-knowledge-base", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-configured-creating", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-configured-updating", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-configured-failed", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-configured-delete_unsuccessful", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-configured-update_unsuccessful", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-unknown-status", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-missing-status", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-blank-status", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-conflicting-sql-and-embedding", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-conflicting-kendra-and-embedding", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2030-01-01T00:00:00Z") }, "Id" : "model-future-snapshot-active", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-missing-native-embedding-arn", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-mismatched-model-arn", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-mismatched-model-region", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-missing-model-arn", "CA10A2__modelArn__c" : null, "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-active-titan-g1", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v1", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-active-cohere-english", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-english-v3", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-active-cohere-multilingual", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/cohere.embed-multilingual-v3", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-active-nova-multimodal", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-2-multimodal-embeddings-v1:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-active-govcloud-titan", "CA10A2__modelArn__c" : "arn:aws-us-gov:bedrock:us-gov-west-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-sagemaker-with-stale-foundation-helper", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-conflicting-foundation-and-sagemaker", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-empty-sagemaker-field", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-non-foundation-arn-active", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-non-foundation-arn-legacy", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1:123456789012:custom-model/embedding", "CA10A2__modelLifecycleStatus__c" : "LEGACY" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-case-sensitive-model-identity", "CA10A2__modelArn__c" : "ARN:AWS:BEDROCK:US-EAST-1::FOUNDATION-MODEL/AMAZON.TITAN-EMBED-TEXT-V2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-whitespace-model-identity", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0 ", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" }, { "context" : { "snapshotTime" : new Date("2026-10-23T12:00:00Z") }, "Id" : "model-storage-config-type-is-not-kb-variant", "CA10A2__modelArn__c" : "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0", "CA10A2__modelLifecycleStatus__c" : "ACTIVE" } ]; """; CREATE TEMP FUNCTION process_CA10A2__CaAwsBedrockKnowledgeBase__c( obj STRUCT< CA10A2__disappearanceTime__c TIMESTAMP, CA10A2__foundationEmbeddingModelArn__c STRING, CA10A2__sqlConfigType__c STRING, CA10A2__kendraIndexArn__c STRING, CA10A2__sageMakerEmbeddingModelArn__c STRING, CA10A2__status__c STRING, CA10A2__foundationEmbeddingModel__c STRING, CA10A2__foundationEmbeddingModel__r STRUCT< Id STRING, CA10A2__disappearanceTime__c TIMESTAMP, CA10A2__modelArn__c STRING, CA10A2__modelLifecycleStatus__c STRING >, Id STRING >, snapshotTime TIMESTAMP ) RETURNS STRUCT DETERMINISTIC LANGUAGE js AS r""" 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 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 references1 = []; // condition[0], conditionIndex:[0..99] references1.push('Deleted From AWS [CA10A2__disappearanceTime__c]: ' + obj.CA10A2__disappearanceTime__c); if (obj.CA10A2__disappearanceTime__c != null) { return {status: 'DISAPPEARED', conditionIndex: 99, conditionText: "isDisappeared(CA10A2__disappearanceTime__c)", currentStateMessage: "Object is deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[1], conditionIndex:[100..199] function extract3() { if (!this.out) { this.out = obj.CA10A2__foundationEmbeddingModelArn__c; } return this.out; }; function extract6() { if (!this.out) { this.out = obj.CA10A2__sqlConfigType__c; } return this.out; }; function extract9() { if (!this.out) { this.out = obj.CA10A2__kendraIndexArn__c; } return this.out; }; function extract12() { if (!this.out) { this.out = obj.CA10A2__sageMakerEmbeddingModelArn__c; } return this.out; }; references1.push('Foundation Embedding Model ARN [obj.CA10A2__foundationEmbeddingModelArn__c]: ' + obj.CA10A2__foundationEmbeddingModelArn__c); references1.push('SQL Config: Type [obj.CA10A2__sqlConfigType__c]: ' + obj.CA10A2__sqlConfigType__c); references1.push('Kendra Index ARN [obj.CA10A2__kendraIndexArn__c]: ' + obj.CA10A2__kendraIndexArn__c); references1.push('SageMaker Embedding Model ARN [obj.CA10A2__sageMakerEmbeddingModelArn__c]: ' + obj.CA10A2__sageMakerEmbeddingModelArn__c); if (BytesLib.isNotEmpty(extract3.call(extract3)) && (TextLib.equal(extract6.call(extract6), 'REDSHIFT') || TextLib.isNotEmpty(extract9.call(extract9)) || BytesLib.isNotEmpty(extract12.call(extract12)))) { return {status: 'UNDETERMINED', conditionIndex: 199, conditionText: "extract('CA10A2__foundationEmbeddingModelArn__c').isNotEmpty() && (extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty() || extract('CA10A2__sageMakerEmbeddingModelArn__c').isNotEmpty())", currentStateMessage: "The knowledge base has conflicting foundation embedding and SQL, Kendra, or SageMaker configuration.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[2], conditionIndex:[200..299] function extract15() { if (!this.out) { this.out = obj.CA10A2__sqlConfigType__c; } return this.out; }; function extract18() { if (!this.out) { this.out = obj.CA10A2__kendraIndexArn__c; } return this.out; }; if (TextLib.equal(extract15.call(extract15), 'REDSHIFT') || TextLib.isNotEmpty(extract18.call(extract18))) { return {status: 'INAPPLICABLE', conditionIndex: 299, conditionText: "extract('CA10A2__sqlConfigType__c') == 'REDSHIFT' || extract('CA10A2__kendraIndexArn__c').isNotEmpty()", currentStateMessage: "The knowledge base has SQL or Amazon Kendra configuration.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[3], conditionIndex:[300..399] function fieldChecked22() { if (TextLib.isEmpty(obj.CA10A2__status__c)) { throw new Error("UNDETERMINED condition:301", {cause: {status: 'UNDETERMINED', conditionIndex: 301, conditionText: "CA10A2__status__c.isEmpty()", currentStateMessage: "The knowledge base status is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10A2__status__c; } function extract21() { if (!this.out) { this.out = fieldChecked22(); } return this.out; }; references1.push('Status [obj.CA10A2__status__c]: ' + obj.CA10A2__status__c); try { if (TextLib.equal(extract21.call(extract21), 'DELETING')) { return {status: 'INAPPLICABLE', conditionIndex: 399, conditionText: "extract('CA10A2__status__c') == 'DELETING'", currentStateMessage: "The knowledge base is being deleted.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[4], conditionIndex:[400..499] function fieldChecked25() { if (TextLib.isEmpty(obj.CA10A2__status__c)) { throw new Error("UNDETERMINED condition:401", {cause: {status: 'UNDETERMINED', conditionIndex: 401, conditionText: "CA10A2__status__c.isEmpty()", currentStateMessage: "The knowledge base status is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10A2__status__c; } function extract24() { if (!this.out) { this.out = fieldChecked25(); } return this.out; }; try { if (!CollectionLib.contains(CollectionLib.fromArray(['CREATING', 'ACTIVE', 'UPDATING', 'FAILED', 'DELETE_UNSUCCESSFUL', 'UPDATE_UNSUCCESSFUL'], true, true, true, true), extract24.call(extract24), true)) { return {status: 'UNDETERMINED', conditionIndex: 499, conditionText: "not(setOfText(['CREATING', 'ACTIVE', 'UPDATING', 'FAILED', 'DELETE_UNSUCCESSFUL', 'UPDATE_UNSUCCESSFUL']).contains(extract('CA10A2__status__c')))", currentStateMessage: "The knowledge base status is unrecognized.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[5], conditionIndex:[500..599] function extract27() { if (!this.out) { this.out = obj.CA10A2__foundationEmbeddingModelArn__c; } return this.out; }; function extract30() { if (!this.out) { this.out = obj.CA10A2__sageMakerEmbeddingModelArn__c; } return this.out; }; if (BytesLib.contains(extract27.call(extract27), ':sagemaker:') || BytesLib.contains(extract30.call(extract30), ':sagemaker:')) { return {status: 'INAPPLICABLE', conditionIndex: 599, conditionText: "extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes(':sagemaker:')) || extract('CA10A2__sageMakerEmbeddingModelArn__c').contains(bytes(':sagemaker:'))", currentStateMessage: "The embedding model uses a SageMaker endpoint outside the foundation-model lifecycle scope.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[6], conditionIndex:[600..699] function extract33() { if (!this.out) { this.out = obj.CA10A2__foundationEmbeddingModelArn__c; } return this.out; }; function extract36() { if (!this.out) { this.out = obj.CA10A2__foundationEmbeddingModel__c; } return this.out; }; references1.push('Foundation Embedding Model [obj.CA10A2__foundationEmbeddingModel__c]: ' + obj.CA10A2__foundationEmbeddingModel__c); if (BytesLib.isEmpty(extract33.call(extract33)) && TextLib.isEmpty(extract36.call(extract36))) { return {status: 'INAPPLICABLE', conditionIndex: 699, conditionText: "extract('CA10A2__foundationEmbeddingModelArn__c').isEmpty() && extract('CA10A2__foundationEmbeddingModel__c').isEmpty()", currentStateMessage: "No native foundation embedding ARN or model relationship identifies an assessable vector configuration; managed and other unclassified variants are outside this policy scope.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[7], conditionIndex:[700..799] function extract39() { if (!this.out) { this.out = obj.CA10A2__foundationEmbeddingModelArn__c; } return this.out; }; if (!BytesLib.contains(extract39.call(extract39), '::foundation-model/')) { return {status: 'UNDETERMINED', conditionIndex: 799, conditionText: "not(extract('CA10A2__foundationEmbeddingModelArn__c').contains(bytes('::foundation-model/')))", currentStateMessage: "The configured embedding ARN is missing or does not identify a foundation model.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[8], conditionIndex:[800..899] if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModelArn__c) || TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__c) || obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c != null) { return {status: 'UNDETERMINED', conditionIndex: 899, conditionText: "isEmptyLookup('CA10A2__foundationEmbeddingModel__r')", currentStateMessage: "The foundation embedding model lookup is missing, unresolved, or disappeared; its lifecycle cannot be established.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } // condition[9], conditionIndex:[900..999] function extract42() { if (!this.out) { this.out = obj.CA10A2__foundationEmbeddingModelArn__c; } return this.out; }; function extractChecked44() { if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModelArn__c)) { throw new Error("UNDETERMINED condition:901", {cause: {status: 'UNDETERMINED', conditionIndex: 901, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModelArn__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModelArn__c has empty ID", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__c)) { throw new Error("UNDETERMINED condition:902", {cause: {status: 'UNDETERMINED', conditionIndex: 902, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModel__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModel__c is not present", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } if (obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c != null) { throw new Error("UNDETERMINED condition:903", {cause: {status: 'UNDETERMINED', conditionIndex: 903, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModel__c is present, but deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return extract45.call(extract45); } function fieldChecked46() { if (BytesLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c)) { throw new Error("UNDETERMINED condition:904", {cause: {status: 'UNDETERMINED', conditionIndex: 904, conditionText: "CA10A2__modelArn__c.isEmpty()", currentStateMessage: "The foundation model ARN is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c; } function extract45() { if (!this.out) { this.out = fieldChecked46(); } return this.out; }; references1.push('Model ARN [obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c]: ' + obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c); try { if (BytesLib.notEqual(extract42.call(extract42), extractChecked44())) { return {status: 'UNDETERMINED', conditionIndex: 999, conditionText: "extract('CA10A2__foundationEmbeddingModelArn__c') != extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelArn__c')", currentStateMessage: "The related foundation model ARN does not match the knowledge base's configured embedding model ARN and Region.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[10], conditionIndex:[1000..1099] function extractChecked47() { if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModelArn__c)) { throw new Error("UNDETERMINED condition:1001", {cause: {status: 'UNDETERMINED', conditionIndex: 1001, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModelArn__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModelArn__c has empty ID", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__c)) { throw new Error("UNDETERMINED condition:1002", {cause: {status: 'UNDETERMINED', conditionIndex: 1002, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModel__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModel__c is not present", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } if (obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c != null) { throw new Error("UNDETERMINED condition:1003", {cause: {status: 'UNDETERMINED', conditionIndex: 1003, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModel__c is present, but deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return extract48.call(extract48); } function fieldChecked49() { if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c)) { throw new Error("UNDETERMINED condition:1004", {cause: {status: 'UNDETERMINED', conditionIndex: 1004, conditionText: "CA10A2__modelLifecycleStatus__c.isEmpty()", currentStateMessage: "The foundation model lifecycle status is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c; } function extract48() { if (!this.out) { this.out = fieldChecked49(); } return this.out; }; references1.push('Model Lifecycle: Status [obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c]: ' + obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c); try { if (TextLib.equal(extractChecked47(), 'ACTIVE')) { return {status: 'COMPLIANT', conditionIndex: 1099, conditionText: "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'", currentStateMessage: "The configured foundation embedding model is Active in its AWS Region.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } // condition[11], conditionIndex:[1100..1199] function extractChecked50() { if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModelArn__c)) { throw new Error("UNDETERMINED condition:1101", {cause: {status: 'UNDETERMINED', conditionIndex: 1101, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModelArn__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModelArn__c has empty ID", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__c)) { throw new Error("UNDETERMINED condition:1102", {cause: {status: 'UNDETERMINED', conditionIndex: 1102, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModel__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModel__c is not present", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } if (obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c != null) { throw new Error("UNDETERMINED condition:1103", {cause: {status: 'UNDETERMINED', conditionIndex: 1103, conditionText: "extractCheck(obj.CA10A2__foundationEmbeddingModel__r.CA10A2__disappearanceTime__c)", currentStateMessage: "Related object via CA10A2__foundationEmbeddingModel__c is present, but deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return extract51.call(extract51); } function fieldChecked52() { if (TextLib.isEmpty(obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c)) { throw new Error("UNDETERMINED condition:1104", {cause: {status: 'UNDETERMINED', conditionIndex: 1104, conditionText: "CA10A2__modelLifecycleStatus__c.isEmpty()", currentStateMessage: "The foundation model lifecycle status is unavailable.", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null}}); } return obj.CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c; } function extract51() { if (!this.out) { this.out = fieldChecked52(); } return this.out; }; try { if (TextLib.equal(extractChecked50(), 'LEGACY')) { return {status: 'INCOMPLIANT', conditionIndex: 1199, conditionText: "extract('CA10A2__foundationEmbeddingModel__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'", currentStateMessage: "The configured foundation embedding model is Legacy and scheduled for retirement.", currentStateReferences: references1.join('\n'), remediation: "Plan migration to an Active embedding model, including re-embedding and rebuilding the vector index as required.", runtimeError: null}; } } catch (err) { if (err.cause && err.cause.status) { return err.cause; } else { throw err; } } return {status: 'UNDETERMINED', conditionIndex: 1200, conditionText: "otherwise", currentStateMessage: "The configured embedding model lifecycle status is missing or unrecognized; verify its regional status in Amazon Bedrock.", 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.CA10A2__disappearanceTime__c AS CA10A2__disappearanceTime__c, sObject.CA10A2__foundationEmbeddingModelArn__c AS CA10A2__foundationEmbeddingModelArn__c, sObject.CA10A2__sqlConfigType__c AS CA10A2__sqlConfigType__c, sObject.CA10A2__kendraIndexArn__c AS CA10A2__kendraIndexArn__c, sObject.CA10A2__sageMakerEmbeddingModelArn__c AS CA10A2__sageMakerEmbeddingModelArn__c, sObject.CA10A2__status__c AS CA10A2__status__c, sObject.CA10A2__foundationEmbeddingModel__c AS CA10A2__foundationEmbeddingModel__c, STRUCT ( `CA10A2__foundationEmbeddingModel__r`.Id AS Id, `CA10A2__foundationEmbeddingModel__r`.CA10A2__disappearanceTime__c AS CA10A2__disappearanceTime__c, `CA10A2__foundationEmbeddingModel__r`.CA10A2__modelArn__c AS CA10A2__modelArn__c, `CA10A2__foundationEmbeddingModel__r`.CA10A2__modelLifecycleStatus__c AS CA10A2__modelLifecycleStatus__c ) AS CA10A2__foundationEmbeddingModel__r, sObject.Id AS Id, process_CA10A2__CaAwsBedrockKnowledgeBase__c( STRUCT( sObject.CA10A2__disappearanceTime__c AS CA10A2__disappearanceTime__c, sObject.CA10A2__foundationEmbeddingModelArn__c AS CA10A2__foundationEmbeddingModelArn__c, sObject.CA10A2__sqlConfigType__c AS CA10A2__sqlConfigType__c, sObject.CA10A2__kendraIndexArn__c AS CA10A2__kendraIndexArn__c, sObject.CA10A2__sageMakerEmbeddingModelArn__c AS CA10A2__sageMakerEmbeddingModelArn__c, sObject.CA10A2__status__c AS CA10A2__status__c, sObject.CA10A2__foundationEmbeddingModel__c AS CA10A2__foundationEmbeddingModel__c, STRUCT ( `CA10A2__foundationEmbeddingModel__r`.Id AS Id, `CA10A2__foundationEmbeddingModel__r`.CA10A2__disappearanceTime__c AS CA10A2__disappearanceTime__c, `CA10A2__foundationEmbeddingModel__r`.CA10A2__modelArn__c AS CA10A2__modelArn__c, `CA10A2__foundationEmbeddingModel__r`.CA10A2__modelLifecycleStatus__c AS CA10A2__modelLifecycleStatus__c ) AS CA10A2__foundationEmbeddingModel__r, sObject.Id AS Id ), sObject.context.snapshotTime ) as result FROM UNNEST(mock_CA10A2__CaAwsBedrockKnowledgeBase__c()) AS sObject LEFT JOIN UNNEST(mock_CA10A2__CaAwsBedrockFoundationModel__c()) AS `CA10A2__foundationEmbeddingModel__r` ON sObject.CA10A2__foundationEmbeddingModel__c = `CA10A2__foundationEmbeddingModel__r`.Id ) sObject ON sObject.Id = expectedResult.Id;