| 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.SendMessageBatch
Description
Delivers up to ten messages to the specified queue. This is a batch version of For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent.SendMessage .
The result of sending each message is reported individually in the response. 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 .
The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).
Important: A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:
#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF
Any characters not included in this list will be rejected. For more information, see the W3C specification for characters .
If you don't specify the DelaySeconds parameter for an entry, Amazon SQS uses the default value for the queue.
Synopsis
- sendMessageBatch :: Text -> SendMessageBatch
- data SendMessageBatch
- smbQueueURL :: Lens' SendMessageBatch Text
- smbEntries :: Lens' SendMessageBatch [SendMessageBatchRequestEntry]
- sendMessageBatchResponse :: Int -> SendMessageBatchResponse
- data SendMessageBatchResponse
- smbrsResponseStatus :: Lens' SendMessageBatchResponse Int
- smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry]
- smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry]
Creating a Request
Arguments
| :: Text | |
| -> SendMessageBatch |
Creates a value of SendMessageBatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
smbQueueURL- The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs are case-sensitive.smbEntries- A list ofitems.SendMessageBatchRequestEntry
data SendMessageBatch Source #
See: sendMessageBatch smart constructor.
Instances
Request Lenses
smbQueueURL :: Lens' SendMessageBatch Text Source #
The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs are case-sensitive.
smbEntries :: Lens' SendMessageBatch [SendMessageBatchRequestEntry] Source #
A list of items.SendMessageBatchRequestEntry
Destructuring the Response
sendMessageBatchResponse Source #
Arguments
| :: Int | |
| -> SendMessageBatchResponse |
Creates a value of SendMessageBatchResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
smbrsResponseStatus- -- | The response status code.smbrsSuccessful- A list ofitems.SendMessageBatchResultEntrysmbrsFailed- A list ofitems with error details about each message that can't be enqueued.BatchResultErrorEntry
data SendMessageBatchResponse Source #
For each message in the batch, the response contains a tag if the message succeeds or a SendMessageBatchResultEntry tag if the message fails.BatchResultErrorEntry
See: sendMessageBatchResponse smart constructor.
Instances
Response Lenses
smbrsResponseStatus :: Lens' SendMessageBatchResponse Int Source #
- - | The response status code.
smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry] Source #
A list of items.SendMessageBatchResultEntry
smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry] Source #
A list of items with error details about each message that can't be enqueued.BatchResultErrorEntry