{
 "additionalProperties": false,
 "definitions": {
  "Key": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
   "type": "string"
  },
  "OutboundCallerConfig": {
   "additionalProperties": false,
   "properties": {
    "OutboundCallerIdName": {
     "$ref": "#/definitions/OutboundCallerIdName"
    },
    "OutboundCallerIdNumberArn": {
     "$ref": "#/definitions/OutboundCallerIdNumberArn"
    },
    "OutboundFlowArn": {
     "$ref": "#/definitions/OutboundFlowArn"
    }
   },
   "type": "object"
  },
  "OutboundCallerIdName": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "OutboundCallerIdNumberArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:phone-number/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "OutboundEmailAddressId": {
   "maxLength": 500,
   "minLength": 1,
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/email-address/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "OutboundEmailConfig": {
   "additionalProperties": false,
   "properties": {
    "OutboundEmailAddressId": {
     "$ref": "#/definitions/OutboundEmailAddressId"
    }
   },
   "type": "object"
  },
  "OutboundFlowArn": {
   "maxLength": 500,
   "minLength": 1,
   "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"
  },
  "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"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "$ref": "#/definitions/Key"
    },
    "Value": {
     "$ref": "#/definitions/Value"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "Value": {
   "maxLength": 256,
   "minLength": 0,
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/QueueArn"
 ],
 "properties": {
  "Description": {
   "maxLength": 250,
   "minLength": 1,
   "type": "string"
  },
  "HoursOfOperationArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/operating-hours/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "InstanceArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "MaxContacts": {
   "minimum": 0,
   "type": "integer"
  },
  "Name": {
   "maxLength": 127,
   "minLength": 1,
   "type": "string"
  },
  "OutboundCallerConfig": {
   "$ref": "#/definitions/OutboundCallerConfig"
  },
  "OutboundEmailConfig": {
   "$ref": "#/definitions/OutboundEmailConfig"
  },
  "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"
  },
  "QuickConnectArns": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/QuickConnectArn"
   },
   "minItems": 1,
   "type": "array"
  },
  "Status": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  },
  "Type": {
   "enum": [
    "STANDARD",
    "AGENT"
   ],
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/QueueArn",
  "/properties/Type"
 ],
 "required": [
  "InstanceArn",
  "HoursOfOperationArn",
  "Name"
 ],
 "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::Queue"
}
