Skip to main content
Latest
interface ReceiveMessageOptions
import { type ReceiveMessageOptions } from "https://deno.land/x/sqs@0.3.7/mod.ts";

Properties

optional
maxNumberOfMessages: number

The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.

optional
visibilityTimeout: number

The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request.

optional
waitTimeSeconds: number

The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.