{
 "additionalProperties": false,
 "definitions": {
  "ContactFlowArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "PhoneNumber": {
   "pattern": "^\\+[1-9]\\d{1,14}$",
   "type": "string"
  },
  "PhoneNumberQuickConnectConfig": {
   "additionalProperties": false,
   "properties": {
    "PhoneNumber": {
     "$ref": "#/definitions/PhoneNumber"
    }
   },
   "required": [
    "PhoneNumber"
   ],
   "type": "object"
  },
  "QueueArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/queue/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "QueueQuickConnectConfig": {
   "additionalProperties": false,
   "properties": {
    "ContactFlowArn": {
     "$ref": "#/definitions/ContactFlowArn"
    },
    "QueueArn": {
     "$ref": "#/definitions/QueueArn"
    }
   },
   "required": [
    "ContactFlowArn",
    "QueueArn"
   ],
   "type": "object"
  },
  "QuickConnectConfig": {
   "additionalProperties": false,
   "properties": {
    "PhoneConfig": {
     "$ref": "#/definitions/PhoneNumberQuickConnectConfig"
    },
    "QueueConfig": {
     "$ref": "#/definitions/QueueQuickConnectConfig"
    },
    "QuickConnectType": {
     "$ref": "#/definitions/QuickConnectType"
    },
    "UserConfig": {
     "$ref": "#/definitions/UserQuickConnectConfig"
    }
   },
   "required": [
    "QuickConnectType"
   ],
   "type": "object"
  },
  "QuickConnectType": {
   "enum": [
    "PHONE_NUMBER",
    "QUEUE",
    "USER"
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "UserArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "UserQuickConnectConfig": {
   "additionalProperties": false,
   "properties": {
    "ContactFlowArn": {
     "$ref": "#/definitions/ContactFlowArn"
    },
    "UserArn": {
     "$ref": "#/definitions/UserArn"
    }
   },
   "required": [
    "ContactFlowArn",
    "UserArn"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/QuickConnectArn"
 ],
 "properties": {
  "Description": {
   "maxLength": 250,
   "minLength": 1,
   "type": "string"
  },
  "InstanceArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "Name": {
   "maxLength": 127,
   "minLength": 1,
   "type": "string"
  },
  "QuickConnectArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/transfer-destination/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "QuickConnectConfig": {
   "$ref": "#/definitions/QuickConnectConfig"
  },
  "QuickConnectType": {
   "enum": [
    "PHONE_NUMBER",
    "QUEUE",
    "USER"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/QuickConnectArn",
  "/properties/QuickConnectType"
 ],
 "required": [
  "Name",
  "InstanceArn",
  "QuickConnectConfig"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Connect::QuickConnect"
}
