Associate agents to Amazon Connect instances across multiple AWS Regions
To allow your agents to sign-in to both AWS Regions and process contacts from either Region, you must first assign them to a traffic distribution group.
-
If you have not yet set up a traffic distribution group, do so now. For instructions, see Create traffic distribution groups for your Amazon Connect instance.
-
After your traffic distribution group is created successfully (
Status
isACTIVE
), you can assign agents to it. Always associate users to a traffic distribution group in the source Region.Assigning an agent to a traffic distribution group without an
ACTIVE
status results inResourceNotFoundException
. Use the DescribeTrafficDistributionGroup API to determine whether it has been created successfully (Status
must beACTIVE
). -
You can assign an agent to a traffic distribution group by calling the AssociateTrafficDistributionGroupUser API.
Examples
The following associate-traffic-distribution-group-user
example command shows how agents can be associated to and used across
multiple AWS Regions.
aws connect associate-traffic-distribution-group-user --traffic-distribution-group-id
UUID
--user-idUUID
--instance-id
The following AssociateTrafficDistributionGroupUser example associates an agent with a traffic distribution group.
PUT /traffic-distribution-group/
trafficDistributionGroupId
/user HTTP/1.1 Content-type: application/json { "UserId": "string
" }
The following disassociate-traffic-distribution-group-user
example command disassociates an agent from a traffic distribution group.
aws connect disassociate-traffic-distribution-group-user --instance-id
your instance ID
--traffic-distribution-group-idUUID
--user-idUUID
The following DisassociateTrafficDistributionGroupUser example disassociates an agent from a traffic distribution group.
DELETE /traffic-distribution-group/
trafficDistributionGroupId
/user/UserId
HTTP/1.1
Why an AssociateTrafficDistributionGroupUser call fails
An AssociateTrafficDistributionGroupUser API call fails with an
ResourceNotFoundException
in the following cases:
-
The specified traffic distribution group does not exist.
-
The status of the traffic distribution group is not
ACTIVE
. -
The
user-id
is not a user from the source Amazon Connect instance.UUID