ConnectCampaignService.Client.
create_campaign
(**kwargs)¶Creates a campaign for the specified Amazon Connect account. This API is idempotent.
See also: AWS API Documentation
Request Syntax
response = client.create_campaign(
connectInstanceId='string',
dialerConfig={
'predictiveDialerConfig': {
'bandwidthAllocation': 123.0
},
'progressiveDialerConfig': {
'bandwidthAllocation': 123.0
}
},
name='string',
outboundCallConfig={
'answerMachineDetectionConfig': {
'enableAnswerMachineDetection': True|False
},
'connectContactFlowId': 'string',
'connectQueueId': 'string',
'connectSourcePhoneNumber': 'string'
},
tags={
'string': 'string'
}
)
[REQUIRED]
Amazon Connect Instance Id
[REQUIRED]
The possible types of dialer config parameters
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: predictiveDialerConfig
, progressiveDialerConfig
.
Predictive Dialer config
The bandwidth allocation of a queue resource.
Progressive Dialer config
The bandwidth allocation of a queue resource.
[REQUIRED]
The name of an Amazon Connect Campaign name.
[REQUIRED]
The configuration used for outbound calls.
Answering Machine Detection config
Enable or disable answering machine detection
The identifier of the contact flow for the outbound call.
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.
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.
Tag map with key and value.
Tag key.
Tag value.
dict
Response Syntax
{
'arn': 'string',
'id': 'string',
'tags': {
'string': 'string'
}
}
Response Structure
(dict) --
The response for Create Campaign API
arn (string) --
The resource name of an Amazon Connect campaign.
id (string) --
Identifier representing a Campaign
tags (dict) --
Tag map with key and value.
(string) --
Tag key.
(string) --
Tag value.
Exceptions
ConnectCampaignService.Client.exceptions.InternalServerException
ConnectCampaignService.Client.exceptions.ResourceNotFoundException
ConnectCampaignService.Client.exceptions.ValidationException
ConnectCampaignService.Client.exceptions.ConflictException
ConnectCampaignService.Client.exceptions.AccessDeniedException
ConnectCampaignService.Client.exceptions.ServiceQuotaExceededException
ConnectCampaignService.Client.exceptions.ThrottlingException