update_traffic_distribution
¶
update_traffic_distribution(
id: TrafficDistributionGroupIdOrArn,
*,
config_overrides: Optional[ConnectClientConfig] = None,
telephony_config: Optional[TelephonyConfig] = None,
sign_in_config: Optional[SignInConfig] = None,
agent_config: Optional[AgentConfig] = None,
) -> UpdateTrafficDistributionResponse
Updates the traffic distribution for a given traffic distribution group.
When you shift telephony traffic, also shift agents and/or agent sign-ins to ensure they can handle the calls in the other Region. If you don't shift the agents, voice calls will go to the shifted Region but there won't be any agents available to receive the calls.
The SignInConfig distribution is available only on a default TrafficDistributionGroup (see the IsDefault parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution with a modified SignInConfig and a non-default TrafficDistributionGroup, an InvalidRequestException is returned.
For more information about updating a traffic distribution group, see Update telephony traffic distribution across Amazon Web Services Regions in the Connect Customer Administrator Guide.
Important things to know
-
Invoke the UpdateTrafficDistribution API in the region that should handle traffic.
Parameters:
-
id(TrafficDistributionGroupIdOrArn) –The identifier of the traffic distribution group. This can be the ID or the ARN if the API is being called in the Region where the traffic distribution group was created. The ARN must be provided if the call is from the replicated Region.
-
telephony_config(Optional[TelephonyConfig], default:None) –The distribution of traffic between the instance and its replica(s).
-
sign_in_config(Optional[SignInConfig], default:None) –The distribution that determines which Amazon Web Services Regions should be used to sign in agents in to both the instance and its replica(s).
-
agent_config(Optional[AgentConfig], default:None) –The distribution of agents between the instance and its replica(s).
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
ResourceConflictException–A resource already has that name.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 | |