Represents a publisher that can publish messages to an SNS topic.

Constructors

Methods

Constructors

Methods

  • Publishes a message on a specified topic.

    Parameters

    • messageObject: any

      The message object to be published.

    • topic: string

      The ARN of the topic to publish the message to.

    • OptionaladditionalProps: object

      Additional properties to include in the publish command.

    Returns Promise<undefined | PublishCommandOutput>

    • A promise that resolves to the response from the publish command.