routing_profiles
Creates, updates, deletes or gets a routing_profile
resource or lists routing_profiles
in a region
Overview
Name | routing_profiles |
Type | Resource |
Description | Resource Type definition for AWS::Connect::RoutingProfile |
Id | aws.connect.routing_profiles |
Fields
Name | Datatype | Description |
---|---|---|
instance_arn | string | The identifier of the Amazon Connect instance. |
name | string | The name of the routing profile. |
description | string | The description of the routing profile. |
media_concurrencies | array | The channels agents can handle in the Contact Control Panel (CCP) for this routing profile. |
default_outbound_queue_arn | string | The identifier of the default outbound queue for this routing profile. |
routing_profile_arn | string | The Amazon Resource Name (ARN) of the routing profile. |
queue_configs | array | The queues to associate with this routing profile. |
tags | array | An array of key-value pairs to apply to this resource. |
agent_availability_timer | string | Whether agents with this routing profile will have their routing order calculated based on longest idle time or time since their last inbound contact. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | InstanceArn, Name, Description, MediaConcurrencies, DefaultOutboundQueueArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.connect.routing_profiles (
InstanceArn,
Name,
Description,
MediaConcurrencies,
DefaultOutboundQueueArn,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ Description }}',
'{{ MediaConcurrencies }}',
'{{ DefaultOutboundQueueArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.connect.routing_profiles (
InstanceArn,
Name,
Description,
MediaConcurrencies,
DefaultOutboundQueueArn,
QueueConfigs,
Tags,
AgentAvailabilityTimer,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ Description }}',
'{{ MediaConcurrencies }}',
'{{ DefaultOutboundQueueArn }}',
'{{ QueueConfigs }}',
'{{ Tags }}',
'{{ AgentAvailabilityTimer }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: routing_profile
props:
- name: InstanceArn
value: '{{ InstanceArn }}'
- name: Name
value: '{{ Name }}'
- name: Description
value: '{{ Description }}'
- name: MediaConcurrencies
value:
- Channel: '{{ Channel }}'
Concurrency: '{{ Concurrency }}'
CrossChannelBehavior:
BehaviorType: '{{ BehaviorType }}'
- name: DefaultOutboundQueueArn
value: '{{ DefaultOutboundQueueArn }}'
- name: QueueConfigs
value:
- Delay: '{{ Delay }}'
Priority: '{{ Priority }}'
QueueReference:
Channel: null
QueueArn: '{{ QueueArn }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: AgentAvailabilityTimer
value: '{{ AgentAvailabilityTimer }}'
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