Skip to main content

queues

Creates, updates, deletes or gets a queue resource or lists queues in a region

Overview

Namequeues
TypeResource
DescriptionResource Type definition for AWS::Connect::Queue
Idaws.connect.queues

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
descriptionstringThe description of the queue.
hours_of_operation_arnstringThe identifier for the hours of operation.
max_contactsintegerThe maximum number of contacts that can be in the queue before it is considered full.
namestringThe name of the queue.
outbound_caller_configobjectThe outbound caller ID name, number, and outbound whisper flow.
queue_arnstringThe Amazon Resource Name (ARN) for the queue.
statusstringThe status of the queue.
quick_connect_arnsarrayThe quick connects available to agents who are working the queue.
tagsarrayAn array of key-value pairs to apply to this resource.
typestringThe type of queue.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, HoursOfOperationArn, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all queues in a region.

SELECT
region,
instance_arn,
description,
hours_of_operation_arn,
max_contacts,
name,
outbound_caller_config,
queue_arn,
status,
quick_connect_arns,
tags,
type
FROM aws.connect.queues
WHERE region = 'us-east-1';

Gets all properties from an individual queue.

SELECT
region,
instance_arn,
description,
hours_of_operation_arn,
max_contacts,
name,
outbound_caller_config,
queue_arn,
status,
quick_connect_arns,
tags,
type
FROM aws.connect.queues
WHERE region = 'us-east-1' AND data__Identifier = '<QueueArn>';

INSERT example

Use the following StackQL query and manifest file to create a new queue resource, using stack-deploy.

/*+ create */
INSERT INTO aws.connect.queues (
InstanceArn,
HoursOfOperationArn,
Name,
region
)
SELECT
'{{ InstanceArn }}',
'{{ HoursOfOperationArn }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.queues
WHERE data__Identifier = '<QueueArn>'
AND region = 'us-east-1';

Permissions

To operate on the queues resource, the following permissions are required:

Create

connect:CreateQueue,
connect:TagResource

Read

connect:DescribeQueue,
connect:ListQueueQuickConnects

Delete

connect:DeleteQueue,
connect:UntagResource

Update

connect:UpdateQueueHoursOfOperation,
connect:UpdateQueueMaxContacts,
connect:UpdateQueueName,
connect:UpdateQueueOutboundCallerConfig,
connect:UpdateQueueStatus,
connect:AssociateQueueQuickConnects,
connect:DisassociateQueueQuickConnects,
connect:TagResource,
connect:UntagResource

List

connect:ListQueues,
connect:ListQueueQuickConnects