Interface CfnPushTemplateProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPushTemplateProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2025-01-07T10:36:10.517Z") @Stability(Stable) public interface CfnPushTemplateProps extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.pinpoint.*;
 Object tags;
 CfnPushTemplateProps cfnPushTemplateProps = CfnPushTemplateProps.builder()
         .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();
 

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CfnPushTemplateProps
    static final class 
    An implementation for CfnPushTemplateProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Object
    The message template to use for the ADM (Amazon Device Messaging) channel.
    default Object
    The message template to use for the APNs (Apple Push Notification service) channel.
    default Object
    The message template to use for the Baidu (Baidu Cloud Push) channel.
    default String
    A JSON object that specifies the default values to use for message variables in the message template.
    default Object
    The default message template to use for push notification channels.
    default Object
    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.
    default Object
    An array of key-value pairs to apply to this resource.
    default String
    A custom description of the message template.
    The name of the message template to use for the message.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson