Skip to main content

routing_profiles

Creates, updates, deletes or gets a routing_profile resource or lists routing_profiles in a region

Overview

Namerouting_profiles
TypeResource
DescriptionResource Type definition for AWS::Connect::RoutingProfile
Idaws.connect.routing_profiles

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
namestringThe name of the routing profile.
descriptionstringThe description of the routing profile.
media_concurrenciesarrayThe channels agents can handle in the Contact Control Panel (CCP) for this routing profile.
default_outbound_queue_arnstringThe identifier of the default outbound queue for this routing profile.
routing_profile_arnstringThe Amazon Resource Name (ARN) of the routing profile.
queue_configsarrayThe queues to associate with this routing profile.
tagsarrayAn array of key-value pairs to apply to this resource.
agent_availability_timerstringWhether agents with this routing profile will have their routing order calculated based on longest idle time or time since their last inbound contact.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, Name, Description, MediaConcurrencies, DefaultOutboundQueueArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all routing_profiles in a region.

SELECT
region,
instance_arn,
name,
description,
media_concurrencies,
default_outbound_queue_arn,
routing_profile_arn,
queue_configs,
tags,
agent_availability_timer
FROM aws.connect.routing_profiles
WHERE region = 'us-east-1';

Gets all properties from an individual routing_profile.

SELECT
region,
instance_arn,
name,
description,
media_concurrencies,
default_outbound_queue_arn,
routing_profile_arn,
queue_configs,
tags,
agent_availability_timer
FROM aws.connect.routing_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<RoutingProfileArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.routing_profiles (
InstanceArn,
Name,
Description,
MediaConcurrencies,
DefaultOutboundQueueArn,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ Description }}',
'{{ MediaConcurrencies }}',
'{{ DefaultOutboundQueueArn }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

connect:CreateRoutingProfile,
connect:TagResource

Read

connect:DescribeRoutingProfile,
connect:ListRoutingProfileQueues

Delete

connect:DeleteRoutingProfile,
connect:UntagResource

Update

connect:AssociateRoutingProfileQueues,
connect:DisassociateRoutingProfileQueues,
connect:UpdateRoutingProfileConcurrency,
connect:UpdateRoutingProfileName,
connect:UpdateRoutingProfileDefaultOutboundQueue,
connect:UpdateRoutingProfileQueues,
connect:TagResource,
connect:UntagResource,
connect:ListRoutingProfileQueues,
connect:UpdateRoutingProfileAgentAvailabilityTimer

List

connect:ListRoutingProfiles,
connect:ListRoutingProfileQueues