Amazon Network Firewall · JSON Structure

Openapi Port Range Structure

A single port range specification. This is used for source and destination port ranges in the stateless rule MatchAttributes, SourcePorts, and DestinationPorts settings.

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

PortRange 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

FromPort ToPort

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-port-range-structure.json",
  "name": "PortRange",
  "description": "A single port range specification. This is used for source and destination port ranges in the stateless rule <a>MatchAttributes</a>, <code>SourcePorts</code>, and <code>DestinationPorts</code> settings. ",
  "type": "object",
  "properties": {
    "FromPort": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PortRangeBound"
        },
        {
          "description": "The lower limit of the port range. This must be less than or equal to the <code>ToPort</code> specification. "
        }
      ]
    },
    "ToPort": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PortRangeBound"
        },
        {
          "description": "The upper limit of the port range. This must be greater than or equal to the <code>FromPort</code> specification. "
        }
      ]
    }
  },
  "required": [
    "FromPort",
    "ToPort"
  ]
}