get_campaign_state_batch
(**kwargs)¶Get state of campaigns for the specified Amazon Connect account.
See also: AWS API Documentation
Request Syntax
response = client.get_campaign_state_batch(
campaignIds=[
'string',
]
)
[REQUIRED]
List of CampaignId
Identifier representing a Campaign
{
'failedRequests': [
{
'campaignId': 'string',
'failureCode': 'ResourceNotFound'|'UnknownError'
},
],
'successfulRequests': [
{
'campaignId': 'string',
'state': 'Initialized'|'Running'|'Paused'|'Stopped'|'Failed'
},
]
}
Response Structure
GetCampaignStateBatchResponse
List of failed requests of campaign state
Failed response of campaign state
Identifier representing a Campaign
A predefined code indicating the error that caused the failure in getting state of campaigns
List of successful response of campaign state
Successful response of campaign state
Identifier representing a Campaign
State of a campaign
Exceptions
ConnectCampaignService.Client.exceptions.InternalServerException
ConnectCampaignService.Client.exceptions.ValidationException
ConnectCampaignService.Client.exceptions.AccessDeniedException
ConnectCampaignService.Client.exceptions.ThrottlingException