amazonka-iot-analytics-1.6.0: Amazon IoT Analytics SDK.

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

Network.AWS.IoTAnalytics.BatchPutMessage

Contents

Description

Sends messages to a channel.

Synopsis

Creating a Request

batchPutMessage Source #

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

Eq BatchPutMessage Source # 
Data BatchPutMessage Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchPutMessage -> c BatchPutMessage #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchPutMessage #

toConstr :: BatchPutMessage -> Constr #

dataTypeOf :: BatchPutMessage -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BatchPutMessage) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchPutMessage) #

gmapT :: (forall b. Data b => b -> b) -> BatchPutMessage -> BatchPutMessage #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchPutMessage -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchPutMessage -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchPutMessage -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchPutMessage -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchPutMessage -> m BatchPutMessage #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchPutMessage -> m BatchPutMessage #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchPutMessage -> m BatchPutMessage #

Read BatchPutMessage Source # 
Show BatchPutMessage Source # 
Generic BatchPutMessage Source # 
Hashable BatchPutMessage Source # 
ToJSON BatchPutMessage Source # 
NFData BatchPutMessage Source # 

Methods

rnf :: BatchPutMessage -> () #

AWSRequest BatchPutMessage Source # 
ToHeaders BatchPutMessage Source # 
ToPath BatchPutMessage Source # 
ToQuery BatchPutMessage Source # 
type Rep BatchPutMessage Source # 
type Rep BatchPutMessage = D1 * (MetaData "BatchPutMessage" "Network.AWS.IoTAnalytics.BatchPutMessage" "amazonka-iot-analytics-1.6.0-J5q8AVx26VCAr48eVqZbw0" False) (C1 * (MetaCons "BatchPutMessage'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bpmChannelName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_bpmMessages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Message]))))
type Rs BatchPutMessage Source # 

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:

data BatchPutMessageResponse Source #

See: batchPutMessageResponse smart constructor.

Instances

Eq BatchPutMessageResponse Source # 
Data BatchPutMessageResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchPutMessageResponse -> c BatchPutMessageResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchPutMessageResponse #

toConstr :: BatchPutMessageResponse -> Constr #

dataTypeOf :: BatchPutMessageResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BatchPutMessageResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchPutMessageResponse) #

gmapT :: (forall b. Data b => b -> b) -> BatchPutMessageResponse -> BatchPutMessageResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchPutMessageResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchPutMessageResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchPutMessageResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchPutMessageResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchPutMessageResponse -> m BatchPutMessageResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchPutMessageResponse -> m BatchPutMessageResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchPutMessageResponse -> m BatchPutMessageResponse #

Read BatchPutMessageResponse Source # 
Show BatchPutMessageResponse Source # 
Generic BatchPutMessageResponse Source # 
NFData BatchPutMessageResponse Source # 

Methods

rnf :: BatchPutMessageResponse -> () #

type Rep BatchPutMessageResponse Source # 
type Rep BatchPutMessageResponse = D1 * (MetaData "BatchPutMessageResponse" "Network.AWS.IoTAnalytics.BatchPutMessage" "amazonka-iot-analytics-1.6.0-J5q8AVx26VCAr48eVqZbw0" False) (C1 * (MetaCons "BatchPutMessageResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bpmrsBatchPutMessageErrorEntries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [BatchPutMessageErrorEntry]))) (S1 * (MetaSel (Just Symbol "_bpmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

bpmrsBatchPutMessageErrorEntries :: Lens' BatchPutMessageResponse [BatchPutMessageErrorEntry] Source #

A list of any errors encountered when sending the messages to the channel.