| 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 |
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: The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification:
#x9 | #xA | #xD | [#x20 to #xD7FF ] | [#xE000 to #xFFFD ] | [#x10000 to #x10FFFF ]
For more information, see RFC1321 . If you send any characters that aren't included in this list, your request will be rejected.
If you don't specify the DelaySeconds parameter for an entry, Amazon SQS uses the default for the queue.
&Attribute.1=this
&Attribute.2=that
- 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 take action on. Queue URLs are case-sensitive.smbEntries- A list ofSendMessageBatchRequestEntryitems.
data SendMessageBatch Source #
See: sendMessageBatch smart constructor.
Instances
Request Lenses
smbQueueURL :: Lens' SendMessageBatch Text Source #
The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.
smbEntries :: Lens' SendMessageBatch [SendMessageBatchRequestEntry] Source #
A list of SendMessageBatchRequestEntry items.
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 ofSendMessageBatchResultEntryitems.smbrsFailed- A list ofBatchResultErrorEntryitems with the error detail about each message that could not be enqueued.
data SendMessageBatchResponse Source #
For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails.
See: sendMessageBatchResponse smart constructor.
Response Lenses
smbrsResponseStatus :: Lens' SendMessageBatchResponse Int Source #
- - | The response status code.
smbrsSuccessful :: Lens' SendMessageBatchResponse [SendMessageBatchResultEntry] Source #
A list of SendMessageBatchResultEntry items.
smbrsFailed :: Lens' SendMessageBatchResponse [BatchResultErrorEntry] Source #
A list of BatchResultErrorEntry items with the error detail about each message that could not be enqueued.