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
28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 | |