| 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.SMSMessage
Description
Synopsis
- data SMSMessage = SMSMessage' {}
- newSMSMessage :: SMSMessage
- sMSMessage_body :: Lens' SMSMessage (Maybe Text)
- sMSMessage_entityId :: Lens' SMSMessage (Maybe Text)
- sMSMessage_keyword :: Lens' SMSMessage (Maybe Text)
- sMSMessage_mediaUrl :: Lens' SMSMessage (Maybe Text)
- sMSMessage_messageType :: Lens' SMSMessage (Maybe MessageType)
- sMSMessage_originationNumber :: Lens' SMSMessage (Maybe Text)
- sMSMessage_senderId :: Lens' SMSMessage (Maybe Text)
- sMSMessage_substitutions :: Lens' SMSMessage (Maybe (HashMap Text [Text]))
- sMSMessage_templateId :: Lens' SMSMessage (Maybe Text)
Documentation
data SMSMessage Source #
Specifies the default settings for a one-time SMS message that's sent directly to an endpoint.
See: newSMSMessage smart constructor.
Constructors
| SMSMessage' | |
Fields
| |
Instances
newSMSMessage :: SMSMessage Source #
Create a value of SMSMessage 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:body:SMSMessage', sMSMessage_body - The body of the SMS message.
$sel:entityId:SMSMessage', sMSMessage_entityId - The entity ID or Principal Entity (PE) id received from the regulatory
body for sending SMS in your country.
$sel:keyword:SMSMessage', sMSMessage_keyword - The SMS program name that you provided to AWS Support when you requested
your dedicated number.
$sel:mediaUrl:SMSMessage', sMSMessage_mediaUrl - This field is reserved for future use.
$sel:messageType:SMSMessage', sMSMessage_messageType - The SMS message type. Valid values are TRANSACTIONAL (for messages that
are critical or time-sensitive, such as a one-time passwords) and
PROMOTIONAL (for messsages that aren't critical or time-sensitive, such
as marketing messages).
$sel:originationNumber:SMSMessage', sMSMessage_originationNumber - The number to send the SMS message from. This value should be one of the
dedicated long or short codes that's assigned to your AWS account. If
you don't specify a long or short code, Amazon Pinpoint assigns a
random long code to the SMS message and sends the message from that
code.
$sel:senderId:SMSMessage', sMSMessage_senderId - The sender ID to display as the sender of the message on a recipient's
device. Support for sender IDs varies by country or region.
$sel:substitutions:SMSMessage', sMSMessage_substitutions - The message variables to use in the SMS message. You can override the
default variables with individual address variables.
$sel:templateId:SMSMessage', sMSMessage_templateId - The template ID received from the regulatory body for sending SMS in
your country.
sMSMessage_body :: Lens' SMSMessage (Maybe Text) Source #
The body of the SMS message.
sMSMessage_entityId :: Lens' SMSMessage (Maybe Text) Source #
The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
sMSMessage_keyword :: Lens' SMSMessage (Maybe Text) Source #
The SMS program name that you provided to AWS Support when you requested your dedicated number.
sMSMessage_mediaUrl :: Lens' SMSMessage (Maybe Text) Source #
This field is reserved for future use.
sMSMessage_messageType :: Lens' SMSMessage (Maybe MessageType) Source #
The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).
sMSMessage_originationNumber :: Lens' SMSMessage (Maybe Text) Source #
The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.
sMSMessage_senderId :: Lens' SMSMessage (Maybe Text) Source #
The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.
sMSMessage_substitutions :: Lens' SMSMessage (Maybe (HashMap Text [Text])) Source #
The message variables to use in the SMS message. You can override the default variables with individual address variables.
sMSMessage_templateId :: Lens' SMSMessage (Maybe Text) Source #
The template ID received from the regulatory body for sending SMS in your country.