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
Idawscc.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.
outbound_email_configobjectThe outbound email address ID.
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.

For more information, see AWS::Connect::Queue.

Methods

NameResourceAccessible byRequired Params
create_resourcequeuesINSERTInstanceArn, HoursOfOperationArn, Name, region
delete_resourcequeuesDELETEIdentifier, region
update_resourcequeuesUPDATEIdentifier, PatchDocument, region
list_resourcesqueues_list_onlySELECTregion
get_resourcequeuesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual queue.

SELECT
region,
instance_arn,
description,
hours_of_operation_arn,
max_contacts,
name,
outbound_caller_config,
outbound_email_config,
queue_arn,
status,
quick_connect_arns,
tags,
type
FROM awscc.connect.queues
WHERE
region = 'us-east-1' AND
Identifier = '{{ queue_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.connect.queues
SET PatchDocument = string('{{ {
"InstanceArn": instance_arn,
"Description": description,
"HoursOfOperationArn": hours_of_operation_arn,
"MaxContacts": max_contacts,
"Name": name,
"OutboundCallerConfig": outbound_caller_config,
"OutboundEmailConfig": outbound_email_config,
"Status": status,
"QuickConnectArns": quick_connect_arns,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ queue_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.connect.queues
WHERE
Identifier = '{{ queue_arn }}' AND
region = 'us-east-1';

Permissions

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

connect:CreateQueue,
connect:TagResource