Connect / Client / update_traffic_distribution
update_traffic_distribution#
- Connect.Client.update_traffic_distribution(**kwargs)#
Updates the traffic distribution for a given traffic distribution group.
Note
The
SignInConfig
distribution is available only on a defaultTrafficDistributionGroup
(see theIsDefault
parameter in the TrafficDistributionGroup data type). If you callUpdateTrafficDistribution
with a modifiedSignInConfig
and a non-defaultTrafficDistributionGroup
, anInvalidRequestException
is returned.For more information about updating a traffic distribution group, see Update telephony traffic distribution across Amazon Web Services Regions in the Amazon Connect Administrator Guide.
See also: AWS API Documentation
Request Syntax
response = client.update_traffic_distribution( Id='string', TelephonyConfig={ 'Distributions': [ { 'Region': 'string', 'Percentage': 123 }, ] }, SignInConfig={ 'Distributions': [ { 'Region': 'string', 'Enabled': True|False }, ] }, AgentConfig={ 'Distributions': [ { 'Region': 'string', 'Percentage': 123 }, ] } )
- Parameters:
Id (string) –
[REQUIRED]
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.
TelephonyConfig (dict) –
The distribution of traffic between the instance and its replica(s).
Distributions (list) – [REQUIRED]
Information about traffic distributions.
(dict) –
Information about a traffic distribution.
Region (string) – [REQUIRED]
The Amazon Web Services Region where the traffic is distributed.
Percentage (integer) – [REQUIRED]
The percentage of the traffic that is distributed, in increments of 10.
SignInConfig (dict) –
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).
Distributions (list) – [REQUIRED]
Information about traffic distributions.
(dict) –
The distribution of sign in traffic between the instance and its replica(s).
Region (string) – [REQUIRED]
The Amazon Web Services Region of the sign in distribution.
Enabled (boolean) – [REQUIRED]
Whether sign in distribution is enabled.
AgentConfig (dict) –
The distribution of agents between the instance and its replica(s).
Distributions (list) – [REQUIRED]
Information about traffic distributions.
(dict) –
Information about a traffic distribution.
Region (string) – [REQUIRED]
The Amazon Web Services Region where the traffic is distributed.
Percentage (integer) – [REQUIRED]
The percentage of the traffic that is distributed, in increments of 10.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Connect.Client.exceptions.InvalidRequestException
Connect.Client.exceptions.AccessDeniedException
Connect.Client.exceptions.ResourceNotFoundException
Connect.Client.exceptions.ResourceConflictException
Connect.Client.exceptions.ThrottlingException
Connect.Client.exceptions.InternalServiceException