{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-connect-quickconnect.json",
  "title": "AWSConnectQuickConnectProperties",
  "description": "Resource Type definition for AWS::Connect::QuickConnect. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-connect-quickconnect.json",
    "sourceSha256": "b177b677003dc2ace7abfa540c310cd53b2a7caf3a761cbb6bd411943d7e945b"
  },
  "type": "object",
  "properties": {
    "InstanceArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier of the Amazon Connect instance."
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 127
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the quick connect."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 250
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the quick connect."
    },
    "QuickConnectConfig": {
      "description": "Configuration settings for the quick connect.",
      "$ref": "#/$defs/QuickConnectConfig"
    },
    "Tags": {
      "type": "array",
      "maxItems": 200,
      "uniqueItems": true,
      "insertionOrder": false,
      "description": "One or more tags.",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Connect::QuickConnect",
  "readOnlyProperties": [
    "/properties/QuickConnectArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/QuickConnectArn"
  ],
  "required": [
    "Name",
    "InstanceArn",
    "QuickConnectConfig"
  ],
  "$defs": {
    "QuickConnectType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "PHONE_NUMBER",
            "QUEUE",
            "USER"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).",
      "title": "AWSConnectQuickConnectQuickConnectTypeDefinition"
    },
    "PhoneNumber": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^\\+[1-9]\\d{1,14}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The phone number in E.164 format.",
      "title": "AWSConnectQuickConnectPhoneNumberDefinition"
    },
    "ContactFlowArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier of the contact flow.",
      "title": "AWSConnectQuickConnectContactFlowArnDefinition"
    },
    "QueueArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/queue/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier for the queue.",
      "title": "AWSConnectQuickConnectQueueArnDefinition"
    },
    "UserArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier of the user.",
      "title": "AWSConnectQuickConnectUserArnDefinition"
    },
    "PhoneNumberQuickConnectConfig": {
      "description": "The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.",
      "type": "object",
      "title": "AWSConnectQuickConnectPhoneNumberQuickConnectConfigDefinition",
      "properties": {
        "PhoneNumber": {
          "$ref": "#/$defs/PhoneNumber"
        }
      },
      "required": [
        "PhoneNumber"
      ],
      "additionalProperties": false
    },
    "QueueQuickConnectConfig": {
      "description": "The queue configuration. This is required only if QuickConnectType is QUEUE.",
      "type": "object",
      "title": "AWSConnectQuickConnectQueueQuickConnectConfigDefinition",
      "properties": {
        "ContactFlowArn": {
          "$ref": "#/$defs/ContactFlowArn"
        },
        "QueueArn": {
          "$ref": "#/$defs/QueueArn"
        }
      },
      "required": [
        "ContactFlowArn",
        "QueueArn"
      ],
      "additionalProperties": false
    },
    "UserQuickConnectConfig": {
      "description": "The user configuration. This is required only if QuickConnectType is USER.",
      "type": "object",
      "title": "AWSConnectQuickConnectUserQuickConnectConfigDefinition",
      "properties": {
        "ContactFlowArn": {
          "$ref": "#/$defs/ContactFlowArn"
        },
        "UserArn": {
          "$ref": "#/$defs/UserArn"
        }
      },
      "required": [
        "ContactFlowArn",
        "UserArn"
      ],
      "additionalProperties": false
    },
    "QuickConnectConfig": {
      "description": "Configuration settings for the quick connect.",
      "type": "object",
      "title": "AWSConnectQuickConnectQuickConnectConfigDefinition",
      "properties": {
        "QuickConnectType": {
          "$ref": "#/$defs/QuickConnectType"
        },
        "PhoneConfig": {
          "$ref": "#/$defs/PhoneNumberQuickConnectConfig"
        },
        "QueueConfig": {
          "$ref": "#/$defs/QueueQuickConnectConfig"
        },
        "UserConfig": {
          "$ref": "#/$defs/UserQuickConnectConfig"
        }
      },
      "required": [
        "QuickConnectType"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSConnectQuickConnectTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  }
}
