libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

Description

 
Synopsis

Documentation

data DefaultPushNotificationMessage Source #

Specifies the default settings and content for a push notification that's sent directly to an endpoint.

See: newDefaultPushNotificationMessage smart constructor.

Constructors

DefaultPushNotificationMessage' 

Fields

  • substitutions :: Maybe (HashMap Text [Text])

    The default message variables to use in the notification message. You can override the default variables with individual address variables.

  • silentPush :: Maybe Bool

    Specifies whether the default notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or delivering messages to an in-app notification center.

  • data' :: Maybe (HashMap Text Text)

    The JSON data payload to use for the default push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

  • body :: Maybe Text

    The default body of the notification message.

  • url :: Maybe Text

    The default URL to open in a recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

  • action :: Maybe Action

    The default action to occur if a recipient taps the push notification. Valid values are:

    • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
    • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.
    • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
  • title :: Maybe Text

    The default title to display above the notification message on a recipient's device.

Instances

Instances details
Eq DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

Read DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

Show DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

Generic DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

Associated Types

type Rep DefaultPushNotificationMessage :: Type -> Type #

NFData DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

Hashable DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

ToJSON DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

type Rep DefaultPushNotificationMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.DefaultPushNotificationMessage

type Rep DefaultPushNotificationMessage = D1 ('MetaData "DefaultPushNotificationMessage" "Amazonka.Pinpoint.Types.DefaultPushNotificationMessage" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "DefaultPushNotificationMessage'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "substitutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [Text]))) :*: (S1 ('MetaSel ('Just "silentPush") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: ((S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Action)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDefaultPushNotificationMessage :: DefaultPushNotificationMessage Source #

Create a value of DefaultPushNotificationMessage with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:substitutions:DefaultPushNotificationMessage', defaultPushNotificationMessage_substitutions - The default message variables to use in the notification message. You can override the default variables with individual address variables.

$sel:silentPush:DefaultPushNotificationMessage', defaultPushNotificationMessage_silentPush - Specifies whether the default notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or delivering messages to an in-app notification center.

$sel:data':DefaultPushNotificationMessage', defaultPushNotificationMessage_data - The JSON data payload to use for the default push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

$sel:body:DefaultPushNotificationMessage', defaultPushNotificationMessage_body - The default body of the notification message.

$sel:url:DefaultPushNotificationMessage', defaultPushNotificationMessage_url - The default URL to open in a recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

$sel:action:DefaultPushNotificationMessage', defaultPushNotificationMessage_action - The default action to occur if a recipient taps the push notification. Valid values are:

  • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
  • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.
  • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

$sel:title:DefaultPushNotificationMessage', defaultPushNotificationMessage_title - The default title to display above the notification message on a recipient's device.

defaultPushNotificationMessage_substitutions :: Lens' DefaultPushNotificationMessage (Maybe (HashMap Text [Text])) Source #

The default message variables to use in the notification message. You can override the default variables with individual address variables.

defaultPushNotificationMessage_silentPush :: Lens' DefaultPushNotificationMessage (Maybe Bool) Source #

Specifies whether the default notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or delivering messages to an in-app notification center.

defaultPushNotificationMessage_data :: Lens' DefaultPushNotificationMessage (Maybe (HashMap Text Text)) Source #

The JSON data payload to use for the default push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

defaultPushNotificationMessage_url :: Lens' DefaultPushNotificationMessage (Maybe Text) Source #

The default URL to open in a recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

defaultPushNotificationMessage_action :: Lens' DefaultPushNotificationMessage (Maybe Action) Source #

The default action to occur if a recipient taps the push notification. Valid values are:

  • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
  • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.
  • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

defaultPushNotificationMessage_title :: Lens' DefaultPushNotificationMessage (Maybe Text) Source #

The default title to display above the notification message on a recipient's device.