{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-elastic-load-balancing/json-schema/amazon-elastic-load-balancing-set-subnets-input-schema.json",
  "title": "SetSubnetsInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-elastic-load-balancing-operations-api-openapi.yml#/components/schemas/SetSubnetsInput",
  "type": "object",
  "properties": {
    "LoadBalancerArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the load balancer."
    },
    "Subnets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings. [Application Load Balancers] You must specify subnets from at least two Availability Zones. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You can specify subnets from one or more Availability Zones. [Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You must include all s"
    },
    "SubnetMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubnetMapping"
      },
      "description": "The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings. [Application Load Balancers] You must specify subnets from at least two Availability Zones. You can't specify Elastic IP addresses for your subnets. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet i"
    },
    "IpAddressType": {
      "type": "string",
      "enum": [
        "ipv4",
        "dualstack",
        "dualstack-without-public-ipv4"
      ],
      "description": "The IP address type. [Application Load Balancers] The possible values are ipv4 (IPv4 addresses), dualstack (IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 (public IPv6 addresses and private IPv4 and IPv6 addresses). [Network Load Balancers and Gateway Load Balancers] The possible values are ipv4 (IPv4 addresses) and dualstack (IPv4 and IPv6 addresses)."
    },
    "EnablePrefixForIpv6SourceNat": {
      "type": "string",
      "enum": [
        "on",
        "off"
      ],
      "description": "[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be dualstack. The default value is off."
    }
  },
  "required": [
    "LoadBalancerArn"
  ],
  "$defs": {
    "SubnetMapping": {
      "type": "object",
      "properties": {
        "SubnetId": {
          "type": "string",
          "description": "The ID of the subnet."
        },
        "AllocationId": {
          "type": "string",
          "description": "[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer."
        },
        "PrivateIPv4Address": {
          "type": "string",
          "description": "[Network Load Balancers] The private IPv4 address for an internal load balancer."
        },
        "IPv6Address": {
          "type": "string",
          "description": "[Network Load Balancers] The IPv6 address."
        },
        "SourceNatIpv6Prefix": {
          "type": "string",
          "description": "[Network Load Balancers with UDP listeners] The IPv6 prefix to use for source NAT. Specify an IPv6 prefix (/80 netmask) from the subnet CIDR block or auto_assigned to use an IPv6 prefix selected at random from the subnet CIDR block."
        }
      }
    }
  }
}