{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud-map/json-schema/amazon-cloud-map-create-private-dns-namespace-request-schema.json",
  "title": "CreatePrivateDnsNamespaceRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloud-map-operations-api-openapi.yml#/components/schemas/CreatePrivateDnsNamespaceRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace."
    },
    "CreatorRequestId": {
      "type": "string",
      "description": "A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp)."
    },
    "Description": {
      "type": "string",
      "description": "A description for the namespace."
    },
    "Vpc": {
      "type": "string",
      "description": "The ID of the Amazon VPC that you want to associate the namespace with."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length."
    },
    "Properties": {
      "$ref": "#/$defs/PrivateDnsNamespaceProperties"
    }
  },
  "required": [
    "Name",
    "Vpc"
  ],
  "$defs": {
    "PrivateDnsNamespaceProperties": {
      "type": "object",
      "properties": {
        "DnsProperties": {
          "$ref": "#/$defs/PrivateDnsPropertiesMutable"
        }
      },
      "required": [
        "DnsProperties"
      ]
    },
    "PrivateDnsPropertiesMutable": {
      "type": "object",
      "properties": {
        "SOA": {
          "$ref": "#/$defs/SOA"
        }
      },
      "required": [
        "SOA"
      ]
    },
    "SOA": {
      "type": "object",
      "properties": {
        "TTL": {
          "type": "integer",
          "description": "The time to live (TTL) for purposes of negative caching."
        }
      },
      "required": [
        "TTL"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key identifier, or name, of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}