class SnsPublisher
Since 0.1.0

SNS publisher for fan-out messaging.

Publishes messages to a single SNS topic, which fans them out to all subscribed endpoints (SQS queues, HTTP endpoints, Lambda functions, etc.).

Constructors

SnsPublisher(options: SnsPublisherOptions)

Methods

connect(): Promise<void>
disconnect(): Promise<void>
isReady(): boolean
publish(message: unknown): Promise<string | undefined>

Publish a message to the configured SNS topic.

Usage

import { SnsPublisher } from "queue-plugin/src/index.ts";