update_traffic_distribution
async
¶
update_traffic_distribution(
id: TrafficDistributionGroupIdOrArn,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 | |