{
  "typeName" : "AWS::VoiceID::Domain",
  "description" : "The AWS::VoiceID::Domain resource specifies an Amazon VoiceID Domain.",
  "definitions" : {
    "ServerSideEncryptionConfiguration" : {
      "type" : "object",
      "properties" : {
        "KmsKeyId" : {
          "type" : "string",
          "maxLength" : 2048,
          "minLength" : 1
        }
      },
      "required" : [ "KmsKeyId" ],
      "additionalProperties" : false
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "maxLength" : 128,
          "minLength" : 1,
          "pattern" : "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
        },
        "Value" : {
          "type" : "string",
          "maxLength" : 256,
          "minLength" : 0,
          "pattern" : "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Description" : {
      "type" : "string",
      "maxLength" : 1024,
      "minLength" : 1,
      "pattern" : "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$"
    },
    "DomainId" : {
      "type" : "string",
      "maxLength" : 22,
      "minLength" : 22,
      "pattern" : "^[a-zA-Z0-9]{22}$"
    },
    "Name" : {
      "type" : "string",
      "maxLength" : 256,
      "minLength" : 1,
      "pattern" : "^[a-zA-Z0-9][a-zA-Z0-9_-]*$"
    },
    "ServerSideEncryptionConfiguration" : {
      "$ref" : "#/definitions/ServerSideEncryptionConfiguration"
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      },
      "maxItems" : 200,
      "minItems" : 0
    }
  },
  "required" : [ "Name", "ServerSideEncryptionConfiguration" ],
  "readOnlyProperties" : [ "/properties/DomainId" ],
  "writeOnlyProperties" : [ "/properties/Description", "/properties/Name", "/properties/ServerSideEncryptionConfiguration" ],
  "primaryIdentifier" : [ "/properties/DomainId" ],
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "#/properties/Tags"
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "voiceid:CreateDomain" ]
    },
    "read" : {
      "permissions" : [ "voiceid:DescribeDomain" ]
    },
    "update" : {
      "permissions" : [ "voiceid:UpdateDomain" ]
    },
    "delete" : {
      "permissions" : [ "voiceid:DeleteDomain" ]
    },
    "list" : {
      "permissions" : [ "voiceid:ListDomains" ]
    }
  },
  "additionalProperties" : false
}