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.SMSMessage

Description

 
Synopsis

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

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

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

  • originationNumber :: Maybe Text

    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.

  • templateId :: Maybe Text

    The template ID received from the regulatory body for sending SMS in your country.

  • body :: Maybe Text

    The body of the SMS message.

  • messageType :: Maybe 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).

  • senderId :: Maybe Text

    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.

  • mediaUrl :: Maybe Text

    This field is reserved for future use.

  • entityId :: Maybe Text

    The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.

  • keyword :: Maybe Text

    The SMS program name that you provided to AWS Support when you requested your dedicated number.

Instances

Instances details
Eq SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

Read SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

Show SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

Generic SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

Associated Types

type Rep SMSMessage :: Type -> Type #

NFData SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

Methods

rnf :: SMSMessage -> () #

Hashable SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

ToJSON SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

type Rep SMSMessage Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SMSMessage

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:substitutions:SMSMessage', sMSMessage_substitutions - The message variables to use in the SMS message. You can override the default variables with individual address variables.

$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:templateId:SMSMessage', sMSMessage_templateId - The template ID received from the regulatory body for sending SMS in your country.

$sel:body:SMSMessage', sMSMessage_body - The body of the SMS message.

$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: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:mediaUrl:SMSMessage', sMSMessage_mediaUrl - This field is reserved for future use.

$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.

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_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_templateId :: Lens' SMSMessage (Maybe Text) Source #

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_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_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_mediaUrl :: Lens' SMSMessage (Maybe Text) Source #

This field is reserved for future use.

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.