Item(s) from the queue will be deleted as soon as they're passed to the handler. Use this only if you plan on processing each item only once or have special logic within your handler function to deal with any failure cases.
Create a FIFO queue in order to leverage their benefits (guaranteed order,
deduplication, etc). Note that .fifo will be appended to the name of any
FIFO queues if not included already.
Not required in case the client is only creating and/or populating the queue.
The number of seconds we'll wait for a message with each call to
SQS.receiveMessage. Defaults to the maximum allowed value of 20 seconds.
Invoked whenever we poll the queue and it's empty.
Must be a valid SQS queue name, i.e. only composed of alphanumeric
characters, hyphens (-), and/or underscores (_). The only exception is
for the .fifo suffix on FIFO queues. Note that the entire queue name,
even with a .fifo suffix, must still be 80 characters or less in length.
A user-provided instance of AWS.SQS. If not provided, a default instance
will be used which attempts to use the default profile of the credentials
stored in ~/.aws/credentials and region us-west-2.
The duration in seconds that a message will be 'invisible' to other queue consumers after it starts being processed by the initial consumer. Our default will be 600s (10 minutes).
Generated using TypeDoc
Specify a batch size in order to have your handler invoked with an array of items. If
batchSizeisn't specified, your handler will be invoked with only a single (non-array) queue item at a time.