Show / Hide Table of Contents

Interface ICfnCampaignProps

Properties for defining a CfnCampaign.

Namespace: Amazon.CDK.AWS.Pinpoint
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnCampaignProps
Syntax (vb)
Public Interface ICfnCampaignProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Pinpoint;

             var attributes;
             var customConfig;
             var metrics;
             var tags;

             var cfnCampaignProps = new CfnCampaignProps {
                 ApplicationId = "applicationId",
                 Name = "name",
                 Schedule = new ScheduleProperty {
                     EndTime = "endTime",
                     EventFilter = new CampaignEventFilterProperty {
                         Dimensions = new EventDimensionsProperty {
                             Attributes = attributes,
                             EventType = new SetDimensionProperty {
                                 DimensionType = "dimensionType",
                                 Values = new [] { "values" }
                             },
                             Metrics = metrics
                         },
                         FilterType = "filterType"
                     },
                     Frequency = "frequency",
                     IsLocalTime = false,
                     QuietTime = new QuietTimeProperty {
                         End = "end",
                         Start = "start"
                     },
                     StartTime = "startTime",
                     TimeZone = "timeZone"
                 },
                 SegmentId = "segmentId",

                 // the properties below are optional
                 AdditionalTreatments = new [] { new WriteTreatmentResourceProperty {
                     CustomDeliveryConfiguration = new CustomDeliveryConfigurationProperty {
                         DeliveryUri = "deliveryUri",
                         EndpointTypes = new [] { "endpointTypes" }
                     },
                     MessageConfiguration = new MessageConfigurationProperty {
                         AdmMessage = new MessageProperty {
                             Action = "action",
                             Body = "body",
                             ImageIconUrl = "imageIconUrl",
                             ImageSmallIconUrl = "imageSmallIconUrl",
                             ImageUrl = "imageUrl",
                             JsonBody = "jsonBody",
                             MediaUrl = "mediaUrl",
                             RawContent = "rawContent",
                             SilentPush = false,
                             TimeToLive = 123,
                             Title = "title",
                             Url = "url"
                         },
                         ApnsMessage = new MessageProperty {
                             Action = "action",
                             Body = "body",
                             ImageIconUrl = "imageIconUrl",
                             ImageSmallIconUrl = "imageSmallIconUrl",
                             ImageUrl = "imageUrl",
                             JsonBody = "jsonBody",
                             MediaUrl = "mediaUrl",
                             RawContent = "rawContent",
                             SilentPush = false,
                             TimeToLive = 123,
                             Title = "title",
                             Url = "url"
                         },
                         BaiduMessage = new MessageProperty {
                             Action = "action",
                             Body = "body",
                             ImageIconUrl = "imageIconUrl",
                             ImageSmallIconUrl = "imageSmallIconUrl",
                             ImageUrl = "imageUrl",
                             JsonBody = "jsonBody",
                             MediaUrl = "mediaUrl",
                             RawContent = "rawContent",
                             SilentPush = false,
                             TimeToLive = 123,
                             Title = "title",
                             Url = "url"
                         },
                         CustomMessage = new CampaignCustomMessageProperty {
                             Data = "data"
                         },
                         DefaultMessage = new MessageProperty {
                             Action = "action",
                             Body = "body",
                             ImageIconUrl = "imageIconUrl",
                             ImageSmallIconUrl = "imageSmallIconUrl",
                             ImageUrl = "imageUrl",
                             JsonBody = "jsonBody",
                             MediaUrl = "mediaUrl",
                             RawContent = "rawContent",
                             SilentPush = false,
                             TimeToLive = 123,
                             Title = "title",
                             Url = "url"
                         },
                         EmailMessage = new CampaignEmailMessageProperty {
                             Body = "body",
                             FromAddress = "fromAddress",
                             HtmlBody = "htmlBody",
                             Title = "title"
                         },
                         GcmMessage = new MessageProperty {
                             Action = "action",
                             Body = "body",
                             ImageIconUrl = "imageIconUrl",
                             ImageSmallIconUrl = "imageSmallIconUrl",
                             ImageUrl = "imageUrl",
                             JsonBody = "jsonBody",
                             MediaUrl = "mediaUrl",
                             RawContent = "rawContent",
                             SilentPush = false,
                             TimeToLive = 123,
                             Title = "title",
                             Url = "url"
                         },
                         InAppMessage = new CampaignInAppMessageProperty {
                             Content = new [] { new InAppMessageContentProperty {
                                 BackgroundColor = "backgroundColor",
                                 BodyConfig = new InAppMessageBodyConfigProperty {
                                     Alignment = "alignment",
                                     Body = "body",
                                     TextColor = "textColor"
                                 },
                                 HeaderConfig = new InAppMessageHeaderConfigProperty {
                                     Alignment = "alignment",
                                     Header = "header",
                                     TextColor = "textColor"
                                 },
                                 ImageUrl = "imageUrl",
                                 PrimaryBtn = new InAppMessageButtonProperty {
                                     Android = new OverrideButtonConfigurationProperty {
                                         ButtonAction = "buttonAction",
                                         Link = "link"
                                     },
                                     DefaultConfig = new DefaultButtonConfigurationProperty {
                                         BackgroundColor = "backgroundColor",
                                         BorderRadius = 123,
                                         ButtonAction = "buttonAction",
                                         Link = "link",
                                         Text = "text",
                                         TextColor = "textColor"
                                     },
                                     Ios = new OverrideButtonConfigurationProperty {
                                         ButtonAction = "buttonAction",
                                         Link = "link"
                                     },
                                     Web = new OverrideButtonConfigurationProperty {
                                         ButtonAction = "buttonAction",
                                         Link = "link"
                                     }
                                 },
                                 SecondaryBtn = new InAppMessageButtonProperty {
                                     Android = new OverrideButtonConfigurationProperty {
                                         ButtonAction = "buttonAction",
                                         Link = "link"
                                     },
                                     DefaultConfig = new DefaultButtonConfigurationProperty {
                                         BackgroundColor = "backgroundColor",
                                         BorderRadius = 123,
                                         ButtonAction = "buttonAction",
                                         Link = "link",
                                         Text = "text",
                                         TextColor = "textColor"
                                     },
                                     Ios = new OverrideButtonConfigurationProperty {
                                         ButtonAction = "buttonAction",
                                         Link = "link"
                                     },
                                     Web = new OverrideButtonConfigurationProperty {
                                         ButtonAction = "buttonAction",
                                         Link = "link"
                                     }
                                 }
                             } },
                             CustomConfig = customConfig,
                             Layout = "layout"
                         },
                         SmsMessage = new CampaignSmsMessageProperty {
                             Body = "body",
                             EntityId = "entityId",
                             MessageType = "messageType",
                             OriginationNumber = "originationNumber",
                             SenderId = "senderId",
                             TemplateId = "templateId"
                         }
                     },
                     Schedule = new ScheduleProperty {
                         EndTime = "endTime",
                         EventFilter = new CampaignEventFilterProperty {
                             Dimensions = new EventDimensionsProperty {
                                 Attributes = attributes,
                                 EventType = new SetDimensionProperty {
                                     DimensionType = "dimensionType",
                                     Values = new [] { "values" }
                                 },
                                 Metrics = metrics
                             },
                             FilterType = "filterType"
                         },
                         Frequency = "frequency",
                         IsLocalTime = false,
                         QuietTime = new QuietTimeProperty {
                             End = "end",
                             Start = "start"
                         },
                         StartTime = "startTime",
                         TimeZone = "timeZone"
                     },
                     SizePercent = 123,
                     TemplateConfiguration = new TemplateConfigurationProperty {
                         EmailTemplate = new TemplateProperty {
                             Name = "name",
                             Version = "version"
                         },
                         PushTemplate = new TemplateProperty {
                             Name = "name",
                             Version = "version"
                         },
                         SmsTemplate = new TemplateProperty {
                             Name = "name",
                             Version = "version"
                         },
                         VoiceTemplate = new TemplateProperty {
                             Name = "name",
                             Version = "version"
                         }
                     },
                     TreatmentDescription = "treatmentDescription",
                     TreatmentName = "treatmentName"
                 } },
                 CampaignHook = new CampaignHookProperty {
                     LambdaFunctionName = "lambdaFunctionName",
                     Mode = "mode",
                     WebUrl = "webUrl"
                 },
                 CustomDeliveryConfiguration = new CustomDeliveryConfigurationProperty {
                     DeliveryUri = "deliveryUri",
                     EndpointTypes = new [] { "endpointTypes" }
                 },
                 Description = "description",
                 HoldoutPercent = 123,
                 IsPaused = false,
                 Limits = new LimitsProperty {
                     Daily = 123,
                     MaximumDuration = 123,
                     MessagesPerSecond = 123,
                     Session = 123,
                     Total = 123
                 },
                 MessageConfiguration = new MessageConfigurationProperty {
                     AdmMessage = new MessageProperty {
                         Action = "action",
                         Body = "body",
                         ImageIconUrl = "imageIconUrl",
                         ImageSmallIconUrl = "imageSmallIconUrl",
                         ImageUrl = "imageUrl",
                         JsonBody = "jsonBody",
                         MediaUrl = "mediaUrl",
                         RawContent = "rawContent",
                         SilentPush = false,
                         TimeToLive = 123,
                         Title = "title",
                         Url = "url"
                     },
                     ApnsMessage = new MessageProperty {
                         Action = "action",
                         Body = "body",
                         ImageIconUrl = "imageIconUrl",
                         ImageSmallIconUrl = "imageSmallIconUrl",
                         ImageUrl = "imageUrl",
                         JsonBody = "jsonBody",
                         MediaUrl = "mediaUrl",
                         RawContent = "rawContent",
                         SilentPush = false,
                         TimeToLive = 123,
                         Title = "title",
                         Url = "url"
                     },
                     BaiduMessage = new MessageProperty {
                         Action = "action",
                         Body = "body",
                         ImageIconUrl = "imageIconUrl",
                         ImageSmallIconUrl = "imageSmallIconUrl",
                         ImageUrl = "imageUrl",
                         JsonBody = "jsonBody",
                         MediaUrl = "mediaUrl",
                         RawContent = "rawContent",
                         SilentPush = false,
                         TimeToLive = 123,
                         Title = "title",
                         Url = "url"
                     },
                     CustomMessage = new CampaignCustomMessageProperty {
                         Data = "data"
                     },
                     DefaultMessage = new MessageProperty {
                         Action = "action",
                         Body = "body",
                         ImageIconUrl = "imageIconUrl",
                         ImageSmallIconUrl = "imageSmallIconUrl",
                         ImageUrl = "imageUrl",
                         JsonBody = "jsonBody",
                         MediaUrl = "mediaUrl",
                         RawContent = "rawContent",
                         SilentPush = false,
                         TimeToLive = 123,
                         Title = "title",
                         Url = "url"
                     },
                     EmailMessage = new CampaignEmailMessageProperty {
                         Body = "body",
                         FromAddress = "fromAddress",
                         HtmlBody = "htmlBody",
                         Title = "title"
                     },
                     GcmMessage = new MessageProperty {
                         Action = "action",
                         Body = "body",
                         ImageIconUrl = "imageIconUrl",
                         ImageSmallIconUrl = "imageSmallIconUrl",
                         ImageUrl = "imageUrl",
                         JsonBody = "jsonBody",
                         MediaUrl = "mediaUrl",
                         RawContent = "rawContent",
                         SilentPush = false,
                         TimeToLive = 123,
                         Title = "title",
                         Url = "url"
                     },
                     InAppMessage = new CampaignInAppMessageProperty {
                         Content = new [] { new InAppMessageContentProperty {
                             BackgroundColor = "backgroundColor",
                             BodyConfig = new InAppMessageBodyConfigProperty {
                                 Alignment = "alignment",
                                 Body = "body",
                                 TextColor = "textColor"
                             },
                             HeaderConfig = new InAppMessageHeaderConfigProperty {
                                 Alignment = "alignment",
                                 Header = "header",
                                 TextColor = "textColor"
                             },
                             ImageUrl = "imageUrl",
                             PrimaryBtn = new InAppMessageButtonProperty {
                                 Android = new OverrideButtonConfigurationProperty {
                                     ButtonAction = "buttonAction",
                                     Link = "link"
                                 },
                                 DefaultConfig = new DefaultButtonConfigurationProperty {
                                     BackgroundColor = "backgroundColor",
                                     BorderRadius = 123,
                                     ButtonAction = "buttonAction",
                                     Link = "link",
                                     Text = "text",
                                     TextColor = "textColor"
                                 },
                                 Ios = new OverrideButtonConfigurationProperty {
                                     ButtonAction = "buttonAction",
                                     Link = "link"
                                 },
                                 Web = new OverrideButtonConfigurationProperty {
                                     ButtonAction = "buttonAction",
                                     Link = "link"
                                 }
                             },
                             SecondaryBtn = new InAppMessageButtonProperty {
                                 Android = new OverrideButtonConfigurationProperty {
                                     ButtonAction = "buttonAction",
                                     Link = "link"
                                 },
                                 DefaultConfig = new DefaultButtonConfigurationProperty {
                                     BackgroundColor = "backgroundColor",
                                     BorderRadius = 123,
                                     ButtonAction = "buttonAction",
                                     Link = "link",
                                     Text = "text",
                                     TextColor = "textColor"
                                 },
                                 Ios = new OverrideButtonConfigurationProperty {
                                     ButtonAction = "buttonAction",
                                     Link = "link"
                                 },
                                 Web = new OverrideButtonConfigurationProperty {
                                     ButtonAction = "buttonAction",
                                     Link = "link"
                                 }
                             }
                         } },
                         CustomConfig = customConfig,
                         Layout = "layout"
                     },
                     SmsMessage = new CampaignSmsMessageProperty {
                         Body = "body",
                         EntityId = "entityId",
                         MessageType = "messageType",
                         OriginationNumber = "originationNumber",
                         SenderId = "senderId",
                         TemplateId = "templateId"
                     }
                 },
                 Priority = 123,
                 SegmentVersion = 123,
                 Tags = tags,
                 TemplateConfiguration = new TemplateConfigurationProperty {
                     EmailTemplate = new TemplateProperty {
                         Name = "name",
                         Version = "version"
                     },
                     PushTemplate = new TemplateProperty {
                         Name = "name",
                         Version = "version"
                     },
                     SmsTemplate = new TemplateProperty {
                         Name = "name",
                         Version = "version"
                     },
                     VoiceTemplate = new TemplateProperty {
                         Name = "name",
                         Version = "version"
                     }
                 },
                 TreatmentDescription = "treatmentDescription",
                 TreatmentName = "treatmentName"
             };

