Copyright | (c) 2013-2015 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.
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.
Some API actions take lists of parameters. These lists are specified
using the 'param.n' notation. Values of n
are integers starting from
1. For example, a parameter list with two elements looks like this:
'&Attribute.1=this'
'&Attribute.2=that'
See: AWS API Reference for ChangeMessageVisibilityBatch.
- 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:
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.
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:
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.