Skip to main content

routing_profiles

Creates, updates, deletes, gets or lists a routing_profiles resource.

Overview

Namerouting_profiles
TypeResource
Idaws.connect.routing_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_availability_timerstringWhether agents with this routing profile will have their routing order calculated based on time since their last inbound contact or longest idle time. (TIME_SINCE_LAST_ACTIVITY, TIME_SINCE_LAST_INBOUND)
associated_manual_assignment_queue_idsarrayThe IDs of the associated manual assignment queues.
associated_queue_idsarrayThe IDs of the associated queue.
default_outbound_queue_idstringThe identifier of the default outbound queue for this routing profile.
descriptionstringThe description of the routing profile.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
is_defaultbooleanWhether this a default routing profile.
last_modified_regionstringThe Amazon Web Services Region where this resource was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when this resource was last modified.
media_concurrenciesarrayThe channels agents can handle in the Contact Control Panel (CCP) for this routing profile.
namestringThe name of the routing profile.
number_of_associated_manual_assignment_queuesinteger (int64)The number of associated manual assignment queues in routing profile.
number_of_associated_queuesinteger (int64)The number of associated queues in routing profile.
number_of_associated_usersinteger (int64)The number of associated users in routing profile.
routing_profile_arnstringThe Amazon Resource Name (ARN) of the routing profile.
routing_profile_idstringThe identifier of the routing profile.
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_routing_profileselectinstance_id, routing_profile_id, regionDescribes the specified routing profile. DescribeRoutingProfile does not populate AssociatedQueueIds in its response. The example Response Syntax shown on this page is incorrect; we are working to update it. SearchRoutingProfiles does include AssociatedQueueIds.
list_routing_profilesselectinstance_id, regionnextToken, maxResultsProvides summary information about the routing profiles for the specified Connect Customer instance. For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Connect Customer Administrator Guide.
search_routing_profilesselectregionSearches routing profiles in an Connect Customer instance, with optional filtering. SearchRoutingProfiles does not populate LastModifiedRegion, LastModifiedTime, MediaConcurrencies.CrossChannelBehavior, and AgentAvailabilityTimer in its response, but DescribeRoutingProfile does.
create_routing_profileinsertinstance_id, region, DefaultOutboundQueueId, MediaConcurrenciesCreates a new routing profile.
update_routing_profile_agent_availability_timerupdateinstance_id, routing_profile_id, region, AgentAvailabilityTimerWhether agents with this routing profile will have their routing order calculated based on time since their last inbound contact or longest idle time.
update_routing_profile_concurrencyupdateinstance_id, routing_profile_id, region, MediaConcurrenciesUpdates the channels that agents can handle in the Contact Control Panel (CCP) for a routing profile.
update_user_routing_profileupdateuser_id, instance_id, region, RoutingProfileIdAssigns the specified routing profile to the specified user.
update_routing_profile_nameupdateinstance_id, routing_profile_id, regionUpdates the name and description of a routing profile. The request accepts the following data in JSON format. At least Name or Description must be provided.
delete_routing_profiledeleteinstance_id, routing_profile_id, regionDeletes a routing profile.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
routing_profile_idstringThe identifier of the routing profile.
user_idstringThe identifier of the user account.
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Describes the specified routing profile. DescribeRoutingProfile does not populate AssociatedQueueIds in its response. The example Response Syntax shown on this page is incorrect; we are working to update it. SearchRoutingProfiles does include AssociatedQueueIds.

SELECT
agent_availability_timer,
associated_manual_assignment_queue_ids,
associated_queue_ids,
default_outbound_queue_id,
description,
instance_id,
is_default,
last_modified_region,
last_modified_time,
media_concurrencies,
name,
number_of_associated_manual_assignment_queues,
number_of_associated_queues,
number_of_associated_users,
routing_profile_arn,
routing_profile_id,
tags
FROM aws.connect.routing_profiles
WHERE instance_id = '{{ instance_id }}' -- required
AND routing_profile_id = '{{ routing_profile_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new routing profile.

INSERT INTO aws.connect.routing_profiles (
Name,
Description,
DefaultOutboundQueueId,
QueueConfigs,
ManualAssignmentQueueConfigs,
MediaConcurrencies,
Tags,
AgentAvailabilityTimer,
instance_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ DefaultOutboundQueueId }}' /* required */,
'{{ QueueConfigs }}',
'{{ ManualAssignmentQueueConfigs }}',
'{{ MediaConcurrencies }}' /* required */,
'{{ Tags }}',
'{{ AgentAvailabilityTimer }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
routing_profile_arn,
routing_profile_id
;

UPDATE examples

Whether agents with this routing profile will have their routing order calculated based on time since their last inbound contact or longest idle time.

UPDATE aws.connect.routing_profiles
SET
AgentAvailabilityTimer = '{{ AgentAvailabilityTimer }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND routing_profile_id = '{{ routing_profile_id }}' --required
AND region = '{{ region }}' --required
AND AgentAvailabilityTimer = '{{ AgentAvailabilityTimer }}' --required;

DELETE examples

Deletes a routing profile.

DELETE FROM aws.connect.routing_profiles
WHERE instance_id = '{{ instance_id }}' --required
AND routing_profile_id = '{{ routing_profile_id }}' --required
AND region = '{{ region }}' --required
;