{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ClientSubnets",
  "/properties/Authentication",
  "/properties/SecurityGroups",
  "/properties/TargetClusterArn",
  "/properties/VpcId"
 ],
 "definitions": {
  "Authentication": {
   "enum": [
    "SASL_IAM",
    "SASL_SCRAM",
    "TLS"
   ],
   "maxLength": 10,
   "minLength": 3,
   "type": "string"
  },
  "ClientSubnets": {
   "insertionOrder": false,
   "items": {
    "pattern": "^(subnet-)([a-z0-9]+)\\Z",
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "SecurityGroups": {
   "format": "AWS::EC2::SecurityGroup.Ids",
   "insertionOrder": false,
   "items": {
    "format": "AWS::EC2::SecurityGroup.Id",
    "pattern": "^(sg-)([a-z0-9]+)\\Z",
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Tags": {
   "additionalProperties": false,
   "patternProperties": {
    "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "VpcId": {
   "format": "AWS::EC2::VPC.Id",
   "pattern": "^(vpc-)([a-z0-9]+)\\Z",
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Authentication": {
   "$ref": "#/definitions/Authentication"
  },
  "ClientSubnets": {
   "$ref": "#/definitions/ClientSubnets"
  },
  "SecurityGroups": {
   "$ref": "#/definitions/SecurityGroups"
  },
  "Tags": {
   "$ref": "#/definitions/Tags"
  },
  "TargetClusterArn": {
   "pattern": "^arn:[\\w-]+:kafka:[\\w-]+:\\d+:cluster.*\\Z",
   "type": "string"
  },
  "VpcId": {
   "$ref": "#/definitions/VpcId"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "Authentication",
  "ClientSubnets",
  "SecurityGroups",
  "TargetClusterArn",
  "VpcId"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::MSK::VpcConnection"
}
