Skip to main content

🧠 AWS Bedrock Provisioned Throughput should use an Active model - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-10-30T18:09:11.057603365Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒active-currentβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒legacy-currentβœ”οΈ 899βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'βœ”οΈ null
🟒updating-legacy-current-active-desiredβœ”οΈ 899βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'βœ”οΈ null
🟒updating-active-current-legacy-desiredβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒active-current-legacy-original-baseβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒creating-active-currentβœ”οΈ 299βœ”οΈ setOfText(['Creating', 'Failed']).contains(extract('CA10A2__status__c'))βœ”οΈ null
🟒failed-update-legacy-currentβœ”οΈ 299βœ”οΈ setOfText(['Creating', 'Failed']).contains(extract('CA10A2__status__c'))βœ”οΈ null
🟒unknown-throughput-statusβœ”οΈ 199βœ”οΈ not(setOfText(['Creating', 'InService', 'Updating', 'Failed']).contains(extract('CA10A2__status__c')))βœ”οΈ null
🟒missing-throughput-statusβœ”οΈ 101βœ”οΈ CA10A2__status__c.isEmpty()βœ”οΈ null
🟒custom-current-legacy-base-active-desiredβœ”οΈ 399βœ”οΈ extract('caAwsBedrockUsesCustomModel')βœ”οΈ null
🟒custom-arn-in-generic-current-fieldβœ”οΈ 399βœ”οΈ extract('caAwsBedrockUsesCustomModel')βœ”οΈ null
🟒active-current-extraneous-custom-arnβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒active-current-extraneous-custom-lookupβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒missing-current-arnβœ”οΈ 401βœ”οΈ CA10A2__modelArn__c.isEmpty()βœ”οΈ null
🟒malformed-current-arnβœ”οΈ 499βœ”οΈ not(extract('CA10A2__modelArn__c').contains(bytes('::foundation-model/')))βœ”οΈ null
🟒unresolved-current-lookupβœ”οΈ 605βœ”οΈ CA10A2__modelArn__c.isEmpty()βœ”οΈ null
🟒missing-current-lookup-original-base-presentβœ”οΈ 599βœ”οΈ isEmptyLookup('CA10A2__model__r')βœ”οΈ null
🟒disappeared-current-modelβœ”οΈ 599βœ”οΈ isEmptyLookup('CA10A2__model__r')βœ”οΈ null
🟒mismatched-model-arnβœ”οΈ 699βœ”οΈ extract('CA10A2__modelArn__c') != extract('CA10A2__model__r.CA10A2__modelArn__c')βœ”οΈ null
🟒mismatched-regionβœ”οΈ 699βœ”οΈ extract('CA10A2__modelArn__c') != extract('CA10A2__model__r.CA10A2__modelArn__c')βœ”οΈ null
🟒missing-related-model-arnβœ”οΈ 605βœ”οΈ CA10A2__modelArn__c.isEmpty()βœ”οΈ null
🟒unknown-model-lifecycleβœ”οΈ 900βœ”οΈ otherwiseβœ”οΈ null
🟒eol-not-a-native-api-statusβœ”οΈ 900βœ”οΈ otherwiseβœ”οΈ null
🟒missing-model-lifecycleβœ”οΈ 704βœ”οΈ CA10A2__modelLifecycleStatus__c.isEmpty()βœ”οΈ null
🟒disappeared-throughputβœ”οΈ 99βœ”οΈ isDisappeared(CA10A2__disappearanceTime__c)βœ”οΈ null
🟒future-snapshot-still-uses-native-stateβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒legacy-current-extraneous-custom-metadataβœ”οΈ 899βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'βœ”οΈ null
🟒creating-without-model-dataβœ”οΈ 299βœ”οΈ setOfText(['Creating', 'Failed']).contains(extract('CA10A2__status__c'))βœ”οΈ null
🟒failed-without-model-dataβœ”οΈ 299βœ”οΈ setOfText(['Creating', 'Failed']).contains(extract('CA10A2__status__c'))βœ”οΈ null
🟒creating-legacy-modelβœ”οΈ 299βœ”οΈ setOfText(['Creating', 'Failed']).contains(extract('CA10A2__status__c'))βœ”οΈ null
🟒active-context-variant-24kβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒active-context-variant-300kβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒haiku-active-regionβœ”οΈ 799βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'ACTIVE'βœ”οΈ null
🟒haiku-legacy-regionβœ”οΈ 899βœ”οΈ extract('CA10A2__model__r.CA10A2__modelLifecycleStatus__c') == 'LEGACY'βœ”οΈ null
🟒context-variant-mismatchβœ”οΈ 699βœ”οΈ extract('CA10A2__modelArn__c') != extract('CA10A2__model__r.CA10A2__modelArn__c')βœ”οΈ null
🟒model-arn-case-mismatchβœ”οΈ 699βœ”οΈ extract('CA10A2__modelArn__c') != extract('CA10A2__model__r.CA10A2__modelArn__c')βœ”οΈ null
🟒imported-custom-modelβœ”οΈ 399βœ”οΈ extract('caAwsBedrockUsesCustomModel')βœ”οΈ null
🟒govcloud-custom-modelβœ”οΈ 399βœ”οΈ extract('caAwsBedrockUsesCustomModel')βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/bedrock/provisioned-model-support/policy.yamlF96D249B88459D2A204D85F48C079DCF
Open/ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml5472F5A6B37458AD37DB457A7398EE36
Open/ce/ca/aws/bedrock/provisioned-model-support/test-data.jsonFE5F421B1E338DC995F3258664C9B1C1
Open/types/CA10A2__CaAwsBedrockProvisionedModelThroughput__c/object.extracts.yaml910827AB234A90C04D7A63BE293B3AA6
Open/types/CA10A2__CaAwsBedrockFoundationModel__c/object.extracts.yamlE5B9B6AF9C7EB89705D32F84D850DB58

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml

