Skip to main content

🧠 AWS Network Firewall Rule Group Stateless Rules are empty - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-17T12:02:55.570524840Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A2__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10A2__ruleGroupStatus__c') != 'ACTIVE'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10A2__type__c') != 'STATELESS'βœ”οΈ null
🟒test4βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒test5βœ”οΈ 499βœ”οΈ extract('CA10A2__statelessRulesJson__c').asJson().jsonQueryText('length(@)') == number(0.0)βœ”οΈ null
🟒test6βœ”οΈ 399βœ”οΈ extract('CA10A2__statelessRulesJson__c').isEmpty()βœ”οΈ null
🟒test7βœ”οΈ 399βœ”οΈ extract('CA10A2__statelessRulesJson__c').isEmpty()βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/network-firewall/rule-group-stateless-rules/policy.yamlB0D7089F2BA8D2EEF1BB10A3BECA377F
Open/ce/ca/aws/network-firewall/rule-group-stateless-rules/prod.logic.yamlD3BC04DCB363E675248FF28F89FBFBEC
Open/ce/ca/aws/network-firewall/rule-group-stateless-rules/test-data.json59798ECCE1C9AF0EAE045F4D4A368CA2
Open/types/CA10A2__CaAwsNetworkFirewallRuleGroup__c/object.extracts.yaml83B447F7D2F96FE20ABB020DF9B1A9BC

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/network-firewall/rule-group-stateless-rules/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/network-firewall/rule-group-stateless-rules/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/network-firewall/rule-group-stateless-rules/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/network-firewall/rule-group-stateless-rules/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/network-firewall/rule-group-stateless-rules/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A2__CaAwsNetworkFirewallRuleGroup__c"
importExtracts:
- file: "/types/CA10A2__CaAwsNetworkFirewallRuleGroup__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Network Firewall Rule Group is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10A2__ruleGroupStatus__c"
right:
TEXT: "ACTIVE"
- status: "INAPPLICABLE"
currentStateMessage: "This policy only applies to stateless rule groups."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10A2__type__c"
right:
TEXT: "STATELESS"
- status: "INCOMPLIANT"
currentStateMessage: "The stateless rule group contains no rules."
remediationMessage: "Add rules to the stateless rule group or delete the rule group
\ if it is no longer required and is not associated with a firewall policy."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10A2__statelessRulesJson__c"
- status: "INCOMPLIANT"
currentStateMessage: "The stateless rule group contains no rules."
remediationMessage: "Add rules to the stateless rule group or delete the rule group if it is no longer required."
check:
IS_EQUAL:
left:
JSON_QUERY_NUMBER:
arg:
JSON_FROM:
arg:
EXTRACT: "CA10A2__statelessRulesJson__c"
undeterminedIf:
isInvalid: "The rule group rules contain invalid JSON."
expression: "length(@)"
undeterminedIf:
evaluationError: "Failed to evaluate the number of rules."
resultTypeMismatch: "The rule group rules structure is unexpected."
right:
NUMBER: 0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The stateless rule group contains at least one rule."