SQS Producer
    Preparing search index...

    Class Producer

    Index

    Constructors

    Properties

    batchSize: number
    queueUrl: string
    sqs: SQSClient
    region?: string
    create: (options: ProducerOptions) => Producer

    Methods

    • Returns the number of messages in the queue.

      Returns Promise<number>

      A promise that resolves to the number of messages in the queue.

    • Send a message to the queue.

      Parameters

      • messages: string | Message | (string | Message)[]

        A single message or an array of messages.

      Returns Promise<SendMessageBatchResultEntry[]>

      A promise that resolves to the result of the send operation.