Content​

Open File

---
inputType: CA10A2__CaAwsBedrockProvisionedModelThroughput__c
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10A2__CaAwsBedrockProvisionedModelThroughput__c/object.extracts.yaml
- file: /types/CA10A2__CaAwsBedrockFoundationModel__c/object.extracts.yaml
conditions:
- status: UNDETERMINED
currentStateMessage: The Provisioned Throughput status is unrecognized.
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- Creating
- InService
- Updating
- Failed
search:
EXTRACT: CA10A2__status__c
- status: INAPPLICABLE
currentStateMessage: The Provisioned Throughput is being created or has failed; assess deployment health separately.
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- Creating
- Failed
search:
EXTRACT: CA10A2__status__c
# Classify custom routes before reading the required model ARN; original/desired fields never establish scope.
- status: INAPPLICABLE
currentStateMessage: The current model uses a custom-model route outside the foundation-model lifecycle scope.
check:
EXTRACT: caAwsBedrockUsesCustomModel
- status: UNDETERMINED
currentStateMessage: The current model ARN is missing or does not identify a foundation model.
check:
NOT:
arg:
CONTAINS:
arg:
EXTRACT: CA10A2__modelArn__c
search:
BYTES: "::foundation-model/"
- status: UNDETERMINED
currentStateMessage: The current foundation model lookup is missing, unresolved, or disappeared.
check:
IS_EMPTY_LOOKUP: CA10A2__model__r
# modelArn is current; foundationModelArn describes the original base and desiredModelArn can be pending.
- status: UNDETERMINED
currentStateMessage: The related foundation model ARN does not match the current model ARN.
check:
NOT_EQUAL:
left:
EXTRACT: CA10A2__modelArn__c
right:
EXTRACT: CA10A2__model__r.CA10A2__modelArn__c
- status: COMPLIANT
currentStateMessage: The current foundation model is Active in its AWS Region.
check:
IS_EQUAL:
left:
EXTRACT: CA10A2__model__r.CA10A2__modelLifecycleStatus__c
right:
TEXT: ACTIVE
- status: INCOMPLIANT
currentStateMessage: The current foundation model is Legacy and scheduled for retirement.
remediationMessage: Test an Active replacement model and migrate inference callers before the regional model retirement date.
check:
IS_EQUAL:
left:
EXTRACT: CA10A2__model__r.CA10A2__modelLifecycleStatus__c
right:
TEXT: LEGACY
otherwise:
status: UNDETERMINED
currentStateMessage: The current foundation model lifecycle status is missing or unrecognized; verify its regional status in Amazon Bedrock.