Skip to main content

traffic_distribution_group_users

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

Overview

Nametraffic_distribution_group_users
TypeResource
Idaws.connect.traffic_distribution_group_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
user_idstringThe identifier for the user. This can be the ID or the ARN of the user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_traffic_distribution_group_usersselecttraffic_distribution_group_id, regionmaxResults, nextTokenLists traffic distribution group users.
associate_traffic_distribution_group_userupdatetraffic_distribution_group_id, region, UserId, InstanceIdAssociates an agent with a traffic distribution group. This API can be called only in the Region where the traffic distribution group is created.
disassociate_traffic_distribution_group_userexectraffic_distribution_group_id, UserId, InstanceId, regionDisassociates an agent from a traffic distribution group. This API can be called only in the Region where the traffic distribution group is created.

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
InstanceIdstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
UserIdstringThe identifier for the user. This can be the ID or the ARN of the user.
regionstringAWS region (default: us-east-1)
traffic_distribution_group_idstringThe identifier of the traffic distribution group. This can be the ID or the ARN of the traffic distribution group.
maxResultsintegerThe maximum number of results to return per page.
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

Lists traffic distribution group users.

SELECT
user_id
FROM aws.connect.traffic_distribution_group_users
WHERE traffic_distribution_group_id = '{{ traffic_distribution_group_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Associates an agent with a traffic distribution group. This API can be called only in the Region where the traffic distribution group is created.

UPDATE aws.connect.traffic_distribution_group_users
SET
UserId = '{{ UserId }}',
InstanceId = '{{ InstanceId }}'
WHERE
traffic_distribution_group_id = '{{ traffic_distribution_group_id }}' --required
AND region = '{{ region }}' --required
AND UserId = '{{ UserId }}' --required
AND InstanceId = '{{ InstanceId }}' --required;

Lifecycle Methods

Disassociates an agent from a traffic distribution group. This API can be called only in the Region where the traffic distribution group is created.

EXEC aws.connect.traffic_distribution_group_users.disassociate_traffic_distribution_group_user
@traffic_distribution_group_id='{{ traffic_distribution_group_id }}' --required,
@UserId='{{ UserId }}' --required,
@InstanceId='{{ InstanceId }}' --required,
@region='{{ region }}' --required
;