Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data EndpointSendConfiguration = EndpointSendConfiguration' {
- substitutions :: Maybe (HashMap Text [Text])
- titleOverride :: Maybe Text
- context :: Maybe (HashMap Text Text)
- rawContent :: Maybe Text
- bodyOverride :: Maybe Text
- newEndpointSendConfiguration :: EndpointSendConfiguration
- endpointSendConfiguration_substitutions :: Lens' EndpointSendConfiguration (Maybe (HashMap Text [Text]))
- endpointSendConfiguration_titleOverride :: Lens' EndpointSendConfiguration (Maybe Text)
- endpointSendConfiguration_context :: Lens' EndpointSendConfiguration (Maybe (HashMap Text Text))
- endpointSendConfiguration_rawContent :: Lens' EndpointSendConfiguration (Maybe Text)
- endpointSendConfiguration_bodyOverride :: 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.
EndpointSendConfiguration' | |
|
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: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.
$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:bodyOverride:EndpointSendConfiguration'
, endpointSendConfiguration_bodyOverride
- The body of the message. If specified, this value overrides the default
message body.
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.
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_bodyOverride :: Lens' EndpointSendConfiguration (Maybe Text) Source #
The body of the message. If specified, this value overrides the default message body.