{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-route-53/json-schema/amazon-route-53-change-resource-record-sets-request-schema.json",
  "title": "ChangeResourceRecordSetsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-route-53-resource-record-sets-api-openapi.yml#/components/schemas/ChangeResourceRecordSetsRequest",
  "type": "object",
  "properties": {
    "HostedZoneId": {
      "type": "string",
      "description": "The ID of the hosted zone that contains the resource record sets that you want to change."
    },
    "ChangeBatch": {
      "$ref": "#/$defs/ChangeBatch"
    }
  },
  "required": [
    "HostedZoneId",
    "ChangeBatch"
  ],
  "$defs": {
    "AliasTarget": {
      "type": "object",
      "properties": {
        "HostedZoneId": {
          "type": "string",
          "description": "Alias resource records sets only: The value used depends on where you want to route traffic: Amazon API Gateway custom regional APIs and edge-optimized APIs Specify the hosted zone ID for your API. You can get the applicable value using the CLI command get-domain-names: For regional APIs, specify the value of regionalHostedZoneId. For edge-optimized APIs, specify the value of distributionHostedZoneId. Amazon Virtual Private Cloud interface VPC endpoint Specify the hosted zone ID for your interface endpoint. You can get the value of HostedZoneId using the CLI command describe-vpc-endpoints. Clo"
        },
        "DNSName": {
          "type": "string",
          "description": "Alias resource record sets only: The value that you specify depends on where you want to route queries: Amazon API Gateway custom regional APIs and edge-optimized APIs Specify the applicable domain name for your API. You can get the applicable value using the CLI command get-domain-names: For regional APIs, specify the value of regionalDomainName. For edge-optimized APIs, specify the value of distributionDomainName. This is the name of the associated CloudFront distribution, such as da1b2c3d4e5.cloudfront.net. The name of the record that you're creating must match a custom domain name for your"
        },
        "EvaluateTargetHealth": {
          "type": "boolean",
          "description": "Applies only to alias, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced Amazon Web Services resource, such as an ELB load balancer or another resource record set in the hosted zone. Note the following: CloudFront distributions You can't set EvaluateTargetHealth to true when the alias target is a CloudFront distribution. Elastic Beanstalk environments that have regionalized subdomains If you specify an Elastic Beanstalk environment in DNSName and the en"
        }
      },
      "required": [
        "HostedZoneId",
        "DNSName",
        "EvaluateTargetHealth"
      ]
    },
    "Change": {
      "type": "object",
      "properties": {
        "Action": {
          "type": "string",
          "enum": [
            "CREATE",
            "DELETE",
            "UPSERT"
          ],
          "description": "The action to perform: CREATE: Creates a resource record set that has the specified values. DELETE: Deletes a existing resource record set. To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Amazon Route 53 will delete the resource record set automatically. If you delete the resource record set by using ChangeResourceRecordSets, Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though it's no longer in use. UPSERT: If a resource record set doesn't already exist, Rou"
        },
        "ResourceRecordSet": {
          "$ref": "#/$defs/ResourceRecordSet"
        }
      },
      "required": [
        "Action",
        "ResourceRecordSet"
      ]
    },
    "ChangeBatch": {
      "type": "object",
      "properties": {
        "Comment": {
          "type": "string",
          "description": "Optional: Any comments you want to include about a change batch request."
        },
        "Changes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Change"
          },
          "description": "Information about the changes to make to the record sets."
        }
      },
      "required": [
        "Changes"
      ]
    },
    "CidrRoutingConfig": {
      "type": "object",
      "properties": {
        "CollectionId": {
          "type": "string",
          "description": "The CIDR collection ID."
        },
        "LocationName": {
          "type": "string",
          "description": "The CIDR collection location name."
        }
      },
      "required": [
        "CollectionId",
        "LocationName"
      ]
    },
    "Coordinates": {
      "type": "object",
      "properties": {
        "Latitude": {
          "type": "string",
          "description": "Specifies a coordinate of the north–south position of a geographic point on the surface of the Earth (-90 - 90)."
        },
        "Longitude": {
          "type": "string",
          "description": "Specifies a coordinate of the east–west position of a geographic point on the surface of the Earth (-180 - 180)."
        }
      },
      "required": [
        "Latitude",
        "Longitude"
      ]
    },
    "GeoLocation": {
      "type": "object",
      "properties": {
        "ContinentCode": {
          "type": "string",
          "description": "The two-letter code for the continent. Amazon Route 53 supports the following continent codes: AF: Africa AN: Antarctica AS: Asia EU: Europe OC: Oceania NA: North America SA: South America Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error."
        },
        "CountryCode": {
          "type": "string",
          "description": "For geolocation resource record sets, the two-letter code for a country. Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2. Route 53 also supports the country code UA for Ukraine."
        },
        "SubdivisionCode": {
          "type": "string",
          "description": "For geolocation resource record sets, the two-letter code for a state of the United States. Route 53 doesn't support any other values for SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website. If you specify subdivisioncode, you must also specify US for CountryCode."
        }
      }
    },
    "GeoProximityLocation": {
      "type": "object",
      "properties": {
        "AWSRegion": {
          "type": "string",
          "description": "The Amazon Web Services Region the resource you are directing DNS traffic to, is in."
        },
        "LocalZoneGroup": {
          "type": "string",
          "description": "Specifies an Amazon Web Services Local Zone Group. A local Zone Group is usually the Local Zone code without the ending character. For example, if the Local Zone is us-east-1-bue-1a the Local Zone Group is us-east-1-bue-1. You can identify the Local Zones Group for a specific Local Zone by using the describe-availability-zones CLI command: This command returns: \"GroupName\": \"us-west-2-den-1\", specifying that the Local Zone us-west-2-den-1a belongs to the Local Zone Group us-west-2-den-1."
        },
        "Coordinates": {
          "$ref": "#/$defs/Coordinates"
        },
        "Bias": {
          "type": "integer",
          "description": "The bias increases or decreases the size of the geographic region from which Route 53 routes traffic to a resource. To use Bias to change the size of the geographic region, specify the applicable value for the bias: To expand the size of the geographic region from which Route 53 routes traffic to a resource, specify a positive integer from 1 to 99 for the bias. Route 53 shrinks the size of adjacent regions. To shrink the size of the geographic region from which Route 53 routes traffic to a resource, specify a negative bias of -1 to -99. Route 53 expands the size of adjacent regions."
        }
      }
    },
    "ResourceRecord": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The current or new DNS record value, not to exceed 4,000 characters. In the case of a DELETE action, if the current value does not match the actual value, an error is returned. For descriptions about how to format Value for different record types, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide. You can specify more than one value for all record types except CNAME and SOA. If you're creating an alias resource record set, omit Value."
        }
      },
      "required": [
        "Value"
      ]
    },
    "ResourceRecordSet": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "For ChangeResourceRecordSets requests, the name of the record that you want to create, update, or delete. For ListResourceRecordSets responses, the name of a record in the specified hosted zone. ChangeResourceRecordSets Only Enter a fully qualified domain name, for example, www.example.com. You can optionally include a trailing dot. If you omit the trailing dot, Amazon Route 53 assumes that the domain name that you specify is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical. For information about h"
        },
        "Type": {
          "type": "string",
          "enum": [
            "SOA",
            "A",
            "TXT",
            "NS",
            "CNAME",
            "MX",
            "NAPTR",
            "PTR",
            "SRV",
            "SPF",
            "AAAA",
            "CAA",
            "DS",
            "TLSA",
            "SSHFP",
            "SVCB",
            "HTTPS"
          ],
          "description": "The DNS record type. For information about different record types and how data is encoded for them, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide. Valid values for basic resource record sets: A | AAAA | CAA | CNAME | DS |MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT| TLSA| SSHFP| SVCB| HTTPS Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT| TLSA| SSHFP| SVCB| HTTPS. When creating a group of weighted, latency, geolocation, or failover resource record sets, specify the same v"
        },
        "SetIdentifier": {
          "type": "string",
          "description": "Resource record sets that have a routing policy other than simple: An identifier that differentiates among multiple resource record sets that have the same combination of name and type, such as multiple weighted resource record sets named acme.example.com that have a type of A. In a group of resource record sets that have the same name and type, the value of SetIdentifier must be unique for each resource record set. For information about routing policies, see Choosing a Routing Policy in the Amazon Route 53 Developer Guide."
        },
        "Weight": {
          "type": "integer",
          "description": "Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total. Note the following: You must specify a value for the Weight element for every weighted resource record set. You can only specify one ResourceRe"
        },
        "Region": {
          "type": "string",
          "enum": [
            "us-east-1",
            "us-east-2",
            "us-west-1",
            "us-west-2",
            "ca-central-1",
            "eu-west-1",
            "eu-west-2",
            "eu-west-3",
            "eu-central-1",
            "eu-central-2",
            "ap-southeast-1",
            "ap-southeast-2",
            "ap-southeast-3",
            "ap-northeast-1",
            "ap-northeast-2",
            "ap-northeast-3",
            "eu-north-1",
            "sa-east-1",
            "cn-north-1",
            "cn-northwest-1",
            "ap-east-1",
            "me-south-1",
            "me-central-1",
            "ap-south-1",
            "ap-south-2",
            "af-south-1",
            "eu-south-1",
            "eu-south-2",
            "ap-southeast-4",
            "il-central-1",
            "ca-west-1",
            "ap-southeast-5",
            "mx-central-1",
            "ap-southeast-7",
            "us-gov-east-1",
            "us-gov-west-1",
            "ap-east-2",
            "ap-southeast-6",
            "eusc-de-east-1"
          ],
          "description": "Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this resource record set refers to. The resource typically is an Amazon Web Services resource, such as an EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type. When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. Route 5"
        },
        "GeoLocation": {
          "$ref": "#/$defs/GeoLocation"
        },
        "Failover": {
          "type": "string",
          "enum": [
            "PRIMARY",
            "SECONDARY"
          ],
          "description": "Failover resource record sets only: To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set. Except where noted, the following failover behaviors assume that you have included the HealthCheckId element in both resource record sets: When the primary resource record set is healthy, Route 53 r"
        },
        "MultiValueAnswer": {
          "type": "boolean",
          "description": "Multivalue answer resource record sets only: To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer. Note the following: If you associate a health check with a multivalue answer resource record set, Amazon Route 53 responds to DNS queries with the corresponding IP address only when the health check is healthy. If you don't associate a health check with a multivalue answer record, Route 53 always considers the record to be healthy. Route 53 responds to DNS queries with up to "
        },
        "TTL": {
          "type": "integer",
          "description": "The resource record cache time to live (TTL), in seconds. Note the following: If you're creating or updating an alias resource record set, omit TTL. Amazon Route 53 uses the value of TTL for the alias target. If you're associating this resource record set with a health check (if you're adding a HealthCheckId element), we recommend that you specify a TTL of 60 seconds or less so clients respond quickly to changes in health status. All of the resource record sets in a group of weighted resource record sets must have the same value for TTL. If a group of weighted resource record sets includes one"
        },
        "ResourceRecords": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceRecord"
          },
          "description": "Information about the resource records to act upon. If you're creating an alias resource record set, omit ResourceRecords."
        },
        "AliasTarget": {
          "$ref": "#/$defs/AliasTarget"
        },
        "HealthCheckId": {
          "type": "string",
          "description": "If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check. Route 53 determines whether a resource record set is healthy based on one of the following: By periodically sending a request to the endpoint that is specified in the health check By aggregating the status of a specified group of health checks (calculated health checks) By determining the current state of a CloudWatch alarm (CloudWatch metric health checks) Route 53 doesn"
        },
        "TrafficPolicyInstanceId": {
          "type": "string",
          "description": "When you create a traffic policy instance, Amazon Route 53 automatically creates a resource record set. TrafficPolicyInstanceId is the ID of the traffic policy instance that Route 53 created this resource record set for. To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Route 53 will delete the resource record set automatically. If you delete the resource record set by using ChangeResourceRecordSets, Route 53 doesn't automatically delete the traffic policy instance, and you'll continue to be charged for it even though it's no "
        },
        "CidrRoutingConfig": {
          "$ref": "#/$defs/CidrRoutingConfig"
        },
        "GeoProximityLocation": {
          "$ref": "#/$defs/GeoProximityLocation"
        }
      },
      "required": [
        "Name",
        "Type"
      ]
    }
  }
}