Copyright | (c) 2013-2021 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 |
Sends a set of messages to the AWS IoT Events system. Each message
payload is transformed into the input you specify ("inputName"
) and
ingested into any detectors that monitor that input. If multiple
messages are sent, the order in which the messages are processed isn't
guaranteed. To guarantee ordering, you must send messages one at a time
and wait for a successful response.
Synopsis
- data BatchPutMessage = BatchPutMessage' {}
- newBatchPutMessage :: NonEmpty Message -> BatchPutMessage
- batchPutMessage_messages :: Lens' BatchPutMessage (NonEmpty Message)
- data BatchPutMessageResponse = BatchPutMessageResponse' {}
- newBatchPutMessageResponse :: Int -> BatchPutMessageResponse
- batchPutMessageResponse_batchPutMessageErrorEntries :: Lens' BatchPutMessageResponse (Maybe [BatchPutMessageErrorEntry])
- batchPutMessageResponse_httpStatus :: Lens' BatchPutMessageResponse Int
Creating a Request
data BatchPutMessage Source #
See: newBatchPutMessage
smart constructor.
Instances
Create a value of BatchPutMessage
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:messages:BatchPutMessage'
, batchPutMessage_messages
- The list of messages to send. Each message has the following format:
'{ "messageId": "string", "inputName": "string", "payload": "string"}'
Request Lenses
batchPutMessage_messages :: Lens' BatchPutMessage (NonEmpty Message) Source #
The list of messages to send. Each message has the following format:
'{ "messageId": "string", "inputName": "string", "payload": "string"}'
Destructuring the Response
data BatchPutMessageResponse Source #
See: newBatchPutMessageResponse
smart constructor.
BatchPutMessageResponse' | |
|
Instances
newBatchPutMessageResponse Source #
Create a value of BatchPutMessageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:batchPutMessageErrorEntries:BatchPutMessageResponse'
, batchPutMessageResponse_batchPutMessageErrorEntries
- A list of any errors encountered when sending the messages.
$sel:httpStatus:BatchPutMessageResponse'
, batchPutMessageResponse_httpStatus
- The response's http status code.
Response Lenses
batchPutMessageResponse_batchPutMessageErrorEntries :: Lens' BatchPutMessageResponse (Maybe [BatchPutMessageErrorEntry]) Source #
A list of any errors encountered when sending the messages.
batchPutMessageResponse_httpStatus :: Lens' BatchPutMessageResponse Int Source #
The response's http status code.