Connect / Client / update_traffic_distribution

update_traffic_distribution#

Connect.Client.update_traffic_distribution(**kwargs)#

Updates the traffic distribution for a given traffic distribution group.

For more information about updating a traffic distribution group, see `Update telephony traffic distribution across Amazon Web Services Regions <https://docs.aws.amazon.com/connect/latest/adminguide/update-telephony-traffic-distribution.html>`__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
            },
        ]
    }
)
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.

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