π§ 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
- Located in: π AWS API Gateway REST API Stage is not associated with a WAF Web ACL π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS API Gateway Stage | CA10__CaAwsApiGatewayStage__c | 3 | 1 | 3 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:44:21.775851205Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ not(['restApiStage'].contains(RecordType.DeveloperName)) | βοΈ null |
π’ | test3 | βοΈ 299 | βοΈ extract('CA10__webAclArn__c').isEmpty() | βοΈ null |
π’ | test4 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generationβ
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 | /types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml | BFC9531C779AD876E602BE4C7AFCAE82 |
Open | /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/test-data.json | 8B83F1AE712E9D2F7F9D7BB8103DFA6D |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/apigateway/rest-api-stage-waf-web-acl/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar 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."