Path: redb-route/redb.Route.Sqs/SnsHeaders.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Sqs/SnsHeaders.cs
----
namespace redb.Route.Sqs;
///
/// Exchange header keys for the SNS transport. All carry the so the producer can
/// forward only genuine user headers as message attributes.
///
public static class SnsHeaders
{
/// Common prefix for all SNS headers.
public const string Prefix = "redbSns.";
/// Topic ARN the message was published to.
public const string TopicArn = Prefix + "topicArn";
/// SNS message id assigned on publish.
public const string MessageId = Prefix + "messageId";
/// Message subject.
public const string Subject = Prefix + "subject";
/// FIFO message group id.
public const string MessageGroupId = Prefix + "messageGroupId";
/// FIFO deduplication id.
public const string MessageDeduplicationId = Prefix + "messageDeduplicationId";
/// FIFO sequence number returned by SNS.
public const string SequenceNumber = Prefix + "sequenceNumber";
/// True if is an SNS framework header (not a user attribute).
public static bool IsSnsHeader(string header) =>
header.StartsWith(Prefix, StringComparison.Ordinal);
}