@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.447Z") @Stability(value=Stable) public class CfnCampaign extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;
Object attributes;
Object customConfig;
Object metrics;
Object tags;
CfnCampaign cfnCampaign = CfnCampaign.Builder.create(this, "MyCfnCampaign")
.applicationId("applicationId")
.messageConfiguration(MessageConfigurationProperty.builder()
.admMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.apnsMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.baiduMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.defaultMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.emailMessage(CampaignEmailMessageProperty.builder()
.body("body")
.fromAddress("fromAddress")
.htmlBody("htmlBody")
.title("title")
.build())
.gcmMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.inAppMessage(CampaignInAppMessageProperty.builder()
.content(List.of(InAppMessageContentProperty.builder()
.backgroundColor("backgroundColor")
.bodyConfig(InAppMessageBodyConfigProperty.builder()
.alignment("alignment")
.body("body")
.textColor("textColor")
.build())
.headerConfig(InAppMessageHeaderConfigProperty.builder()
.alignment("alignment")
.header("header")
.textColor("textColor")
.build())
.imageUrl("imageUrl")
.primaryBtn(InAppMessageButtonProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build())
.secondaryBtn(InAppMessageButtonProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build())
.build()))
.customConfig(customConfig)
.layout("layout")
.build())
.smsMessage(CampaignSmsMessageProperty.builder()
.body("body")
.entityId("entityId")
.messageType("messageType")
.originationNumber("originationNumber")
.senderId("senderId")
.templateId("templateId")
.build())
.build())
.name("name")
.schedule(ScheduleProperty.builder()
.endTime("endTime")
.eventFilter(CampaignEventFilterProperty.builder()
.dimensions(EventDimensionsProperty.builder()
.attributes(attributes)
.eventType(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.metrics(metrics)
.build())
.filterType("filterType")
.build())
.frequency("frequency")
.isLocalTime(false)
.quietTime(QuietTimeProperty.builder()
.end("end")
.start("start")
.build())
.startTime("startTime")
.timeZone("timeZone")
.build())
.segmentId("segmentId")
// the properties below are optional
.additionalTreatments(List.of(WriteTreatmentResourceProperty.builder()
.messageConfiguration(MessageConfigurationProperty.builder()
.admMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.apnsMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.baiduMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.defaultMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.emailMessage(CampaignEmailMessageProperty.builder()
.body("body")
.fromAddress("fromAddress")
.htmlBody("htmlBody")
.title("title")
.build())
.gcmMessage(MessageProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageSmallIconUrl("imageSmallIconUrl")
.imageUrl("imageUrl")
.jsonBody("jsonBody")
.mediaUrl("mediaUrl")
.rawContent("rawContent")
.silentPush(false)
.timeToLive(123)
.title("title")
.url("url")
.build())
.inAppMessage(CampaignInAppMessageProperty.builder()
.content(List.of(InAppMessageContentProperty.builder()
.backgroundColor("backgroundColor")
.bodyConfig(InAppMessageBodyConfigProperty.builder()
.alignment("alignment")
.body("body")
.textColor("textColor")
.build())
.headerConfig(InAppMessageHeaderConfigProperty.builder()
.alignment("alignment")
.header("header")
.textColor("textColor")
.build())
.imageUrl("imageUrl")
.primaryBtn(InAppMessageButtonProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build())
.secondaryBtn(InAppMessageButtonProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build())
.build()))
.customConfig(customConfig)
.layout("layout")
.build())
.smsMessage(CampaignSmsMessageProperty.builder()
.body("body")
.entityId("entityId")
.messageType("messageType")
.originationNumber("originationNumber")
.senderId("senderId")
.templateId("templateId")
.build())
.build())
.schedule(ScheduleProperty.builder()
.endTime("endTime")
.eventFilter(CampaignEventFilterProperty.builder()
.dimensions(EventDimensionsProperty.builder()
.attributes(attributes)
.eventType(SetDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build())
.metrics(metrics)
.build())
.filterType("filterType")
.build())
.frequency("frequency")
.isLocalTime(false)
.quietTime(QuietTimeProperty.builder()
.end("end")
.start("start")
.build())
.startTime("startTime")
.timeZone("timeZone")
.build())
.sizePercent(123)
.treatmentDescription("treatmentDescription")
.treatmentName("treatmentName")
.build()))
.campaignHook(CampaignHookProperty.builder()
.lambdaFunctionName("lambdaFunctionName")
.mode("mode")
.webUrl("webUrl")
.build())
.description("description")
.holdoutPercent(123)
.isPaused(false)
.limits(LimitsProperty.builder()
.daily(123)
.maximumDuration(123)
.messagesPerSecond(123)
.session(123)
.total(123)
.build())
.priority(123)
.segmentVersion(123)
.tags(tags)
.treatmentDescription("treatmentDescription")
.treatmentName("treatmentName")
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCampaign(software.constructs.Construct scope,
String id,
CfnCampaignProps props)
Create a new `AWS::Pinpoint::Campaign`.
|
protected |
CfnCampaign(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCampaign(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdditionalTreatments()
`AWS::Pinpoint::Campaign.AdditionalTreatments`.
|
String |
getApplicationId()
`AWS::Pinpoint::Campaign.ApplicationId`.
|
String |
getAttrArn() |
String |
getAttrCampaignId() |
Object |
getCampaignHook()
`AWS::Pinpoint::Campaign.CampaignHook`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
`AWS::Pinpoint::Campaign.Description`.
|
Number |
getHoldoutPercent()
`AWS::Pinpoint::Campaign.HoldoutPercent`.
|
Object |
getIsPaused()
`AWS::Pinpoint::Campaign.IsPaused`.
|
Object |
getLimits()
`AWS::Pinpoint::Campaign.Limits`.
|
Object |
getMessageConfiguration()
`AWS::Pinpoint::Campaign.MessageConfiguration`.
|
String |
getName()
`AWS::Pinpoint::Campaign.Name`.
|
Number |
getPriority()
`AWS::Pinpoint::Campaign.Priority`.
|
Object |
getSchedule()
`AWS::Pinpoint::Campaign.Schedule`.
|
String |
getSegmentId()
`AWS::Pinpoint::Campaign.SegmentId`.
|
Number |
getSegmentVersion()
`AWS::Pinpoint::Campaign.SegmentVersion`.
|
TagManager |
getTags()
`AWS::Pinpoint::Campaign.Tags`.
|
String |
getTreatmentDescription()
`AWS::Pinpoint::Campaign.TreatmentDescription`.
|
String |
getTreatmentName()
`AWS::Pinpoint::Campaign.TreatmentName`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAdditionalTreatments(IResolvable value)
`AWS::Pinpoint::Campaign.AdditionalTreatments`.
|
void |
setAdditionalTreatments(List<Object> value)
`AWS::Pinpoint::Campaign.AdditionalTreatments`.
|
void |
setApplicationId(String value)
`AWS::Pinpoint::Campaign.ApplicationId`.
|
void |
setCampaignHook(CfnCampaign.CampaignHookProperty value)
`AWS::Pinpoint::Campaign.CampaignHook`.
|
void |
setCampaignHook(IResolvable value)
`AWS::Pinpoint::Campaign.CampaignHook`.
|
void |
setDescription(String value)
`AWS::Pinpoint::Campaign.Description`.
|
void |
setHoldoutPercent(Number value)
`AWS::Pinpoint::Campaign.HoldoutPercent`.
|
void |
setIsPaused(Boolean value)
`AWS::Pinpoint::Campaign.IsPaused`.
|
void |
setIsPaused(IResolvable value)
`AWS::Pinpoint::Campaign.IsPaused`.
|
void |
setLimits(CfnCampaign.LimitsProperty value)
`AWS::Pinpoint::Campaign.Limits`.
|
void |
setLimits(IResolvable value)
`AWS::Pinpoint::Campaign.Limits`.
|
void |
setMessageConfiguration(CfnCampaign.MessageConfigurationProperty value)
`AWS::Pinpoint::Campaign.MessageConfiguration`.
|
void |
setMessageConfiguration(IResolvable value)
`AWS::Pinpoint::Campaign.MessageConfiguration`.
|
void |
setName(String value)
`AWS::Pinpoint::Campaign.Name`.
|
void |
setPriority(Number value)
`AWS::Pinpoint::Campaign.Priority`.
|
void |
setSchedule(CfnCampaign.ScheduleProperty value)
`AWS::Pinpoint::Campaign.Schedule`.
|
void |
setSchedule(IResolvable value)
`AWS::Pinpoint::Campaign.Schedule`.
|
void |
setSegmentId(String value)
`AWS::Pinpoint::Campaign.SegmentId`.
|
void |
setSegmentVersion(Number value)
`AWS::Pinpoint::Campaign.SegmentVersion`.
|
void |
setTreatmentDescription(String value)
`AWS::Pinpoint::Campaign.TreatmentDescription`.
|
void |
setTreatmentName(String value)
`AWS::Pinpoint::Campaign.TreatmentName`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCampaign(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCampaign(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCampaign(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnCampaignProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @Nullable public Object getAdditionalTreatments()
@Stability(value=Stable)
public void setAdditionalTreatments(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setAdditionalTreatments(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public String getApplicationId()
@Stability(value=Stable)
public void setApplicationId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCampaignId()
@Stability(value=Stable) @Nullable public Object getCampaignHook()
@Stability(value=Stable)
public void setCampaignHook(@Nullable
CfnCampaign.CampaignHookProperty value)
@Stability(value=Stable)
public void setCampaignHook(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getHoldoutPercent()
@Stability(value=Stable)
public void setHoldoutPercent(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Object getIsPaused()
@Stability(value=Stable)
public void setIsPaused(@Nullable
Boolean value)
@Stability(value=Stable)
public void setIsPaused(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getLimits()
@Stability(value=Stable)
public void setLimits(@Nullable
CfnCampaign.LimitsProperty value)
@Stability(value=Stable)
public void setLimits(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public Object getMessageConfiguration()
@Stability(value=Stable)
public void setMessageConfiguration(@NotNull
CfnCampaign.MessageConfigurationProperty value)
@Stability(value=Stable)
public void setMessageConfiguration(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Number getPriority()
@Stability(value=Stable)
public void setPriority(@Nullable
Number value)
@Stability(value=Stable) @NotNull public Object getSchedule()
@Stability(value=Stable)
public void setSchedule(@NotNull
CfnCampaign.ScheduleProperty value)
@Stability(value=Stable)
public void setSchedule(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getSegmentId()
@Stability(value=Stable)
public void setSegmentId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Number getSegmentVersion()
@Stability(value=Stable)
public void setSegmentVersion(@Nullable
Number value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getTreatmentDescription()
@Stability(value=Stable)
public void setTreatmentDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getTreatmentName()
@Stability(value=Stable)
public void setTreatmentName(@Nullable
String value)
Copyright © 2021. All rights reserved.