Sends a templated text message through a notify configuration to a recipient's phone number¶
Description¶
Sends a templated text message through a notify configuration to a recipient's phone number.
Usage¶
pinpointsmsvoicev2_send_notify_text_message(NotifyConfigurationId,
DestinationPhoneNumber, TemplateId, TemplateVariables, TimeToLive,
Context, ConfigurationSetName, DryRun, MessageFeedbackEnabled)
Arguments¶
-
NotifyConfigurationId[required] The unique identifier of the notify configuration to use for sending the message. This can be either the NotifyConfigurationId or NotifyConfigurationArn.
-
DestinationPhoneNumber[required] The destination phone number in E.164 format.
-
TemplateIdThe unique identifier of the template to use for the message.
-
TemplateVariables[required] A map of template variable names and their values. All variable values are passed as strings regardless of the declared variable type. For example, pass
INTEGERvalues as"42"andBOOLEANvalues as"true"or"false". -
TimeToLiveHow long the text message is valid for, in seconds. By default this is 72 hours.
-
ContextYou can specify custom data in this field. If you do, that data is logged to the event destination.
-
ConfigurationSetNameThe name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
-
DryRunWhen set to true, the message is checked and validated, but isn't sent to the end recipient.
-
MessageFeedbackEnabledSet to true to enable message feedback for the message. When a user receives the message you need to update the message status using
put_message_feedback.
Value¶
A list with the following syntax: