{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DomainName",
  "/properties/CertificateArn"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:)[ a-zA-Z+-=._:/]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^[\\s\\w+-=\\.:/@]*$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  }
 },
 "primaryIdentifier": [
  "/properties/DomainName"
 ],
 "properties": {
  "AppSyncDomainName": {
   "type": "string"
  },
  "CertificateArn": {
   "format": "AWS::ACM::Certificate.Arn",
   "maxLength": 2048,
   "minLength": 3,
   "pattern": "^arn:[a-z-]*:acm:[a-z0-9-]*:\\d{12}:certificate/[0-9A-Za-z_/-]*$",
   "type": "string"
  },
  "Description": {
   "maxLength": 255,
   "minLength": 0,
   "type": "string"
  },
  "DomainName": {
   "maxLength": 253,
   "minLength": 1,
   "pattern": "^(\\*[a-z\\d-]*\\.)?([a-z\\d-]+\\.)+[a-z\\d-]+$",
   "type": "string"
  },
  "DomainNameArn": {
   "type": "string"
  },
  "HostedZoneId": {
   "type": "string"
  },
  "Tags": {
   "$ref": "#/definitions/Tags"
  }
 },
 "readOnlyProperties": [
  "/properties/AppSyncDomainName",
  "/properties/HostedZoneId",
  "/properties/DomainNameArn"
 ],
 "required": [
  "DomainName",
  "CertificateArn"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::AppSync::DomainName"
}
