π§ AWS DynamoDB Table is unused - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/dynamodb/table-unused/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-12-27T12:01:46.195993615Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 199 | βοΈ extract('CA10__tableStatus__c') != 'ACTIVE' | βοΈ null |
| π’ | 002 | βοΈ 299 | βοΈ CA10__creationDateTime__c.withinLastDays(30) | βοΈ null |
| π’ | 003 | βοΈ 399 | βοΈ extract('CA10__itemCount__c') == number(0.0) | βοΈ null |
| π’ | 004 | βοΈ 400 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/dynamodb/table-unused/policy.yaml | B5979C3E4755A572EADD36F7A82BB076 |
| Open | /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml | 0249B119F58AA73435DDBDAC60F0E9CE |
| Open | /ce/ca/aws/dynamodb/table-unused/test-data.json | 546CA49183A182C061EDF86B1C14AD35 |
| Open | /types/CA10__CaAwsDynamoDbTable__c/object.extracts.yaml | EC959FF9A6572890388AA7C1C47122EF |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/dynamodb/table-unused/prod.logic.yaml
Contentβ
inputType: "CA10__CaAwsDynamoDbTable__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAwsDynamoDbTable__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The table is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__tableStatus__c"
right:
TEXT: "ACTIVE"
- status: "INAPPLICABLE"
currentStateMessage: "The table was created less than 30 days ago."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
FIELD:
path: "CA10__creationDateTime__c"
- status: "INCOMPLIANT"
currentStateMessage: "The DynamoDB Table is not used and contains 0 items."
remediationMessage: "Consider deleting the Table."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__itemCount__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Table contains items and is considered in use."