Skip to main content

🧠 AWS Kinesis Stream Retention Period Hours is less than 7 days - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-12T19:24:38.576110075Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'ACTIVE'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ CA10__retentionPeriodHours__c < number(168.0)βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/kinesis/stream-retention-period/policy.yamlC876AD79CE605DEBC2F09C66303C2482
Open/ce/ca/aws/kinesis/stream-retention-period/prod.logic.yaml7977D118303C85BB8A6DC8E2660A50EA
Open/ce/ca/aws/kinesis/stream-retention-period/test-data.json10D1F65CDB5E065949A2DF1C9F6E3873
Open/types/CA10__CaAwsKinesisStream__c/object.extracts.yamlC83C33B0C350C3D5094DD5B4D857C726

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/kinesis/stream-retention-period/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/kinesis/stream-retention-period/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/kinesis/stream-retention-period/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/kinesis/stream-retention-period/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/kinesis/stream-retention-period/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsKinesisStream__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsKinesisStream__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Kinesis Stream is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ACTIVE"
- status: "INCOMPLIANT"
currentStateMessage: "The Stream retention period is less than 168 hours (7 days)."
remediationMessage: "Increase the data stream retention period to 168 hours or more."
check:
LESS_THAN:
left:
FIELD:
path: "CA10__retentionPeriodHours__c"
right:
NUMBER: 168
otherwise:
status: "COMPLIANT"
currentStateMessage: "The stream retention period is at least 168 hours (7 days)."