aws sqs receive-message
Retrieves one or more messages (up to 10), from the specified queue. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--attribute-namesThis parameter has been discontinued but will be supported for backward compatibility.--max-number-of-messagesThe maximum number of messages to return.--message-attribute-namesThe name of the message attribute, where N is the index.--message-system-attribute-namesA list of attributes that need to be returned along with each message.--queue-urlThe URL of the Amazon SQS queue from which messages are received.--receive-request-attempt-idThis parameter applies only to FIFO (first-in-first-out) queues.--visibility-timeoutThe duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request.--wait-time-secondsThe duration (in seconds) for which the call waits for a message to arrive in the queue before returning.