{
 "additionalProperties": false,
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Identifier"
 ],
 "properties": {
  "CreationTime": {
   "type": "string"
  },
  "DeletionProtectionEnabled": {
   "type": "boolean"
  },
  "EncryptionDetails": {
   "additionalProperties": false,
   "properties": {
    "EncryptionStatus": {
     "type": "string"
    },
    "EncryptionType": {
     "type": "string"
    },
    "KmsKeyArn": {
     "format": "AWS::KMS::Key.Arn",
     "type": "string"
    }
   },
   "type": "object"
  },
  "Endpoint": {
   "type": "string"
  },
  "Identifier": {
   "pattern": "^[a-z0-9]{26}$",
   "type": "string"
  },
  "KmsEncryptionKey": {
   "maxLength": 2048,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9:/_-]+$",
   "type": "string"
  },
  "MultiRegionProperties": {
   "additionalProperties": false,
   "properties": {
    "Clusters": {
     "insertionOrder": false,
     "items": {
      "pattern": "^arn:aws(-[^:]+)?:dsql:[a-z0-9-]{1,20}:[0-9]{12}:cluster/[a-z0-9]{26}$",
      "type": "string"
     },
     "type": "array",
     "uniqueItems": true
    },
    "WitnessRegion": {
     "maxLength": 50,
     "type": "string"
    }
   },
   "type": "object"
  },
  "PolicyDocument": {
   "type": "string"
  },
  "PolicyVersion": {
   "type": "string"
  },
  "ResourceArn": {
   "type": "string"
  },
  "Status": {
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "VpcEndpoint": {
   "type": "string"
  },
  "VpcEndpointServiceName": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/ResourceArn",
  "/properties/Identifier",
  "/properties/CreationTime",
  "/properties/Status",
  "/properties/VpcEndpointServiceName",
  "/properties/EncryptionDetails",
  "/properties/PolicyVersion",
  "/properties/Endpoint",
  "/properties/VpcEndpoint"
 ],
 "required": [],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::DSQL::Cluster",
 "writeOnlyProperties": [
  "/properties/KmsEncryptionKey"
 ]
}
