amazonka-iot-dataplane-1.4.3: 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.UpdateThingShadow

Contents

Description

Updates the thing shadow for the specified thing.

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

Synopsis

Creating a Request

updateThingShadow Source #

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

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

data UpdateThingShadow Source #

The input for the UpdateThingShadow operation.

See: updateThingShadow smart constructor.

Instances

Eq UpdateThingShadow Source # 
Data UpdateThingShadow Source # 

Methods

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

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

toConstr :: UpdateThingShadow -> Constr #

dataTypeOf :: UpdateThingShadow -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateThingShadow Source # 
Generic UpdateThingShadow Source # 
Hashable UpdateThingShadow Source # 
NFData UpdateThingShadow Source # 

Methods

rnf :: UpdateThingShadow -> () #

AWSRequest UpdateThingShadow Source # 
ToBody UpdateThingShadow Source # 
ToQuery UpdateThingShadow Source # 
ToPath UpdateThingShadow Source # 
ToHeaders UpdateThingShadow Source # 
type Rep UpdateThingShadow Source # 
type Rep UpdateThingShadow = D1 (MetaData "UpdateThingShadow" "Network.AWS.IoTDataPlane.UpdateThingShadow" "amazonka-iot-dataplane-1.4.3-KFZ79aINUv82zTFgaG3anN" False) (C1 (MetaCons "UpdateThingShadow'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_utsThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_utsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (HashMap Text Value)))))
type Rs UpdateThingShadow Source # 

Request Lenses

utsThingName :: Lens' UpdateThingShadow Text Source #

The name of the thing.

utsPayload :: Lens' UpdateThingShadow (HashMap Text Value) Source #

The state information, in JSON format.

Destructuring the Response

updateThingShadowResponse Source #

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

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

data UpdateThingShadowResponse Source #

The output from the UpdateThingShadow operation.

See: updateThingShadowResponse smart constructor.

Instances

Eq UpdateThingShadowResponse Source # 
Data UpdateThingShadowResponse Source # 

Methods

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

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

toConstr :: UpdateThingShadowResponse -> Constr #

dataTypeOf :: UpdateThingShadowResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateThingShadowResponse Source # 
Generic UpdateThingShadowResponse Source # 
NFData UpdateThingShadowResponse Source # 
type Rep UpdateThingShadowResponse Source # 
type Rep UpdateThingShadowResponse = D1 (MetaData "UpdateThingShadowResponse" "Network.AWS.IoTDataPlane.UpdateThingShadow" "amazonka-iot-dataplane-1.4.3-KFZ79aINUv82zTFgaG3anN" False) (C1 (MetaCons "UpdateThingShadowResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_utsrsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (HashMap Text Value)))) (S1 (MetaSel (Just Symbol "_utsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

utsrsPayload :: Lens' UpdateThingShadowResponse (Maybe (HashMap Text Value)) Source #

The state information, in JSON format.