libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTEventsData.BatchPutMessage

Description

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

Creating a Request

data BatchPutMessage Source #

See: newBatchPutMessage smart constructor.

Constructors

BatchPutMessage' 

Fields

  • messages :: NonEmpty Message

    The list of messages to send. Each message has the following format: '{ "messageId": "string", "inputName": "string", "payload": "string"}'

Instances

Instances details
Eq BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Read BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Show BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Generic BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Associated Types

type Rep BatchPutMessage :: Type -> Type #

NFData BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Methods

rnf :: BatchPutMessage -> () #

Hashable BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

ToJSON BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

AWSRequest BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Associated Types

type AWSResponse BatchPutMessage #

ToHeaders BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

ToPath BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

ToQuery BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

type Rep BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

type Rep BatchPutMessage = D1 ('MetaData "BatchPutMessage" "Amazonka.IoTEventsData.BatchPutMessage" "libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data" 'False) (C1 ('MetaCons "BatchPutMessage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Message))))
type AWSResponse BatchPutMessage Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

newBatchPutMessage Source #

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.

Constructors

BatchPutMessageResponse' 

Fields

Instances

Instances details
Eq BatchPutMessageResponse Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Read BatchPutMessageResponse Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Show BatchPutMessageResponse Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Generic BatchPutMessageResponse Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Associated Types

type Rep BatchPutMessageResponse :: Type -> Type #

NFData BatchPutMessageResponse Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

Methods

rnf :: BatchPutMessageResponse -> () #

type Rep BatchPutMessageResponse Source # 
Instance details

Defined in Amazonka.IoTEventsData.BatchPutMessage

type Rep BatchPutMessageResponse = D1 ('MetaData "BatchPutMessageResponse" "Amazonka.IoTEventsData.BatchPutMessage" "libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data" 'False) (C1 ('MetaCons "BatchPutMessageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "batchPutMessageErrorEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BatchPutMessageErrorEntry])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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