{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-network-firewall/json-schema/amazon-network-firewall-create-proxy-rules-response-schema.json",
  "title": "CreateProxyRulesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-network-firewall-proxy-rule-api-openapi.yml#/components/schemas/CreateProxyRulesResponse",
  "type": "object",
  "properties": {
    "ProxyRuleGroup": {
      "$ref": "#/$defs/ProxyRuleGroup"
    },
    "UpdateToken": {
      "type": "string",
      "description": "A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy rule. The token marks the state of the proxy rule resource at the time of the request. To make changes to the proxy rule, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy rule again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation ag"
    }
  },
  "$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."
        }
      }
    },
    "ProxyRuleGroup": {
      "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."
        },
        "ProxyRuleGroupArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a proxy rule group."
        },
        "CreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the Proxy Rule Group was created."
        },
        "DeleteTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time the Proxy Rule Group was deleted."
        },
        "Rules": {
          "$ref": "#/$defs/ProxyRulesByRequestPhase"
        },
        "Description": {
          "type": "string",
          "description": "A description of the proxy rule group."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The key:value pairs to associate with the resource."
        }
      }
    },
    "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"
      ]
    }
  }
}