@creator.co/wapi - v1.8.1
    Preparing search index...

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

    Index

    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.
    • Publishes a message on a specified topic.

      Parameters

      • message: string

        The SMS message to publish.

      • phone: string

        The phone number to publish the message to.

      Returns Promise<undefined | PublishCommandOutput>

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