method SnsPublisher.prototype.publish
SnsPublisher.prototype.publish(message: unknown): Promise<string | undefined>

Publish a message to the configured SNS topic.

Parameters

message: unknown

The message payload (serialized to JSON)

Return Type

Promise<string | undefined>

The SNS message ID, or undefined if not available

Usage

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