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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.queues
WHERE
Identifier = '{{ queue_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

connect:CreateQueue,
connect:TagResource