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
Idawscc.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.

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

Methods

NameResourceAccessible byRequired Params
create_resourcerouting_profilesINSERTInstanceArn, Name, Description, MediaConcurrencies, DefaultOutboundQueueArn, region
delete_resourcerouting_profilesDELETEIdentifier, region
update_resourcerouting_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesrouting_profiles_list_onlySELECTregion
get_resourcerouting_profilesSELECTIdentifier, region

SELECT examples

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 awscc.connect.routing_profiles
WHERE
region = '{{ region }}' AND
Identifier = '{{ routing_profile_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.connect.routing_profiles (
InstanceArn,
Name,
Description,
MediaConcurrencies,
DefaultOutboundQueueArn,
region
)
SELECT
'{{ instance_arn }}',
'{{ name }}',
'{{ description }}',
'{{ media_concurrencies }}',
'{{ default_outbound_queue_arn }}',
'{{ 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 routing_profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.connect.routing_profiles
SET PatchDocument = string('{{ {
"InstanceArn": instance_arn,
"Name": name,
"Description": description,
"MediaConcurrencies": media_concurrencies,
"DefaultOutboundQueueArn": default_outbound_queue_arn,
"QueueConfigs": queue_configs,
"Tags": tags,
"AgentAvailabilityTimer": agent_availability_timer
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ routing_profile_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.routing_profiles
WHERE
Identifier = '{{ routing_profile_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 routing_profiles resource, the following permissions are required:

connect:CreateRoutingProfile,
connect:TagResource