{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-vpc-lattice/json-schema/amazon-vpc-lattice-create-resource-gateway-request-schema.json",
  "title": "CreateResourceGatewayRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-vpc-lattice-createresourcegateway-api-openapi.yml#/components/schemas/CreateResourceGatewayRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails."
    },
    "name": {
      "type": "string",
      "description": "The name of the resource gateway."
    },
    "vpcIdentifier": {
      "type": "string",
      "description": "The ID of the VPC for the resource gateway."
    },
    "subnetIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the VPC subnets in which to create the resource gateway."
    },
    "securityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the security groups to apply to the resource gateway. The security groups must be in the same VPC."
    },
    "ipAddressType": {
      "type": "string",
      "description": "A resource gateway can have IPv4, IPv6 or dualstack addresses. The IP address type of a resource gateway must be compatible with the subnets of the resource gateway and the IP address type of the resource, as described here: IPv4Assign IPv4 addresses to your resource gateway network interfaces. This option is supported only if all selected subnets have IPv4 address ranges, and the resource also has an IPv4 address. IPv6Assign IPv6 addresses to your resource gateway network interfaces. This option is supported only if all selected subnets are IPv6 only subnets, and the resource also has an IPv6"
    },
    "ipv4AddressesPerEni": {
      "type": "integer",
      "description": "The number of IPv4 addresses in each ENI for the resource gateway."
    },
    "resourceConfigDnsResolution": {
      "type": "string",
      "description": "Indicates how DNS is resolved for resource configurations associated with this resource gateway. This value is set when you create the resource gateway and can't be changed afterward. The default is PUBLIC. IN_VPC - DNS resolution occurs privately within the resource gateway's VPC. DNS queries for resources behind this resource gateway resolve using the DNS resolvers defined in the VPC's DHCP option sets. Use this when your resource domain names are hosted in private Route 53 hosted zones or on-premises DNS servers reachable from the VPC. A CIDR resource configuration requires a resource gatew"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags for the resource gateway."
    }
  },
  "required": [
    "name"
  ]
}