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 |
Sends messages to a channel.
Synopsis
- batchPutMessage :: Text -> BatchPutMessage
- data BatchPutMessage
- bpmChannelName :: Lens' BatchPutMessage Text
- bpmMessages :: Lens' BatchPutMessage [Message]
- batchPutMessageResponse :: Int -> BatchPutMessageResponse
- data BatchPutMessageResponse
- bpmrsBatchPutMessageErrorEntries :: Lens' BatchPutMessageResponse [BatchPutMessageErrorEntry]
- bpmrsResponseStatus :: Lens' BatchPutMessageResponse Int
Creating a Request
Creates a value of BatchPutMessage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bpmChannelName
- The name of the channel where the messages are sent.bpmMessages
- The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
data BatchPutMessage Source #
See: batchPutMessage
smart constructor.
Instances
Request Lenses
bpmChannelName :: Lens' BatchPutMessage Text Source #
The name of the channel where the messages are sent.
bpmMessages :: Lens' BatchPutMessage [Message] Source #
The list of messages to be sent. Each message has format: '{ "messageId": "string", "payload": "string"}'.
Destructuring the Response
batchPutMessageResponse Source #
Creates a value of BatchPutMessageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bpmrsBatchPutMessageErrorEntries
- A list of any errors encountered when sending the messages to the channel.bpmrsResponseStatus
- -- | The response status code.
data BatchPutMessageResponse Source #
See: batchPutMessageResponse
smart constructor.
Instances
Response Lenses
bpmrsBatchPutMessageErrorEntries :: Lens' BatchPutMessageResponse [BatchPutMessageErrorEntry] Source #
A list of any errors encountered when sending the messages to the channel.
bpmrsResponseStatus :: Lens' BatchPutMessageResponse Int Source #
- - | The response status code.