PublishRequest.MessageStructure Property

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Set MessageStructure to json if you want to send a different message for each protocol. For example, using one publish action, you can send a short message to your SMS subscribers and a longer message to your email subscribers. If you set MessageStructure to json, the value of the Message parameter must:
  • be a syntactically valid JSON object; and
  • contain at least a top-level JSON key of "default" with a value that is a string.
You can define other top-level keys that define the message you want to send to a specific transport protocol (e.g., "http"). For information about sending different messages for each protocol using the AWS Management Console, go to Create Different Messages for Each Protocol in the Amazon Simple Notification Service Getting Started Guide. Valid value: json

Namespace: Amazon.SimpleNotificationService.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public String MessageStructure { get; set; }
Property Value
Type: System.String

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8

.NET for Windows Phone:
Supported in: Window Phone 8