Skip to main content

🧠 AWS Cognito User Pool Deletion Protection is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-04-25T12:02:19.254596115Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10A1__deletionProtection__c') == 'ACTIVE'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10A1__deletionProtection__c') == 'INACTIVE'βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/cognito/user-pool-deletion-protection/policy.yamlD1D3F4049AF435CA56947D42495E9199
Open/ce/ca/aws/cognito/user-pool-deletion-protection/prod.logic.yamlDC26430E17D7BE672AC5C26B9CA66D7A
Open/ce/ca/aws/cognito/user-pool-deletion-protection/test-data.json7EF58B055B4804D1075AFF04917116BA
Open/types/CA10A1__CaAwsCognitoUserPool__c/object.extracts.yaml603EF3950C35BC470402E6CAE7F5DF68

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/cognito/user-pool-deletion-protection/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/cognito/user-pool-deletion-protection/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/cognito/user-pool-deletion-protection/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/cognito/user-pool-deletion-protection/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/cognito/user-pool-deletion-protection/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsCognitoUserPool__c"
importExtracts:
- file: "/types/CA10A1__CaAwsCognitoUserPool__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Deletion protection is enabled for the Cognito user pool."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__deletionProtection__c"
right:
TEXT: "ACTIVE"
- status: "INCOMPLIANT"
currentStateMessage: "Deletion protection is not enabled for the Cognito user pool."
remediationMessage: "Enable deletion protection to require an explicit configuration change before the Cognito user pool can be deleted."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A1__deletionProtection__c"
right:
TEXT: "INACTIVE"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the Cognito user pool deletion protection setting."