@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.237Z") @Stability(value=Stable) public class CfnPushTemplate extends CfnResource implements IInspectable
Creates a message template that you can use in messages that are sent through a push notification channel. A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications.
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 tags;
CfnPushTemplate cfnPushTemplate = CfnPushTemplate.Builder.create(this, "MyCfnPushTemplate")
.templateName("templateName")
// the properties below are optional
.adm(AndroidPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageUrl("imageUrl")
.smallImageIconUrl("smallImageIconUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.apns(APNSPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.mediaUrl("mediaUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.baidu(AndroidPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageUrl("imageUrl")
.smallImageIconUrl("smallImageIconUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.default(DefaultPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.sound("sound")
.title("title")
.url("url")
.build())
.defaultSubstitutions("defaultSubstitutions")
.gcm(AndroidPushNotificationTemplateProperty.builder()
.action("action")
.body("body")
.imageIconUrl("imageIconUrl")
.imageUrl("imageUrl")
.smallImageIconUrl("smallImageIconUrl")
.sound("sound")
.title("title")
.url("url")
.build())
.tags(tags)
.templateDescription("templateDescription")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnPushTemplate.AndroidPushNotificationTemplateProperty
Specifies channel-specific content and settings for a message template that can be used in push notifications that are sent through the ADM (Amazon Device Messaging), Baidu (Baidu Cloud Push), or GCM (Firebase Cloud Messaging, formerly Google Cloud Messaging) channel.
|
static interface |
CfnPushTemplate.APNSPushNotificationTemplateProperty
Specifies channel-specific content and settings for a message template that can be used in push notifications that are sent through the APNs (Apple Push Notification service) channel.
|
static class |
CfnPushTemplate.Builder
A fluent builder for
CfnPushTemplate. |
static interface |
CfnPushTemplate.DefaultPushNotificationTemplateProperty
Specifies the default settings and content for a message template that can be used in messages that are sent through a push notification channel.
|
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 |
|---|---|
|
CfnPushTemplate(software.constructs.Construct scope,
String id,
CfnPushTemplateProps props)
Create a new `AWS::Pinpoint::PushTemplate`.
|
protected |
CfnPushTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPushTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdm()
The message template to use for the ADM (Amazon Device Messaging) channel.
|
Object |
getApns()
The message template to use for the APNs (Apple Push Notification service) channel.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the message template.
|
Object |
getBaidu()
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
Object |
getDefaultValue()
The default message template to use for push notification channels.
|
Object |
getGcm()
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
String |
getTemplateDescription()
A custom description of the message template.
|
String |
getTemplateName()
The name of the message template.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAdm(CfnPushTemplate.AndroidPushNotificationTemplateProperty value)
The message template to use for the ADM (Amazon Device Messaging) channel.
|
void |
setAdm(IResolvable value)
The message template to use for the ADM (Amazon Device Messaging) channel.
|
void |
setApns(CfnPushTemplate.APNSPushNotificationTemplateProperty value)
The message template to use for the APNs (Apple Push Notification service) channel.
|
void |
setApns(IResolvable value)
The message template to use for the APNs (Apple Push Notification service) channel.
|
void |
setBaidu(CfnPushTemplate.AndroidPushNotificationTemplateProperty value)
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
void |
setBaidu(IResolvable value)
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
void |
setDefaultSubstitutions(String value)
A JSON object that specifies the default values to use for message variables in the message template.
|
void |
setDefaultValue(CfnPushTemplate.DefaultPushNotificationTemplateProperty value)
The default message template to use for push notification channels.
|
void |
setDefaultValue(IResolvable value)
The default message template to use for push notification channels.
|
void |
setGcm(CfnPushTemplate.AndroidPushNotificationTemplateProperty value)
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
void |
setGcm(IResolvable value)
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
void |
setTemplateDescription(String value)
A custom description of the message template.
|
void |
setTemplateName(String value)
The name of the message template.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, 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 CfnPushTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPushTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPushTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnPushTemplateProps 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) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getTemplateName()
@Stability(value=Stable)
public void setTemplateName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getAdm()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setAdm(@Nullable
CfnPushTemplate.AndroidPushNotificationTemplateProperty value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setAdm(@Nullable
IResolvable value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable public Object getApns()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setApns(@Nullable
CfnPushTemplate.APNSPushNotificationTemplateProperty value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setApns(@Nullable
IResolvable value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable public Object getBaidu()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setBaidu(@Nullable
CfnPushTemplate.AndroidPushNotificationTemplateProperty value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setBaidu(@Nullable
IResolvable value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable public Object getDefaultValue()
@Stability(value=Stable)
public void setDefaultValue(@Nullable
CfnPushTemplate.DefaultPushNotificationTemplateProperty value)
@Stability(value=Stable)
public void setDefaultValue(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDefaultSubstitutions()
This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
@Stability(value=Stable)
public void setDefaultSubstitutions(@Nullable
String value)
This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
@Stability(value=Stable) @Nullable public Object getGcm()
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setGcm(@Nullable
CfnPushTemplate.AndroidPushNotificationTemplateProperty value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable)
public void setGcm(@Nullable
IResolvable value)
This message template overrides the default template for push notification channels ( Default ).
@Stability(value=Stable) @Nullable public String getTemplateDescription()
@Stability(value=Stable)
public void setTemplateDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.