2022/10/19 - Amazon Connect Service - 7 new api methods
Changes This release adds API support for managing phone numbers that can be used across multiple AWS regions through telephony traffic distribution.
Creates a traffic distribution group given an Amazon Connect instance that has been replicated.
For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect Administrator Guide.
See also: AWS API Documentation
Request Syntax
client.create_traffic_distribution_group( Name='string', Description='string', InstanceId='string', ClientToken='string', Tags={ 'string': 'string' } )
string
[REQUIRED]
The name for the traffic distribution group.
string
A description for the traffic distribution group.
string
[REQUIRED]
The identifier of the Amazon Connect instance that has been replicated. You can find the instanceId in the ARN of the instance.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
dict
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
dict
Response Syntax
{ 'Id': 'string', 'Arn': 'string' }
Response Structure
(dict) --
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.
Replicates an Amazon Connect instance in the specified Amazon Web Services Region.
For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the Amazon Connect Administrator Guide.
See also: AWS API Documentation
Request Syntax
client.replicate_instance( InstanceId='string', ReplicaRegion='string', ClientToken='string', ReplicaAlias='string' )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
string
[REQUIRED]
The Amazon Web Services Region where to replicate the Amazon Connect instance.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
This field is autopopulated if not provided.
string
[REQUIRED]
The alias for the replicated instance. The ReplicaAlias must be unique.
dict
Response Syntax
{ 'Id': 'string', 'Arn': 'string' }
Response Structure
(dict) --
Id (string) --
The identifier of the replicated instance. You can find the instanceId in the ARN of the instance. The replicated instance has the same identifier as the instance it was replicated from.
Arn (string) --
The Amazon Resource Name (ARN) of the replicated instance.
Lists traffic distribution groups.
See also: AWS API Documentation
Request Syntax
client.list_traffic_distribution_groups( MaxResults=123, NextToken='string', InstanceId='string' )
integer
The maximum number of results to return per page.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
string
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
dict
Response Syntax
{ 'NextToken': 'string', 'TrafficDistributionGroupSummaryList': [ { 'Id': 'string', 'Arn': 'string', 'Name': 'string', 'InstanceArn': 'string', 'Status': 'CREATION_IN_PROGRESS'|'ACTIVE'|'CREATION_FAILED'|'PENDING_DELETION'|'DELETION_FAILED'|'UPDATE_IN_PROGRESS' }, ] }
Response Structure
(dict) --
NextToken (string) --
If there are additional results, this is the token for the next set of results.
TrafficDistributionGroupSummaryList (list) --
A list of traffic distribution groups.
(dict) --
Information about traffic distribution groups.
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.
Name (string) --
The name of the traffic distribution group.
InstanceArn (string) --
The Amazon Resource Name (ARN) of the traffic distribution group.
Status (string) --
The status of the traffic distribution group.
CREATION_IN_PROGRESS means the previous CreateTrafficDistributionGroup operation is still in progress and has not yet completed.
ACTIVE means the previous CreateTrafficDistributionGroup operation has succeeded.
CREATION_FAILED indicates that the previous CreateTrafficDistributionGroup operation has failed.
PENDING_DELETION means the previous DeleteTrafficDistributionGroup operation is still in progress and has not yet completed.
DELETION_FAILED means the previous DeleteTrafficDistributionGroup operation has failed.
UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and has not yet completed.
Gets details and status of a traffic distribution group.
See also: AWS API Documentation
Request Syntax
client.describe_traffic_distribution_group( TrafficDistributionGroupId='string' )
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.
dict
Response Syntax
{ 'TrafficDistributionGroup': { 'Id': 'string', 'Arn': 'string', 'Name': 'string', 'Description': 'string', 'InstanceArn': 'string', 'Status': 'CREATION_IN_PROGRESS'|'ACTIVE'|'CREATION_FAILED'|'PENDING_DELETION'|'DELETION_FAILED'|'UPDATE_IN_PROGRESS', 'Tags': { 'string': 'string' } } }
Response Structure
(dict) --
TrafficDistributionGroup (dict) --
Information about the traffic distribution group.
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.
Name (string) --
The name of the traffic distribution group.
Description (string) --
The description of the traffic distribution group.
InstanceArn (string) --
The Amazon Resource Name (ARN).
Status (string) --
The status of the traffic distribution group.
CREATION_IN_PROGRESS means the previous CreateTrafficDistributionGroup operation is still in progress and has not yet completed.
ACTIVE means the previous CreateTrafficDistributionGroup operation has succeeded.
CREATION_FAILED indicates that the previous CreateTrafficDistributionGroup operation has failed.
PENDING_DELETION means the previous DeleteTrafficDistributionGroup operation is still in progress and has not yet completed.
DELETION_FAILED means the previous DeleteTrafficDistributionGroup operation has failed.
UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and has not yet completed.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
(string) --
(string) --
Retrieves the current traffic distribution for a given traffic distribution group.
See also: AWS API Documentation
Request Syntax
client.get_traffic_distribution( Id='string' )
string
[REQUIRED]
The identifier of the traffic distribution group.
dict
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.
Deletes a traffic distribution group. This API can be called only in the Region where the traffic distribution group is created.
For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect Administrator Guide.
See also: AWS API Documentation
Request Syntax
client.delete_traffic_distribution_group( TrafficDistributionGroupId='string' )
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.
dict
Response Syntax
{}
Response Structure
(dict) --
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 in the Amazon Connect Administrator Guide.
See also: AWS API Documentation
Request Syntax
client.update_traffic_distribution( Id='string', TelephonyConfig={ 'Distributions': [ { 'Region': 'string', 'Percentage': 123 }, ] } )
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.
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.
dict
Response Syntax
{}
Response Structure
(dict) --