Skip to main content

🧠 AWS DynamoDB Table Point In Time Recovery is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“— AWS DynamoDB TableCA10__CaAwsDynamoDbTable__c212

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-07-25T15:25:53.137831512Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__pointInTimeRecoveryStatus__c') == 'DISABLED'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__pointInTimeRecoveryStatus__c') == 'ENABLED'βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/dynamodb/table-point-in-time-recovery/policy.yaml37EE543E11AF93BF0BD9570D3E3215CC
Open/ce/ca/aws/dynamodb/table-point-in-time-recovery/prod.logic.yamlCA15A4AB11B9A5D93ED06C106CFDCAB8
Open/types/CA10__CaAwsDynamoDbTable__c/object.extracts.yamlEB356A351A5AB0BB2575E0F65DA30F2E
Open/ce/ca/aws/dynamodb/table-point-in-time-recovery/test-data.json230AD4833CEA3B1F5827C80B90EE809D

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/dynamodb/table-point-in-time-recovery/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/dynamodb/table-point-in-time-recovery/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/dynamodb/table-point-in-time-recovery/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/dynamodb/table-point-in-time-recovery/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/dynamodb/table-point-in-time-recovery/prod.logic.yaml

Content​

Open File

inputType: "CA10__CaAwsDynamoDbTable__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAwsDynamoDbTable__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Point-in-Time Recovery is not enabled for this DynamoDB table."
remediationMessage: "Consider enabling Point-in-Time Recovery for the DynamoDB table to allow for granular data restoration."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__pointInTimeRecoveryStatus__c"
right:
TEXT: "DISABLED"
- status: "COMPLIANT"
currentStateMessage: "Point-in-Time Recovery is enabled for this DynamoDB table."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__pointInTimeRecoveryStatus__c"
right:
TEXT: "ENABLED"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."