AWS CloudFormation
User Guide (Version )

AWS::Pinpoint::Campaign

Specifies the settings for a campaign. A campaign is a messaging initiative that engages a specific segment of users for an Amazon Pinpoint application.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Pinpoint::Campaign", "Properties" : { "AdditionalTreatments" : [ WriteTreatmentResource, ... ], "ApplicationId" : String, "CampaignHook" : CampaignHook, "Description" : String, "HoldoutPercent" : Integer, "IsPaused" : Boolean, "Limits" : Limits, "MessageConfiguration" : MessageConfiguration, "Name" : String, "Schedule" : Schedule, "SegmentId" : String, "SegmentVersion" : Integer, "Tags" : Json, "TreatmentDescription" : String, "TreatmentName" : String } }

Properties

AdditionalTreatments

An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.

Required: No

Type: List of WriteTreatmentResource

Update requires: No interruption

ApplicationId

The unique identifier for the Amazon Pinpoint application that the campaign is associated with.

Required: Yes

Type: String

Update requires: Replacement

CampaignHook

Specifies the AWS Lambda function to use as a code hook for a campaign.

Required: No

Type: CampaignHook

Update requires: No interruption

Description

A custom description of the campaign.

Required: No

Type: String

Update requires: No interruption

HoldoutPercent

The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

Required: No

Type: Integer

Update requires: No interruption

IsPaused

Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting this value to false.

Required: No

Type: Boolean

Update requires: No interruption

Limits

The messaging limits for the campaign.

Required: No

Type: Limits

Update requires: No interruption

MessageConfiguration

The message configuration settings for the campaign.

Required: Yes

Type: MessageConfiguration

Update requires: No interruption

Name

The name of the campaign.

Required: Yes

Type: String

Update requires: No interruption

Schedule

The schedule settings for the campaign.

Required: Yes

Type: Schedule

Update requires: No interruption

SegmentId

The unique identifier for the segment to associate with the campaign.

Required: Yes

Type: String

Update requires: No interruption

SegmentVersion

The version of the segment to associate with the campaign.

Required: No

Type: Integer

Update requires: No interruption

Tags

A string-to-string map of key-value pairs that defines the tags to associate with the campaign. Each tag consists of a required tag key and an associated tag value.

Required: No

Type: Json

Update requires: No interruption

TreatmentDescription

A custom description of a variation of the campaign to use for A/B testing.

Required: No

Type: String

Update requires: No interruption

TreatmentName

The custom name of a variation of the campaign to use for A/B testing.

Required: No

Type: String

Update requires: No interruption

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns a string that combines the unique identifier for the Amazon Pinpoint application with the unique identifier for the segment that the campaign targets.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

The Amazon Resource Name (ARN) of the campaign.

CampaignId

The unique identifier for the campaign.