Connect / Client / get_traffic_distribution
get_traffic_distribution#
- Connect.Client.get_traffic_distribution(**kwargs)#
Retrieves the current traffic distribution for a given traffic distribution group.
See also: AWS API Documentation
Request Syntax
response = client.get_traffic_distribution( Id='string' )
- Parameters:
Id (string) –
[REQUIRED]
The identifier of the traffic distribution group.
- Return type:
dict
- Returns:
Response Syntax
{ 'TelephonyConfig': { 'Distributions': [ { 'Region': 'string', 'Percentage': 123 }, ] }, 'Id': 'string', 'Arn': 'string' }
Response Structure
(dict) –
TelephonyConfig (dict) –
The distribution of traffic between the instance and its replicas.
Distributions (list) –
Information about traffic distributions.
(dict) –
Information about a traffic distribution.
Region (string) –
The Amazon Web Services Region where the traffic is distributed.
Percentage (integer) –
The percentage of the traffic that is distributed, in increments of 10.
Id (string) –
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.
Arn (string) –
The Amazon Resource Name (ARN) of the traffic distribution group.
Exceptions
Connect.Client.exceptions.InvalidRequestException
Connect.Client.exceptions.AccessDeniedException
Connect.Client.exceptions.ResourceNotFoundException
Connect.Client.exceptions.InternalServiceException
Connect.Client.exceptions.ThrottlingException