Table of Contents

Class SNSOptions

Namespace
AWS.Messaging.Publishers.SNS
Assembly
AWS.Messaging.dll

This class contains additional properties that can be set while publishing a message to an SNS topic.

public class SNSOptions
Inheritance
SNSOptions

Properties

MessageAttributes

Each message attribute consists of a Name, Type, and Value. For more information, see the Amazon SNS developer guide.

public Dictionary<string, MessageAttributeValue>? MessageAttributes { get; set; }

Property Value

Dictionary<string, MessageAttributeValue>

MessageDeduplicationId

This parameter applies only to FIFO(first-in-first-out) topics and can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (

!"#$%&'()*+,-./:;<=>?@[]^_`{|}~
). Every message must have a unique MessageDeduplicationId, which is a token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any message sent with the same MessageDeduplicationId during the 5-minute deduplication interval is treated as a duplicate. If the topic has ContentBasedDeduplication enabled, the system generates a MessageDeduplicationId based on the contents of the message. If ContentBasedDeduplication is disabled, then the value of MessageDeduplicationId must be provided explicitly. Your MessageDeduplicationId overrides the generated one.
public string? MessageDeduplicationId { get; set; }

Property Value

string

MessageGroupId

This parameter applies only to FIFO(first-in-first-out) topics and can contain up to 128 alphanumeric characters(a-z, A-Z, 0-9) and punctuation (

!"#$%&'()*+,-./:;<=>?@[]^_`{|}~
). The MessageGroupId is a tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). Every message must include a MessageGroupId.
public string? MessageGroupId { get; set; }

Property Value

string

OverrideClient

An alternative SNS client that can be used to publish a specific message, instead of the client provided by the registered IAWSClientProvider implementation.

public IAmazonSimpleNotificationService? OverrideClient { get; set; }

Property Value

IAmazonSimpleNotificationService

Subject

Subjects must be ASCII text that begins with a letter, number, or punctuation mark and must not include line breaks or control characters. It must be less than 100 characters long.

public string? Subject { get; set; }

Property Value

string

TopicArn

The SNS Topic Arn

public string? TopicArn { get; set; }

Property Value

string