Skip to main content

campaigns

Creates, updates, deletes, gets or lists a campaigns resource.

Overview

Namecampaigns
TypeResource
Idaws.connectcampaignsv2.campaigns

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIdentifier representing a Campaign (pattern: <code>[-:/a-zA-Z0-9]+</code>)
namestringThe name of an Amazon Connect Campaign name.
arnstringThe resource name of an Amazon Connect campaign.
channel_subtype_configobjectCampaign Channel Subtype config
communication_limits_overrideobjectCommunication limits config
communication_time_configobjectCampaign communication time config
connect_campaign_flow_arnstringAmazon Resource Names(ARN) (pattern: <code>arn:[a-zA-Z0-9-]+:[a-zA-Z0-9-]+:[a-z]{2}-[a-z]+-\d{1,2}:[a-zA-Z0-9-]+:[^:]+(?:/[^:]+)*(?:/[^:]+)?(?::[^:]+)?</code>)
connect_instance_idstringAmazon Connect Instance Id (pattern: <code>[-_.a-zA-Z0-9]+</code>)
entry_limits_configobjectCampaign entry limits config
scheduleobjectCampaign schedule
sourceobjectSource of the campaign
tagsobject
type_stringThe type of campaign externally exposed in APIs. (MANAGED, JOURNEY)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_campaignselectid, regionDescribes the specific campaign.
list_campaignsselectregionProvides summary information about the campaigns under the specified Amazon Connect account.
create_campaigninsertregion, name, connectInstanceIdCreates a campaign for the specified Amazon Connect account. This API is idempotent.
update_campaign_channel_subtype_configupdateid, region, channelSubtypeConfigUpdates the channel subtype config of a campaign. This API is idempotent.
update_campaign_communication_limitsupdateid, region, communicationLimitsOverrideUpdates the communication limits config for a campaign. This API is idempotent.
update_campaign_communication_timeupdateid, region, communicationTimeConfigUpdates the communication time config for a campaign. This API is idempotent.
update_campaign_entry_limitsupdateid, region, entryLimitsConfigUpdates the entry limits config for a campaign. This API is idempotent.
update_campaign_flow_associationupdateid, region, connectCampaignFlowArnUpdates the campaign flow associated with a campaign. This API is idempotent.
update_campaign_nameupdateid, region, nameUpdates the name of a campaign. This API is idempotent.
update_campaign_scheduleupdateid, region, scheduleUpdates the schedule for a campaign. This API is idempotent.
update_campaign_sourceupdateid, region, sourceUpdates the campaign source with a campaign. This API is idempotent.
delete_campaign_channel_subtype_configdeleteid, channelSubtype, regionDeletes the channel subtype config of a campaign. This API is idempotent.
delete_campaign_communication_limitsdeleteid, config, regionDeletes the communication limits config for a campaign. This API is idempotent.
delete_campaigndeleteid, regionDeletes a campaign from the specified Amazon Connect account.
delete_campaign_communication_timeexecid, config, regionDeletes the communication time config for a campaign. This API is idempotent.
delete_campaign_entry_limitsexecid, regionDeletes the entry limits config for a campaign. This API is idempotent.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
channelSubtypestring
configstring
idstring
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specific campaign.

SELECT
id,
name,
arn,
channel_subtype_config,
communication_limits_override,
communication_time_config,
connect_campaign_flow_arn,
connect_instance_id,
entry_limits_config,
schedule,
source,
tags,
type_
FROM aws.connectcampaignsv2.campaigns
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a campaign for the specified Amazon Connect account. This API is idempotent.

INSERT INTO aws.connectcampaignsv2.campaigns (
name,
connectInstanceId,
channelSubtypeConfig,
type,
source,
connectCampaignFlowArn,
schedule,
entryLimitsConfig,
communicationTimeConfig,
communicationLimitsOverride,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ connectInstanceId }}' /* required */,
'{{ channelSubtypeConfig }}',
'{{ type }}',
'{{ source }}',
'{{ connectCampaignFlowArn }}',
'{{ schedule }}',
'{{ entryLimitsConfig }}',
'{{ communicationTimeConfig }}',
'{{ communicationLimitsOverride }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
arn,
tags
;

UPDATE examples

Updates the channel subtype config of a campaign. This API is idempotent.

UPDATE aws.connectcampaignsv2.campaigns
SET
channelSubtypeConfig = '{{ channelSubtypeConfig }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND channelSubtypeConfig = '{{ channelSubtypeConfig }}' --required;

DELETE examples

Deletes the channel subtype config of a campaign. This API is idempotent.

DELETE FROM aws.connectcampaignsv2.campaigns
WHERE id = '{{ id }}' --required
AND channelSubtype = '{{ channelSubtype }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Deletes the communication time config for a campaign. This API is idempotent.

EXEC aws.connectcampaignsv2.campaigns.delete_campaign_communication_time
@id='{{ id }}' --required,
@config='{{ config }}' --required,
@region='{{ region }}' --required
;