{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-route-53/json-schema/amazon-route-53-change-cidr-collection-request-schema.json",
  "title": "ChangeCidrCollectionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-route-53-cidrcollection-api-openapi.yml#/components/schemas/ChangeCidrCollectionRequest",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The UUID of the CIDR collection to update."
    },
    "CollectionVersion": {
      "type": "integer",
      "description": "A sequential counter that Amazon Route 53 sets to 1 when you create a collection and increments it by 1 each time you update the collection. We recommend that you use ListCidrCollection to get the current value of CollectionVersion for the collection that you want to update, and then include that value with the change request. This prevents Route 53 from overwriting an intervening update: If the value in the request matches the value of CollectionVersion in the collection, Route 53 updates the collection. If the value of CollectionVersion in the collection is greater than the value in the requ"
    },
    "Changes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CidrCollectionChange"
      },
      "description": "Information about changes to a CIDR collection."
    }
  },
  "required": [
    "Id",
    "Changes"
  ],
  "$defs": {
    "CidrCollectionChange": {
      "type": "object",
      "properties": {
        "LocationName": {
          "type": "string",
          "description": "Name of the location that is associated with the CIDR collection."
        },
        "Action": {
          "type": "string",
          "enum": [
            "PUT",
            "DELETE_IF_EXISTS"
          ],
          "description": "CIDR collection change action."
        },
        "CidrList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of CIDR blocks."
        }
      },
      "required": [
        "LocationName",
        "Action",
        "CidrList"
      ]
    }
  }
}