# Amazon SQS - Receive Messages Action
This action allows you to pull up to 10 messages from a chosen SQS queue. This comes in handy with recipes where you need to pull messages midway through a recipe.
# Input fields
Field name | Description |
---|---|
Queue | The queue to pull messages from. |
Select attributes | A list of attributes that need to be returned along with each message. |
Max number of messages | 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. |
Visibility timeout | The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. Maximum allowed is 12 hours. Learn more about visibility timeout. |
Wait time (seconds) | Value (in seconds) must be between 0 to 20. 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. |
# Output fields
The output to this action is a list of messages.
Field name | Description |
---|---|
Request ID | The unique id of the request. |
MD5 of message attributes | MD5 hash of message attribute |
MD5 of message body | MD5 hash of message body |
MD5 of message system attributes | MD5 hash of message system attribute |
Message ID | The unique id of the message. |
Message body | The message's contents. |
Sequence number | This parameter applies only to FIFO (first-in-first-out) queues. The large, non-consecutive number that Amazon SQS assigns to each message. |
Last updated: 2/25/2022, 2:24:34 AM