{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-network-firewall/json-schema/amazon-network-firewall-create-proxy-rule-group-request-schema.json",
  "title": "CreateProxyRuleGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-network-firewall-proxy-rule-group-api-openapi.yml#/components/schemas/CreateProxyRuleGroupRequest",
  "type": "object",
  "properties": {
    "ProxyRuleGroupName": {
      "type": "string",
      "description": "The descriptive name of the proxy rule group. You can't change the name of a proxy rule group after you create it."
    },
    "Description": {
      "type": "string",
      "description": "A description of the proxy rule group."
    },
    "Rules": {
      "$ref": "#/$defs/ProxyRulesByRequestPhase"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The key:value pairs to associate with the resource."
    }
  },
  "required": [
    "ProxyRuleGroupName"
  ],
  "$defs": {
    "ProxyRule": {
      "type": "object",
      "properties": {
        "ProxyRuleName": {
          "type": "string",
          "description": "The descriptive name of the proxy rule. You can't change the name of a proxy rule after you create it."
        },
        "Description": {
          "type": "string",
          "description": "A description of the proxy rule."
        },
        "Action": {
          "type": "string",
          "enum": [
            "ALLOW",
            "DENY",
            "ALERT"
          ],
          "description": "Action to take."
        },
        "Conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProxyRuleCondition"
          },
          "description": "Match criteria that specify what traffic attributes to examine. Conditions include operators (StringEquals, StringLike) and values to match against."
        }
      }
    },
    "ProxyRuleCondition": {
      "type": "object",
      "properties": {
        "ConditionOperator": {
          "type": "string",
          "description": "Defines how to perform a match."
        },
        "ConditionKey": {
          "type": "string",
          "description": "Defines what is to be matched."
        },
        "ConditionValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifes the exact value that needs to be matched against."
        }
      }
    },
    "ProxyRulesByRequestPhase": {
      "type": "object",
      "properties": {
        "PreDNS": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProxyRule"
          },
          "description": "Before domain resolution."
        },
        "PreREQUEST": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProxyRule"
          },
          "description": "After DNS, before request."
        },
        "PostRESPONSE": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProxyRule"
          },
          "description": "After receiving response."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive."
        },
        "Value": {
          "type": "string",
          "description": "The part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}