CfnPushTemplateProps Struct
Properties for defining a CfnPushTemplate.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
declare const tags: any;
const cfnPushTemplateProps: pinpoint.CfnPushTemplateProps = {
templateName: 'templateName',
// the properties below are optional
adm: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageUrl: 'imageUrl',
smallImageIconUrl: 'smallImageIconUrl',
sound: 'sound',
title: 'title',
url: 'url',
},
apns: {
action: 'action',
body: 'body',
mediaUrl: 'mediaUrl',
sound: 'sound',
title: 'title',
url: 'url',
},
baidu: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageUrl: 'imageUrl',
smallImageIconUrl: 'smallImageIconUrl',
sound: 'sound',
title: 'title',
url: 'url',
},
default: {
action: 'action',
body: 'body',
sound: 'sound',
title: 'title',
url: 'url',
},
defaultSubstitutions: 'defaultSubstitutions',
gcm: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageUrl: 'imageUrl',
smallImageIconUrl: 'smallImageIconUrl',
sound: 'sound',
title: 'title',
url: 'url',
},
tags: tags,
templateDescription: 'templateDescription',
};
Properties
admoptionalIResolvable | CfnPushTemplate.AndroidPushNotificationTemplatePropertyadmoptionaltyping.Union[IResolvable, AndroidPushNotificationTemplateProperty]admoptionalIResolvableAdmoptionalIResolvableAdmoptionalinterface{}#This message template overrides the default template for push notification channels ( Default ).
apnsoptionalIResolvable | CfnPushTemplate.APNSPushNotificationTemplatePropertyapnsoptionaltyping.Union[IResolvable, APNSPushNotificationTemplateProperty]apnsoptionalIResolvableApnsoptionalIResolvableApnsoptionalinterface{}#This message template overrides the default template for push notification channels ( Default ).
baiduoptionalIResolvable | CfnPushTemplate.AndroidPushNotificationTemplatePropertybaiduoptionaltyping.Union[IResolvable, AndroidPushNotificationTemplateProperty]baiduoptionalIResolvableBaiduoptionalIResolvableBaiduoptionalinterface{}#This message template overrides the default template for push notification channels ( Default ).
defaultoptionalIResolvable | CfnPushTemplate.DefaultPushNotificationTemplatePropertydefaultoptionaltyping.Union[IResolvable, DefaultPushNotificationTemplateProperty]defaultoptionalIResolvableDefaultoptionalIResolvableDefaultoptionalinterface{}#defaultSubstitutionsoptionalstringdefault_substitutionsoptionalstrdefaultSubstitutionsoptionalStringDefaultSubstitutionsoptionalstringDefaultSubstitutionsoptional*string#notes
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.
gcmoptionalIResolvable | CfnPushTemplate.AndroidPushNotificationTemplatePropertygcmoptionaltyping.Union[IResolvable, AndroidPushNotificationTemplateProperty]gcmoptionalIResolvableGcmoptionalIResolvableGcmoptionalinterface{}#This message template overrides the default template for push notification channels ( Default ).
For more information, see Tag .
templateDescriptionoptionalstringtemplate_descriptionoptionalstrtemplateDescriptionoptionalStringTemplateDescriptionoptionalstringTemplateDescriptionoptional*string#If specified, this value must match the name of an existing message template.