| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.SQS.ChangeMessageVisibilityBatch
Description
Changes the visibility timeout of multiple messages. This is a batch version of The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility . requests with each ChangeMessageVisibility 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 .
Synopsis
- 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 #
Arguments
| :: Text | |
| -> ChangeMessageVisibilityBatch |
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 whose messages' visibility is changed. 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.
Instances
Request Lenses
cmvbQueueURL :: Lens' ChangeMessageVisibilityBatch Text Source #
The URL of the Amazon SQS queue whose messages' visibility is changed. 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 #
Arguments
| :: Int | |
| -> ChangeMessageVisibilityBatchResponse |
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 ofitems.ChangeMessageVisibilityBatchResultEntrycmvbrsFailed- A list ofitems.BatchResultErrorEntry
data ChangeMessageVisibilityBatchResponse Source #
For each message in the batch, the response contains a tag if the message succeeds or a ChangeMessageVisibilityBatchResultEntry tag if the message fails.BatchResultErrorEntry
See: changeMessageVisibilityBatchResponse smart constructor.
Instances
Response Lenses
cmvbrsResponseStatus :: Lens' ChangeMessageVisibilityBatchResponse Int Source #
- - | The response status code.
cmvbrsSuccessful :: Lens' ChangeMessageVisibilityBatchResponse [ChangeMessageVisibilityBatchResultEntry] Source #
A list of items.ChangeMessageVisibilityBatchResultEntry
cmvbrsFailed :: Lens' ChangeMessageVisibilityBatchResponse [BatchResultErrorEntry] Source #
A list of items.BatchResultErrorEntry