Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility
. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility
requests with each ChangeMessageVisibilityBatch
action.
Important: Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.
&Attribute.1=this
&Attribute.2=that
- changeMessageVisibilityBatch :: Text -> ChangeMessageVisibilityBatch
- data ChangeMessageVisibilityBatch
- cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text
- cmvbEntries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry]
- changeMessageVisibilityBatchResponse :: Int -> ChangeMessageVisibilityBatchResponse
- data ChangeMessageVisibilityBatchResponse
- cmvbrsResponseStatus :: Lens' ChangeMessageVisibilityBatchResponse Int
- cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry]
- cmvbrsFailed :: Lens' ChangeMessageVisibilityBatchResponse [BatchResultErrorEntry]
Creating a Request
changeMessageVisibilityBatch Source #
Creates a value of ChangeMessageVisibilityBatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmvbQueueURL
- The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.cmvbEntries
- A list of receipt handles of the messages for which the visibility timeout must be changed.
data ChangeMessageVisibilityBatch Source #
See: changeMessageVisibilityBatch
smart constructor.
Request Lenses
cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text Source #
The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.
cmvbEntries :: Lens' ChangeMessageVisibilityBatch [ChangeMessageVisibilityBatchRequestEntry] Source #
A list of receipt handles of the messages for which the visibility timeout must be changed.
Destructuring the Response
changeMessageVisibilityBatchResponse Source #
Creates a value of ChangeMessageVisibilityBatchResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmvbrsResponseStatus
- -- | The response status code.cmvbrsSuccessful
- A list ofChangeMessageVisibilityBatchResultEntry
items.cmvbrsFailed
- A list ofBatchResultErrorEntry
items.
data ChangeMessageVisibilityBatchResponse Source #
For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry
tag if the message succeeds or a BatchResultErrorEntry
tag if the message fails.
See: changeMessageVisibilityBatchResponse
smart constructor.
Response Lenses
cmvbrsResponseStatus :: Lens' ChangeMessageVisibilityBatchResponse Int Source #
- - | The response status code.
cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry] Source #
A list of ChangeMessageVisibilityBatchResultEntry
items.
cmvbrsFailed :: Lens' ChangeMessageVisibilityBatchResponse [BatchResultErrorEntry] Source #
A list of BatchResultErrorEntry
items.