{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-set-ip-address-type-request-schema.json",
  "title": "SetIpAddressTypeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-account-api-openapi.yml#/components/schemas/SetIpAddressTypeRequest",
  "type": "object",
  "properties": {
    "resourceType": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceType"
        }
      ],
      "description": "The resource type. The resource values are Distribution , Instance , and LoadBalancer . Distribution-related APIs are available only in the N. Virginia ( us-east-1 ) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit distributions."
    },
    "resourceName": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceName"
        }
      ],
      "description": "The name of the resource for which to set the IP address type."
    },
    "ipAddressType": {
      "allOf": [
        {
          "$ref": "#/$defs/IpAddressType"
        }
      ],
      "description": "The IP address type to set for the specified resource. The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6."
    },
    "acceptBundleUpdate": {
      "allOf": [
        {
          "$ref": "#/$defs/boolean"
        }
      ],
      "description": "Required parameter to accept the instance bundle update when changing to, and from, IPv6-only. An instance bundle will change when switching from dual-stack or ipv4 , to ipv6 . It also changes when switching from ipv6 , to dual-stack or ipv4 . You must include this parameter in the command to update the bundle. For example, if you switch from dual-stack to ipv6 , the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately."
    }
  },
  "required": [
    "resourceType",
    "resourceName",
    "ipAddressType"
  ],
  "$defs": {
    "IpAddressType": {
      "type": "string",
      "enum": [
        "dualstack",
        "ipv4",
        "ipv6"
      ]
    },
    "ResourceName": {
      "type": "string",
      "pattern": "^\\w[\\w\\-]*\\w$"
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "ContainerService",
        "Instance",
        "StaticIp",
        "KeyPair",
        "InstanceSnapshot",
        "Domain",
        "PeeredVpc",
        "LoadBalancer",
        "LoadBalancerTlsCertificate",
        "Disk",
        "DiskSnapshot",
        "RelationalDatabase",
        "RelationalDatabaseSnapshot",
        "ExportSnapshotRecord",
        "CloudFormationStackRecord",
        "Alarm",
        "ContactMethod",
        "Distribution",
        "Certificate",
        "Bucket"
      ]
    },
    "boolean": {
      "type": "boolean"
    }
  }
}