Synopsis

Properties

AdditionalTreatments

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

ApplicationId

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

CampaignHook

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

CustomDeliveryConfiguration

The delivery configuration settings for sending the treatment through a custom channel.

Description

A custom description of the campaign.

HoldoutPercent

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

IsPaused

Specifies whether to pause the campaign.

Limits

The messaging limits for the campaign.

MessageConfiguration

The message configuration settings for the treatment.

Name

The name of the campaign.

Priority

An integer between 1 and 5, inclusive, that represents the priority of the in-app message campaign, where 1 is the highest priority and 5 is the lowest.

Schedule

The schedule settings for the treatment.

SegmentId

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

SegmentVersion

The version of the segment to associate with the campaign.

Tags

An array of key-value pairs to apply to this resource.

TemplateConfiguration

The message template to use for the treatment.

TreatmentDescription

A custom description of the treatment.

TreatmentName

A custom name for the treatment.

Properties

AdditionalTreatments

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

object? AdditionalTreatments { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-additionaltreatments

Type union: either IResolvable or (either IResolvable or CfnCampaign.IWriteTreatmentResourceProperty)[]

ApplicationId

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

string ApplicationId { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-applicationid

CampaignHook

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

object? CampaignHook { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-campaignhook

Type union: either IResolvable or CfnCampaign.ICampaignHookProperty

CustomDeliveryConfiguration

The delivery configuration settings for sending the treatment through a custom channel.

object? CustomDeliveryConfiguration { get; }
Property Value

object

Remarks

This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-customdeliveryconfiguration

Type union: either IResolvable or CfnCampaign.ICustomDeliveryConfigurationProperty

Description

A custom description of the campaign.

string? Description { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-description

HoldoutPercent

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

double? HoldoutPercent { get; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-holdoutpercent

IsPaused

Specifies whether to pause the campaign.

object? IsPaused { get; }
Property Value

object

Remarks

A paused campaign doesn't run unless you resume it by changing this value to false . If you restart a campaign, the campaign restarts from the beginning and not at the point you paused it. If a campaign is running it will complete and then pause. Pause only pauses or skips the next run for a recurring future scheduled campaign. A campaign scheduled for immediate can't be paused.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-ispaused

Type union: either bool or IResolvable

Limits

The messaging limits for the campaign.

object? Limits { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-limits

Type union: either IResolvable or CfnCampaign.ILimitsProperty

MessageConfiguration

The message configuration settings for the treatment.

object? MessageConfiguration { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-messageconfiguration

Type union: either IResolvable or CfnCampaign.IMessageConfigurationProperty

Name

The name of the campaign.

string Name { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-name

Priority

An integer between 1 and 5, inclusive, that represents the priority of the in-app message campaign, where 1 is the highest priority and 5 is the lowest.

double? Priority { get; }
Property Value

double?

Remarks

If there are multiple messages scheduled to be displayed at the same time, the priority determines the order in which those messages are displayed.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-priority

Schedule

The schedule settings for the treatment.

object Schedule { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-schedule

Type union: either IResolvable or CfnCampaign.IScheduleProperty

SegmentId

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

string SegmentId { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-segmentid

SegmentVersion

The version of the segment to associate with the campaign.

double? SegmentVersion { get; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-segmentversion

Tags

An array of key-value pairs to apply to this resource.

object? Tags { get; }
Property Value

object

Remarks

For more information, see Tag .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-tags

TemplateConfiguration

The message template to use for the treatment.

object? TemplateConfiguration { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-templateconfiguration

Type union: either IResolvable or CfnCampaign.ITemplateConfigurationProperty

TreatmentDescription

A custom description of the treatment.

string? TreatmentDescription { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-treatmentdescription

TreatmentName

A custom name for the treatment.

string? TreatmentName { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-campaign.html#cfn-pinpoint-campaign-treatmentname

Back to top Generated by DocFX