{ "$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-stateful-rule-schema.json", "title": "StatefulRule", "description": "A single Suricata rules specification, for use in a stateful rule group. Use this option to specify a simple Suricata rule with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format. ", "type": "object", "properties": { "Action": { "allOf": [ { "$ref": "#/components/schemas/StatefulAction" }, { "description": "

Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow.

The actions for a stateful rule are defined as follows:

" } ] }, "Header": { "allOf": [ { "$ref": "#/components/schemas/Header" }, { "description": "The stateful inspection criteria for this rule, used to inspect traffic flows. " } ] }, "RuleOptions": { "allOf": [ { "$ref": "#/components/schemas/RuleOptions" }, { "description": "Additional options for the rule. These are the Suricata RuleOptions settings." } ] } }, "required": [ "Action", "Header", "RuleOptions" ] }