AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Pinpoint.Model.SMSMessage

Namespace: Amazon.Pinpoint.Model
Assembly: AWSSDK.Pinpoint.dll
Version: 3.x.y.z

Syntax

C#
public class SMSMessage

The SMSMessage type exposes the following members

Constructors

NameDescription
Public Method SMSMessage()

Properties

NameTypeDescription
Public Property Body System.String

Gets and sets the property Body.

The body of the SMS message.

Public Property 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.

Public Property 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.

Public Property MediaUrl System.String

Gets and sets the property MediaUrl.

This field is reserved for future use.

Public Property 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).

Public Property 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.

Public Property 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.

Public Property 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.

Public Property TemplateId System.String

Gets and sets the property TemplateId.

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

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5