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 (
StatusisACTIVE), 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
ACTIVEstatus results inResourceNotFoundException. Use the DescribeTrafficDistributionGroup API to determine whether it has been created successfully (Statusmust 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-idUUID--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-idyour 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/UserIdHTTP/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-idis not a user from the source Amazon Connect instance.UUID