{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-update-gateway-request-schema.json",
  "title": "UpdateGatewayRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-gateway-api-openapi.yml#/components/schemas/UpdateGatewayRequest",
  "type": "object",
  "properties": {
    "gateway": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) of the gateway to update."
    },
    "infrastructureRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that the gateway assumes to manage infrastructure on your behalf."
    },
    "deletionProtection": {
      "type": "boolean",
      "description": "Specifies whether to enable deletion protection for the gateway. When enabled, the gateway can't be deleted."
    },
    "configuration": {
      "$ref": "#/$defs/UpdateGatewayConfiguration"
    },
    "propagateTags": {
      "type": "string",
      "enum": [
        "NONE",
        "GATEWAY"
      ],
      "description": "Specifies whether to propagate the tags from the gateway to the infrastructure that the gateway manages. If you don't specify a value, the gateway's existing setting is unchanged."
    }
  },
  "required": [
    "gateway"
  ],
  "$defs": {
    "GatewayAlbTestTrafficRules": {
      "type": "object",
      "properties": {
        "header": {
          "$ref": "#/$defs/GatewayTestTrafficHeader"
        }
      }
    },
    "GatewayElbAccessLogConfiguration": {
      "type": "object",
      "properties": {
        "destination": {
          "$ref": "#/$defs/GatewayElbAccessLogDestination"
        }
      }
    },
    "GatewayElbAccessLogDestination": {
      "type": "object",
      "properties": {
        "s3": {
          "$ref": "#/$defs/GatewayElbAccessLogS3Destination"
        }
      },
      "description": "Exactly one member is set."
    },
    "GatewayElbAccessLogS3Destination": {
      "type": "object",
      "properties": {
        "bucket": {
          "type": "string",
          "description": "The name of the Amazon S3 bucket where access logs are delivered."
        },
        "prefix": {
          "type": "string",
          "description": "The object key prefix for the access logs in the Amazon S3 bucket."
        }
      },
      "required": [
        "bucket"
      ]
    },
    "GatewayTestTrafficHeader": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the header to match for test traffic routing."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The header values to match for test traffic routing."
        }
      },
      "required": [
        "name",
        "values"
      ]
    },
    "UpdateGatewayAlbConfiguration": {
      "type": "object",
      "properties": {
        "networkConfiguration": {
          "$ref": "#/$defs/UpdateGatewayNetworkConfiguration"
        },
        "maxAlbCount": {
          "type": "integer",
          "description": "The maximum number of Application Load Balancers that the gateway manages."
        },
        "webACLArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the WAF web ACL to associate with the load balancers that the gateway manages."
        },
        "accessLogs": {
          "$ref": "#/$defs/GatewayElbAccessLogConfiguration"
        },
        "httpDesync": {
          "type": "string",
          "enum": [
            "monitor",
            "defensive",
            "strictest"
          ],
          "description": "The desync mitigation mode for the load balancers that the gateway manages."
        },
        "testTrafficRules": {
          "$ref": "#/$defs/GatewayAlbTestTrafficRules"
        }
      }
    },
    "UpdateGatewayConfiguration": {
      "type": "object",
      "properties": {
        "hostSharedAlb": {
          "$ref": "#/$defs/UpdateGatewayAlbConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "UpdateGatewayNetworkConfiguration": {
      "type": "object",
      "properties": {
        "inboundSecurityGroup": {
          "type": "string",
          "description": "The ID of a security group that you provide to control inbound traffic to the load balancers that the gateway manages. When you specify a security group, the gateway doesn't create inbound rules on the security group it manages."
        }
      }
    }
  }
}