Skip to main content

traffic_distribution_groups

Creates, updates, deletes or gets a traffic_distribution_group resource or lists traffic_distribution_groups in a region

Overview

Nametraffic_distribution_groups
TypeResource
DescriptionResource Type definition for AWS::Connect::TrafficDistributionGroup
Idaws.connect.traffic_distribution_groups

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance that has been replicated.
traffic_distribution_group_arnstringThe identifier of the traffic distribution group.
descriptionstringA description for the traffic distribution group.
namestringThe name for the traffic distribution group.
statusstringThe status of the traffic distribution group.
tagsarrayOne or more tags.
is_defaultbooleanIf this is the default traffic distribution group.
regionstringAWS region.

Methods

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

SELECT examples

Gets all traffic_distribution_groups in a region.

SELECT
region,
instance_arn,
traffic_distribution_group_arn,
description,
name,
status,
tags,
is_default
FROM aws.connect.traffic_distribution_groups
WHERE region = 'us-east-1';

Gets all properties from an individual traffic_distribution_group.

SELECT
region,
instance_arn,
traffic_distribution_group_arn,
description,
name,
status,
tags,
is_default
FROM aws.connect.traffic_distribution_groups
WHERE region = 'us-east-1' AND data__Identifier = '<TrafficDistributionGroupArn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

connect:CreateTrafficDistributionGroup,
connect:DescribeTrafficDistributionGroup,
connect:TagResource

Read

connect:DescribeTrafficDistributionGroup

Update

connect:TagResource,
connect:UntagResource

Delete

connect:DeleteTrafficDistributionGroup,
connect:DescribeTrafficDistributionGroup,
connect:UntagResource

List

connect:ListTrafficDistributionGroups