{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud-map/json-schema/amazon-cloud-map-create-public-dns-namespace-request-schema.json",
  "title": "CreatePublicDnsNamespaceRequest",
  "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/CreatePublicDnsNamespaceRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name that you want to assign to this namespace. Do not include sensitive information in the name. The name is publicly available using DNS queries."
    },
    "CreatorRequestId": {
      "type": "string",
      "description": "A unique string that identifies the request and that allows failed CreatePublicDnsNamespace 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."
    },
    "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/PublicDnsNamespaceProperties"
    }
  },
  "required": [
    "Name"
  ],
  "$defs": {
    "PublicDnsNamespaceProperties": {
      "type": "object",
      "properties": {
        "DnsProperties": {
          "$ref": "#/$defs/PublicDnsPropertiesMutable"
        }
      },
      "required": [
        "DnsProperties"
      ]
    },
    "PublicDnsPropertiesMutable": {
      "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"
      ]
    }
  }
}