{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-network-firewall/json-schema/amazon-network-firewall-update-proxy-request-schema.json",
  "title": "UpdateProxyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-network-firewall-proxy-api-openapi.yml#/components/schemas/UpdateProxyRequest",
  "type": "object",
  "properties": {
    "NatGatewayId": {
      "type": "string",
      "description": "The NAT Gateway the proxy is attached to."
    },
    "ProxyName": {
      "type": "string",
      "description": "The descriptive name of the proxy. You can't change the name of a proxy after you create it. You must specify the ARN or the name, and you can specify both."
    },
    "ProxyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of a proxy. You must specify the ARN or the name, and you can specify both."
    },
    "ListenerPropertiesToAdd": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ListenerPropertyRequest"
      },
      "description": "Listener properties for HTTP and HTTPS traffic to add."
    },
    "ListenerPropertiesToRemove": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ListenerPropertyRequest"
      },
      "description": "Listener properties for HTTP and HTTPS traffic to remove."
    },
    "TlsInterceptProperties": {
      "$ref": "#/$defs/TlsInterceptPropertiesRequest"
    },
    "UpdateToken": {
      "type": "string",
      "description": "A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy. The token marks the state of the proxy resource at the time of the request. To make changes to the proxy, you provide the token in your request. Network Firewall uses the token to ensure that the proxy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token."
    }
  },
  "required": [
    "NatGatewayId",
    "UpdateToken"
  ],
  "$defs": {
    "ListenerPropertyRequest": {
      "type": "object",
      "properties": {
        "Port": {
          "type": "integer",
          "description": "Port for processing traffic."
        },
        "Type": {
          "type": "string",
          "enum": [
            "HTTP",
            "HTTPS"
          ],
          "description": "Selection of HTTP or HTTPS traffic."
        }
      },
      "required": [
        "Port",
        "Type"
      ]
    },
    "TlsInterceptPropertiesRequest": {
      "type": "object",
      "properties": {
        "PcaArn": {
          "type": "string",
          "description": "Private Certificate Authority (PCA) used to issue private TLS certificates so that the proxy can present PCA-signed certificates which applications trust through the same root, establishing a secure and consistent trust model for encrypted communication."
        },
        "TlsInterceptMode": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Specifies whether to enable or disable TLS Intercept Mode."
        }
      }
    }
  }
}