{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-network-firewall/refs/heads/main/json-schema/openapi-firewall-policy-schema.json", "title": "FirewallPolicy", "description": "
The firewall policy defines the behavior of a firewall using a collection of stateless and stateful rule groups and other settings. You can use one firewall policy for multiple firewalls.
This, along with FirewallPolicyResponse, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.
", "type": "object", "properties": { "StatelessRuleGroupReferences": { "allOf": [ { "$ref": "#/components/schemas/StatelessRuleGroupReferences" }, { "description": "References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules. " } ] }, "StatelessDefaultActions": { "allOf": [ { "$ref": "#/components/schemas/StatelessActions" }, { "description": "The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want non-matching packets to be forwarded for stateful inspection, specify aws:forward_to_sfe.
You must specify one of the standard actions: aws:pass, aws:drop, or aws:forward_to_sfe. In addition, you can specify custom actions that are compatible with your standard section choice.
For example, you could specify [\"aws:pass\"] or you could specify [\"aws:pass\", \u201ccustomActionName\u201d]. For information about compatibility, see the custom action descriptions under CustomAction.
The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy. Network Firewall only manages UDP packet fragments and silently drops packet fragments for other protocols. If you want non-matching fragmented UDP packets to be forwarded for stateful inspection, specify aws:forward_to_sfe.
You must specify one of the standard actions: aws:pass, aws:drop, or aws:forward_to_sfe. In addition, you can specify custom actions that are compatible with your standard section choice.
For example, you could specify [\"aws:pass\"] or you could specify [\"aws:pass\", \u201ccustomActionName\u201d]. For information about compatibility, see the custom action descriptions under CustomAction.
StatelessDefaultActions setting. You name each custom action that you define, and then you can use it by name in your default actions specifications."
}
]
},
"StatefulRuleGroupReferences": {
"allOf": [
{
"$ref": "#/components/schemas/StatefulRuleGroupReferences"
},
{
"description": "References to the stateful rule groups that are used in the policy. These define the inspection criteria in stateful rules. "
}
]
},
"StatefulDefaultActions": {
"allOf": [
{
"$ref": "#/components/schemas/StatefulActions"
},
{
"description": "The default actions to take on a packet that doesn't match any stateful rules. The stateful default action is optional, and is only valid when using the strict rule order.
Valid values of the stateful default action:
aws:drop_strict
aws:drop_established
aws:alert_strict
aws:alert_established
For more information, see Strict evaluation order in the Network Firewall Developer Guide.
" } ] }, "StatefulEngineOptions": { "allOf": [ { "$ref": "#/components/schemas/StatefulEngineOptions" }, { "description": "Additional options governing how Network Firewall handles stateful rules. The stateful rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings." } ] }, "TLSInspectionConfigurationArn": { "allOf": [ { "$ref": "#/components/schemas/ResourceArn" }, { "description": "The Amazon Resource Name (ARN) of the TLS inspection configuration." } ] } }, "required": [ "StatelessDefaultActions", "StatelessFragmentDefaultActions" ] }