amazonka-iot-dataplane-1.4.4: Amazon IoT Data Plane SDK.

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

Network.AWS.IoTDataPlane.Publish

Contents

Description

Publishes state information.

For more information, see HTTP Protocol in the AWS IoT Developer Guide.

Synopsis

Creating a Request

publish Source #

Arguments

:: Text

pTopic

-> Publish 

Creates a value of Publish with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data Publish Source #

The input for the Publish operation.

See: publish smart constructor.

Instances

Eq Publish Source # 

Methods

(==) :: Publish -> Publish -> Bool #

(/=) :: Publish -> Publish -> Bool #

Data Publish Source # 

Methods

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

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

toConstr :: Publish -> Constr #

dataTypeOf :: Publish -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Publish Source # 
Generic Publish Source # 

Associated Types

type Rep Publish :: * -> * #

Methods

from :: Publish -> Rep Publish x #

to :: Rep Publish x -> Publish #

Hashable Publish Source # 

Methods

hashWithSalt :: Int -> Publish -> Int #

hash :: Publish -> Int #

NFData Publish Source # 

Methods

rnf :: Publish -> () #

AWSRequest Publish Source # 

Associated Types

type Rs Publish :: * #

ToBody Publish Source # 

Methods

toBody :: Publish -> RqBody #

ToPath Publish Source # 

Methods

toPath :: Publish -> ByteString #

ToHeaders Publish Source # 

Methods

toHeaders :: Publish -> [Header] #

ToQuery Publish Source # 
type Rep Publish Source # 
type Rep Publish = D1 (MetaData "Publish" "Network.AWS.IoTDataPlane.Publish" "amazonka-iot-dataplane-1.4.4-H7s22xbLlaK2Yur8yrS6UV" False) (C1 (MetaCons "Publish'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (HashMap Text Value)))) ((:*:) (S1 (MetaSel (Just Symbol "_pQos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_pTopic") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs Publish Source # 

Request Lenses

pPayload :: Lens' Publish (Maybe (HashMap Text Value)) Source #

The state information, in JSON format.

pQos :: Lens' Publish (Maybe Natural) Source #

The Quality of Service (QoS) level.

pTopic :: Lens' Publish Text Source #

The name of the MQTT topic.

Destructuring the Response

publishResponse :: PublishResponse Source #

Creates a value of PublishResponse with the minimum fields required to make a request.

data PublishResponse Source #

See: publishResponse smart constructor.

Instances

Eq PublishResponse Source # 
Data PublishResponse Source # 

Methods

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

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

toConstr :: PublishResponse -> Constr #

dataTypeOf :: PublishResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PublishResponse Source # 
Show PublishResponse Source # 
Generic PublishResponse Source # 
NFData PublishResponse Source # 

Methods

rnf :: PublishResponse -> () #

type Rep PublishResponse Source # 
type Rep PublishResponse = D1 (MetaData "PublishResponse" "Network.AWS.IoTDataPlane.Publish" "amazonka-iot-dataplane-1.4.4-H7s22xbLlaK2Yur8yrS6UV" False) (C1 (MetaCons "PublishResponse'" PrefixI False) U1)