π§ AWS ELB Load Balancer Deletion Protection is disabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-01-31T12:01:57.452307881Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | 002 | βοΈ 199 | βοΈ extract('CA10__type__c') != 'application' && extract('CA10__type__c') != 'gateway' && extract('CA10__type__c') != 'network' | βοΈ null |
| π’ | 003 | βοΈ 299 | βοΈ extract('caSetFrom_additionalAttributes__c').contains('deletion_protection.enabled: false') | βοΈ null |
| π’ | 004 | βοΈ 399 | βοΈ extract('caSetFrom_additionalAttributes__c').contains('deletion_protection.enabled: true') | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/elb/load-balancer-deletion-protection/policy.yaml | DEE7F91CAF7D8D4DBD6D39AECBD8A6CA |
| Open | /ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml | 199C06097D0615AA24539AAAAC2D7285 |
| Open | /ce/ca/aws/elb/load-balancer-deletion-protection/test-data.json | 534F415D8CB9CECA73E94909295681AA |
| Open | /types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml | 9895F1EB30DFD8DDB6D571F452C5A7DE |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsLoadBalancer__c"
importExtracts:
- file: "/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Deletion Protection only supports Application, Network and Gateway Load Balancers."
check:
AND:
args:
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "application"
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "gateway"
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "network"
- status: "INCOMPLIANT"
currentStateMessage: "Load Balancer Deletion Protection is not enabled."
remediationMessage: "Enable Load Balancer Deletion Protection."
check:
CONTAINS:
arg:
EXTRACT: "caSetFrom_additionalAttributes__c"
search:
TEXT: "deletion_protection.enabled: false"
- status: "COMPLIANT"
currentStateMessage: "Load Balancer Deletion Protection is enabled."
check:
CONTAINS:
arg:
EXTRACT: "caSetFrom_additionalAttributes__c"
search:
TEXT: "deletion_protection.enabled: true"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."