π§ AWS API Gateway REST API Stage is not associated with a WAF Web ACL - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-02-07T12:01:59.518266930Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ not(setOfText(['restApiStage']).contains(RecordType.DeveloperName)) | βοΈ null |
| π’ | test3 | βοΈ 299 | βοΈ extract('CA10__webAclArn__c').isEmpty() | βοΈ null |
| π’ | test4 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/policy.yaml | 286AF65A6336EBDE5D6AF9767625E939 |
| Open | /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml | 4D08B96ECB0A6C69151BDAB3D7E42196 |
| Open | /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/test-data.json | FE0F82F23B0ECDACC2E101DDDEDF808A |
| Open | /types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml | 4C63240D980BDDAFE321E6FFAC8F9034 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsApiGatewayStage__c"
importExtracts:
- file: "/types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml"
testData:
- file: test-data.json
recordTypes:
- "restApiStage"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The stage is not associated with a WAF Web ACL."
remediationMessage: "Consider associating a WAF Web ACL with an API Gateway Stage"
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__webAclArn__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The stage is associated with a WAF Web ACL."