π§ AWS Bedrock Provisioned Throughput should use an Active model - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS Bedrock Provisioned Model Throughput
- π AWS Bedrock Provisioned Model Throughput - object.extracts.yaml
- π AWS Bedrock Foundation Model - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-10-30T18:09:11.057603365Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/bedrock/provisioned-model-support/policy.yaml | F96D249B88459D2A204D85F48C079DCF |
| Open | /ce/ca/aws/bedrock/provisioned-model-support/prod.logic.yaml | 5472F5A6B37458AD37DB457A7398EE36 |
| Open | /ce/ca/aws/bedrock/provisioned-model-support/test-data.json | FE5F421B1E338DC995F3258664C9B1C1 |
| Open | /types/CA10A2__CaAwsBedrockProvisionedModelThroughput__c/object.extracts.yaml | 910827AB234A90C04D7A63BE293B3AA6 |
| Open | /types/CA10A2__CaAwsBedrockFoundationModel__c/object.extracts.yaml | E5B9B6AF9C7EB89705D32F84D850DB58 |
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β
---
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.