Class SnsBuilder

Assembly: redb.Route.Sqs.dll

Fluent builder for an sns:// endpoint URI.

public sealed class SnsBuilder

Inheritance

Object→SnsBuilder

Methods

AutoCreateTopic(bool)

Create the topic if it does not exist.

public SnsBuilder AutoCreateTopic(bool value = true)

Build()

Builds the sns:// URI.

public string Build()

ConnectionFactory(string)

Reference a pre-registered connection factory by name.

public SnsBuilder ConnectionFactory(string name)

Credentials(string, string)

Static access + secret keys.

public SnsBuilder Credentials(string accessKey, string secretKey)

MessageDeduplicationId(string)

FIFO deduplication id.

public SnsBuilder MessageDeduplicationId(string value)

MessageGroupId(string)

FIFO message group id.

public SnsBuilder MessageGroupId(string value)

MessageStructure(string)

Message structure (json for per-protocol payloads).

public SnsBuilder MessageStructure(string structure)

Param(string, string)

Sets an arbitrary URI parameter not covered by a typed method.

public SnsBuilder Param(string key, string value)

Profile(string)

Named AWS profile.

public SnsBuilder Profile(string profileName)

RawMessageDelivery(bool)

On the auto-created SNS→SQS subscription, enable raw message delivery — the queue receives the

public SnsBuilder RawMessageDelivery(bool value = true)

Region(string)

AWS region (e.g. us-east-1).

public SnsBuilder Region(string region)

ServiceUrl(string)

Explicit service URL (LocalStack).

public SnsBuilder ServiceUrl(string url)

Subject(string)

Message subject (email delivery; constant or ${...}).

public SnsBuilder Subject(string subject)

SubscribeSnsToSqs(string)

Subscribe the given SQS queue ARN to this topic at start.

public SnsBuilder SubscribeSnsToSqs(string queueArn)

TopicArn(string)

Explicit topic ARN (skips name resolution).

public SnsBuilder TopicArn(string arn)

ToString()

Returns a string that represents the current object.

public override string ToString()

Transacted(bool)

Sets transacted: true requires an enclosing .Transacted() block, false publishes at

public SnsBuilder Transacted(bool value = true)

UseDefaultCredentials(bool)

Use the default AWS credential provider chain.

public SnsBuilder UseDefaultCredentials(bool value = true)