Skip to main content

campaigns

Creates, updates, deletes or gets a campaign resource or lists campaigns in a region

Overview

Namecampaigns
TypeResource
DescriptionDefinition of AWS::ConnectCampaignsV2::Campaign Resource Type
Idaws.connectcampaignsv2.campaigns

Fields

NameDatatypeDescription
arnstringAmazon Connect Campaign Arn
namestringCampaign name
connect_instance_idstringAmazon Connect Instance Id
channel_subtype_configobjectThe possible types of channel subtype config parameters
sourceobjectThe possible source of the campaign
connect_campaign_flow_arnstringArn
scheduleobjectCampaign schedule
communication_time_configobjectCampaign communication time config
communication_limits_overrideobjectCommunication limits config
tagsarrayOne or more tags.
regionstringAWS region.

For more information, see AWS::ConnectCampaignsV2::Campaign.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, ConnectInstanceId, ChannelSubtypeConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all campaigns in a region.

SELECT
region,
arn,
name,
connect_instance_id,
channel_subtype_config,
source,
connect_campaign_flow_arn,
schedule,
communication_time_config,
communication_limits_override,
tags
FROM aws.connectcampaignsv2.campaigns
WHERE region = 'us-east-1';

Gets all properties from an individual campaign.

SELECT
region,
arn,
name,
connect_instance_id,
channel_subtype_config,
source,
connect_campaign_flow_arn,
schedule,
communication_time_config,
communication_limits_override,
tags
FROM aws.connectcampaignsv2.campaigns
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new campaign resource, using stack-deploy.

/*+ create */
INSERT INTO aws.connectcampaignsv2.campaigns (
Name,
ConnectInstanceId,
ChannelSubtypeConfig,
region
)
SELECT
'{{ Name }}',
'{{ ConnectInstanceId }}',
'{{ ChannelSubtypeConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connectcampaignsv2.campaigns
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the campaigns resource, the following permissions are required:

Create

connect-campaigns:CreateCampaign,
connect-campaigns:DescribeCampaign,
connect-campaigns:TagResource,
connect:DescribeContactFlow,
connect:DescribeEmailAddress,
connect:DescribeInstance,
connect:DescribePhoneNumber,
connect:DescribeQueue,
profile:GetSegmentDefinition,
wisdom:GetMessageTemplate

Read

connect-campaigns:DescribeCampaign

Delete

connect-campaigns:DeleteCampaign,
connect-campaigns:DeleteCampaignChannelSubtypeConfig,
connect-campaigns:DeleteCampaignCommunicationLimits,
connect-campaigns:DeleteCampaignCommunicationTime

List

connect-campaigns:ListCampaigns

Update

connect-campaigns:DeleteCampaignChannelSubtypeConfig,
connect-campaigns:DeleteCampaignCommunicationLimits,
connect-campaigns:DeleteCampaignCommunicationTime,
connect-campaigns:UpdateCampaignChannelSubtypeConfig,
connect-campaigns:UpdateCampaignCommunicationLimits,
connect-campaigns:UpdateCampaignCommunicationTime,
connect-campaigns:UpdateCampaignName,
connect-campaigns:UpdateCampaignFlowAssociation,
connect-campaigns:UpdateCampaignSchedule,
connect-campaigns:UpdateCampaignSource,
connect-campaigns:TagResource,
connect-campaigns:UntagResource,
connect-campaigns:DescribeCampaign,
connect:DescribeContactFlow,
connect:DescribeEmailAddress,
connect:DescribePhoneNumber,
connect:DescribeQueue,
profile:GetSegmentDefinition,
wisdom:GetMessageTemplate