{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-quick-connect-request-schema.json",
  "title": "CreateQuickConnectRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-quick-connects-api-openapi.yml#/components/schemas/CreateQuickConnectRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    },
    "Name": {
      "type": "string",
      "description": "A unique name of the quick connect."
    },
    "Description": {
      "type": "string",
      "description": "The description of the quick connect."
    },
    "QuickConnectConfig": {
      "$ref": "#/$defs/QuickConnectConfig"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }."
    }
  },
  "required": [
    "InstanceId",
    "Name",
    "QuickConnectConfig"
  ],
  "$defs": {
    "FlowQuickConnectConfig": {
      "type": "object",
      "properties": {
        "ContactFlowId": {
          "type": "string",
          "description": "The contact flow ID for the quick connect configuration."
        }
      },
      "required": [
        "ContactFlowId"
      ]
    },
    "PhoneNumberQuickConnectConfig": {
      "type": "object",
      "properties": {
        "PhoneNumber": {
          "type": "string",
          "description": "The phone number in E.164 format."
        }
      },
      "required": [
        "PhoneNumber"
      ]
    },
    "QueueQuickConnectConfig": {
      "type": "object",
      "properties": {
        "QueueId": {
          "type": "string",
          "description": "The identifier for the queue."
        },
        "ContactFlowId": {
          "type": "string",
          "description": "The identifier of the flow."
        }
      },
      "required": [
        "QueueId",
        "ContactFlowId"
      ]
    },
    "QuickConnectConfig": {
      "type": "object",
      "properties": {
        "QuickConnectType": {
          "type": "string",
          "enum": [
            "USER",
            "QUEUE",
            "PHONE_NUMBER",
            "FLOW"
          ],
          "description": "The type of quick connect. In the Connect Customer admin website, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE)."
        },
        "UserConfig": {
          "$ref": "#/$defs/UserQuickConnectConfig"
        },
        "QueueConfig": {
          "$ref": "#/$defs/QueueQuickConnectConfig"
        },
        "PhoneConfig": {
          "$ref": "#/$defs/PhoneNumberQuickConnectConfig"
        },
        "FlowConfig": {
          "$ref": "#/$defs/FlowQuickConnectConfig"
        }
      },
      "required": [
        "QuickConnectType"
      ]
    },
    "UserQuickConnectConfig": {
      "type": "object",
      "properties": {
        "UserId": {
          "type": "string",
          "description": "The identifier of the user."
        },
        "ContactFlowId": {
          "type": "string",
          "description": "The identifier of the flow."
        }
      },
      "required": [
        "UserId",
        "ContactFlowId"
      ]
    }
  }
}