Send Text Message
pinpointsmsvoicev2_send_text_message | R Documentation |
Creates a new text message and sends it to a recipient's phone number¶
Description¶
Creates a new text message and sends it to a recipient's phone number. SendTextMessage only sends an SMS message to one recipient each time it is invoked.
SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the destination country of your messages, as well as the type of phone number (origination number) that you use to send the message. For more information about MPS, see Message Parts per Second (MPS) limits in the AWS End User Messaging SMS User Guide.
Usage¶
pinpointsmsvoicev2_send_text_message(DestinationPhoneNumber,
OriginationIdentity, MessageBody, MessageType, Keyword,
ConfigurationSetName, MaxPrice, TimeToLive, Context,
DestinationCountryParameters, DryRun, ProtectConfigurationId,
MessageFeedbackEnabled)
Arguments¶
DestinationPhoneNumber |
[required] The destination phone number in E.164 format. |
OriginationIdentity |
The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn. If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN). |
MessageBody |
The body of the text message. |
MessageType |
The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive. |
Keyword |
When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute. |
ConfigurationSetName |
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn. |
MaxPrice |
The maximum amount that you want to spend, in US dollars, per
each text message. If the calculated amount to send the text message is
greater than |
TimeToLive |
How long the text message is valid for, in seconds. By default
this is 72 hours. If the messages isn't handed off before the TTL
expires we stop attempting to hand off the message and return
|
Context |
You can specify custom data in this field. If you do, that data is logged to the event destination. |
DestinationCountryParameters |
This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.
|
DryRun |
When set to true, the message is checked and validated, but isn't
sent to the end recipient. You are not charged for using
The Message Parts per Second (MPS) limit when using
|
ProtectConfigurationId |
The unique identifier for the protect configuration. |
MessageFeedbackEnabled |
Set to true to enable message feedback for the message. When a
user receives the message you need to update the message status using
|
Value¶
A list with the following syntax:
list(
MessageId = "string"
)
Request syntax¶
svc$send_text_message(
DestinationPhoneNumber = "string",
OriginationIdentity = "string",
MessageBody = "string",
MessageType = "TRANSACTIONAL"|"PROMOTIONAL",
Keyword = "string",
ConfigurationSetName = "string",
MaxPrice = "string",
TimeToLive = 123,
Context = list(
"string"
),
DestinationCountryParameters = list(
"string"
),
DryRun = TRUE|FALSE,
ProtectConfigurationId = "string",
MessageFeedbackEnabled = TRUE|FALSE
)