Amazon Network Firewall · JSON Structure

Openapi Stateless Rule Structure

A single stateless rule. This is used in StatelessRulesAndCustomActions.

Type: object Properties: 2 Required: 2
FirewallIntrusion DetectionNetwork SecurityVPC

StatelessRule is a JSON Structure definition published by Amazon Network Firewall, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

RuleDefinition Priority

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-network-firewall/refs/heads/main/json-structure/openapi-stateless-rule-structure.json",
  "name": "StatelessRule",
  "description": "A single stateless rule. This is used in <a>StatelessRulesAndCustomActions</a>.",
  "type": "object",
  "properties": {
    "RuleDefinition": {
      "allOf": [
        {
          "$ref": "#/components/schemas/RuleDefinition"
        },
        {
          "description": "Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. "
        }
      ]
    },
    "Priority": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Priority"
        },
        {
          "description": "<p>Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group. </p> <p>Each stateless rule group uses exactly one <code>StatelessRulesAndCustomActions</code> object, and each <code>StatelessRulesAndCustomActions</code> contains exactly one <code>StatelessRules</code> object. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any single <code>StatelessRules</code> object.</p> <p>You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on. </p>"
        }
      ]
    }
  },
  "required": [
    "RuleDefinition",
    "Priority"
  ]
}