AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Specifies the default settings for a one-time SMS message that's sent directly to an endpoint.
Namespace: Amazon.Pinpoint.Model
Assembly: AWSSDK.Pinpoint.dll
Version: 3.x.y.z
public class SMSMessage
The SMSMessage type exposes the following members
Name | Description | |
---|---|---|
SMSMessage() |
Name | Type | Description | |
---|---|---|---|
Body | System.String |
Gets and sets the property Body. The body of the SMS message. |
|
EntityId | System.String |
Gets and sets the property EntityId. The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country. |
|
Keyword | System.String |
Gets and sets the property Keyword. The SMS program name that you provided to AWS Support when you requested your dedicated number. |
|
MediaUrl | System.String |
Gets and sets the property MediaUrl. This field is reserved for future use. |
|
MessageType | Amazon.Pinpoint.MessageType |
Gets and sets the property 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). |
|
OriginationNumber | System.String |
Gets and sets the property 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. |
|
SenderId | System.String |
Gets and sets the property 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. |
|
Substitutions | System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>> |
Gets and sets the property Substitutions. The message variables to use in the SMS message. You can override the default variables with individual address variables. |
|
TemplateId | System.String |
Gets and sets the property TemplateId. The template ID received from the regulatory body for sending SMS in your country. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5