2021/09/27 - Amazon Connect Service - 5 updated api methods
Changes This release updates a set of APIs: CreateIntegrationAssociation, ListIntegrationAssociations, CreateUseCase, and StartOutboundVoiceContact. You can use it to create integrations with Amazon Pinpoint for the Amazon Connect Campaigns use case, Amazon Connect Voice ID, and Amazon Connect Wisdom.
{'IntegrationType': {'PINPOINT_APP', 'VOICE_ID', 'WISDOM_ASSISTANT', 'WISDOM_KNOWLEDGE_BASE'}}
Creates an AWS resource association with an Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
client.create_integration_association( InstanceId='string', IntegrationType='EVENT'|'VOICE_ID'|'PINPOINT_APP'|'WISDOM_ASSISTANT'|'WISDOM_KNOWLEDGE_BASE', IntegrationArn='string', SourceApplicationUrl='string', SourceApplicationName='string', SourceType='SALESFORCE'|'ZENDESK', Tags={ 'string': 'string' } )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
string
[REQUIRED]
The type of information to be ingested.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the integration.
string
The URL for the external application. This field is only required for the EVENT integration type.
string
The name of the external application. This field is only required for the EVENT integration type.
string
The type of the data source. This field is only required for the EVENT integration type.
dict
One or more tags.
(string) --
(string) --
dict
Response Syntax
{ 'IntegrationAssociationId': 'string', 'IntegrationAssociationArn': 'string' }
Response Structure
(dict) --
IntegrationAssociationId (string) --
The identifier for the integration association.
IntegrationAssociationArn (string) --
The Amazon Resource Name (ARN) for the association.
{'UseCaseType': {'CONNECT_CAMPAIGNS'}}
Creates a use case for an integration association.
See also: AWS API Documentation
Request Syntax
client.create_use_case( InstanceId='string', IntegrationAssociationId='string', UseCaseType='RULES_EVALUATION'|'CONNECT_CAMPAIGNS', Tags={ 'string': 'string' } )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
string
[REQUIRED]
The identifier for the integration association.
string
[REQUIRED]
The type of use case to associate to the integration association. Each integration association can have only one of each use case type.
dict
One or more tags.
(string) --
(string) --
dict
Response Syntax
{ 'UseCaseId': 'string', 'UseCaseArn': 'string' }
Response Structure
(dict) --
UseCaseId (string) --
The identifier of the use case.
UseCaseArn (string) --
The Amazon Resource Name (ARN) for the use case.
{'IntegrationType': 'EVENT | VOICE_ID | PINPOINT_APP | WISDOM_ASSISTANT | ' 'WISDOM_KNOWLEDGE_BASE'}Response
{'IntegrationAssociationSummaryList': {'IntegrationType': {'PINPOINT_APP', 'VOICE_ID', 'WISDOM_ASSISTANT', 'WISDOM_KNOWLEDGE_BASE'}}}
Provides summary information about the AWS resource associations for the specified Amazon Connect instance.
See also: AWS API Documentation
Request Syntax
client.list_integration_associations( InstanceId='string', IntegrationType='EVENT'|'VOICE_ID'|'PINPOINT_APP'|'WISDOM_ASSISTANT'|'WISDOM_KNOWLEDGE_BASE', NextToken='string', MaxResults=123 )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
string
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.
integer
The maximum number of results to return per page.
dict
Response Syntax
{ 'IntegrationAssociationSummaryList': [ { 'IntegrationAssociationId': 'string', 'IntegrationAssociationArn': 'string', 'InstanceId': 'string', 'IntegrationType': 'EVENT'|'VOICE_ID'|'PINPOINT_APP'|'WISDOM_ASSISTANT'|'WISDOM_KNOWLEDGE_BASE', 'IntegrationArn': 'string', 'SourceApplicationUrl': 'string', 'SourceApplicationName': 'string', 'SourceType': 'SALESFORCE'|'ZENDESK' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
IntegrationAssociationSummaryList (list) --
The associations.
(dict) --
Contains summary information about the associated AppIntegrations.
IntegrationAssociationId (string) --
The identifier for the AppIntegration association.
IntegrationAssociationArn (string) --
The Amazon Resource Name (ARN) for the AppIntegration association.
InstanceId (string) --
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
IntegrationType (string) --
The integration type.
IntegrationArn (string) --
The Amazon Resource Name (ARN) for the AppIntegration.
SourceApplicationUrl (string) --
The URL for the external application.
SourceApplicationName (string) --
The user-provided, friendly name for the external application.
SourceType (string) --
The name of the source.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
{'UseCaseSummaryList': {'UseCaseType': {'CONNECT_CAMPAIGNS'}}}
Lists the use cases for the integration association.
See also: AWS API Documentation
Request Syntax
client.list_use_cases( InstanceId='string', IntegrationAssociationId='string', NextToken='string', MaxResults=123 )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
string
[REQUIRED]
The identifier for the integration association.
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.
integer
The maximum number of results to return per page.
dict
Response Syntax
{ 'UseCaseSummaryList': [ { 'UseCaseId': 'string', 'UseCaseArn': 'string', 'UseCaseType': 'RULES_EVALUATION'|'CONNECT_CAMPAIGNS' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
UseCaseSummaryList (list) --
The use cases.
(dict) --
Contains the use case.
UseCaseId (string) --
The identifier for the use case.
UseCaseArn (string) --
The Amazon Resource Name (ARN) for the use case.
UseCaseType (string) --
The type of use case to associate to the integration association. Each integration association can have only one of each use case type.
NextToken (string) --
If there are additional results, this is the token for the next set of results.
{'AnswerMachineDetectionConfig': {'AwaitAnswerMachinePrompt': 'boolean', 'EnableAnswerMachineDetection': 'boolean'}, 'CampaignId': 'string', 'TrafficType': 'GENERAL | CAMPAIGN'}
Places an outbound call to a contact, and then initiates the contact flow. It performs the actions in the contact flow that's specified (in ContactFlowId).
Agents do not initiate the outbound API, which means that they do not dial the contact. If the contact flow places an outbound call to a contact, and then puts the contact in queue, the call is then routed to the agent, like any other inbound case.
There is a 60-second dialing timeout for this operation. If the call is not connected after 60 seconds, it fails.
See also: AWS API Documentation
Request Syntax
client.start_outbound_voice_contact( DestinationPhoneNumber='string', ContactFlowId='string', InstanceId='string', ClientToken='string', SourcePhoneNumber='string', QueueId='string', Attributes={ 'string': 'string' }, AnswerMachineDetectionConfig={ 'EnableAnswerMachineDetection': True|False, 'AwaitAnswerMachinePrompt': True|False }, CampaignId='string', TrafficType='GENERAL'|'CAMPAIGN' )
string
[REQUIRED]
The phone number of the customer, in E.164 format.
string
[REQUIRED]
The identifier of the contact flow for the outbound call. To see the ContactFlowId in the Amazon Connect console user interface, on the navigation menu go to Routing, Contact Flows. Choose the contact flow. On the contact flow page, under the name of the contact flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:
arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx
string
[REQUIRED]
The identifier of the Amazon Connect instance. 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. The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned.
This field is autopopulated if not provided.
string
The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.
string
The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the contact flow is used. If you do not specify a queue, you must specify a source phone number.
dict
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
(string) --
(string) --
dict
Configuration of the answering machine detection for this outbound call.
EnableAnswerMachineDetection (boolean) --
The flag to indicate if answer machine detection analysis needs to be performed for a voice call. If set to true, TrafficType must be set as CAMPAIGN.
AwaitAnswerMachinePrompt (boolean) --
Wait for the answering machine prompt.
string
The campaign identifier of the outbound communication.
string
Denotes the class of traffic. Calls with different traffic types are handled differently by Amazon Connect. The default value is GENERAL. Use CAMPAIGN if EnableAnswerMachineDetection is set to true. For all other cases, use GENERAL.
dict
Response Syntax
{ 'ContactId': 'string' }
Response Structure
(dict) --
ContactId (string) --
The identifier of this contact within the Amazon Connect instance.