| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Pinpoint.Types.EndpointSendConfiguration
Description
Synopsis
- data EndpointSendConfiguration = EndpointSendConfiguration' {
- bodyOverride :: Maybe Text
- context :: Maybe (HashMap Text Text)
- rawContent :: Maybe Text
- substitutions :: Maybe (HashMap Text [Text])
- titleOverride :: Maybe Text
- newEndpointSendConfiguration :: EndpointSendConfiguration
- endpointSendConfiguration_bodyOverride :: Lens' EndpointSendConfiguration (Maybe Text)
- endpointSendConfiguration_context :: Lens' EndpointSendConfiguration (Maybe (HashMap Text Text))
- endpointSendConfiguration_rawContent :: Lens' EndpointSendConfiguration (Maybe Text)
- endpointSendConfiguration_substitutions :: Lens' EndpointSendConfiguration (Maybe (HashMap Text [Text]))
- endpointSendConfiguration_titleOverride :: Lens' EndpointSendConfiguration (Maybe Text)
Documentation
data EndpointSendConfiguration Source #
Specifies the content, including message variables and attributes, to use in a message that's sent directly to an endpoint.
See: newEndpointSendConfiguration smart constructor.
Constructors
| EndpointSendConfiguration' | |
Fields
| |
Instances
newEndpointSendConfiguration :: EndpointSendConfiguration Source #
Create a value of EndpointSendConfiguration 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:bodyOverride:EndpointSendConfiguration', endpointSendConfiguration_bodyOverride - The body of the message. If specified, this value overrides the default
message body.
$sel:context:EndpointSendConfiguration', endpointSendConfiguration_context - A map of custom attributes to attach to the message for the address.
Attribute names are case sensitive.
For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.
$sel:rawContent:EndpointSendConfiguration', endpointSendConfiguration_rawContent - The raw, JSON-formatted string to use as the payload for the message. If
specified, this value overrides all other values for the message.
$sel:substitutions:EndpointSendConfiguration', endpointSendConfiguration_substitutions - A map of the message variables to merge with the variables specified for
the default message (DefaultMessage.Substitutions). The variables
specified in this map take precedence over all other variables.
$sel:titleOverride:EndpointSendConfiguration', endpointSendConfiguration_titleOverride - The title or subject line of the message. If specified, this value
overrides the default message title or subject line.
endpointSendConfiguration_bodyOverride :: Lens' EndpointSendConfiguration (Maybe Text) Source #
The body of the message. If specified, this value overrides the default message body.
endpointSendConfiguration_context :: Lens' EndpointSendConfiguration (Maybe (HashMap Text Text)) Source #
A map of custom attributes to attach to the message for the address. Attribute names are case sensitive.
For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.
endpointSendConfiguration_rawContent :: Lens' EndpointSendConfiguration (Maybe Text) Source #
The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all other values for the message.
endpointSendConfiguration_substitutions :: Lens' EndpointSendConfiguration (Maybe (HashMap Text [Text])) Source #
A map of the message variables to merge with the variables specified for the default message (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.
endpointSendConfiguration_titleOverride :: Lens' EndpointSendConfiguration (Maybe Text) Source #
The title or subject line of the message. If specified, this value overrides the default message title or subject line.