amazonka-iot-dataplane-1.6.1: Amazon IoT Data Plane 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.IoTData.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 # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Data UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

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 # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Generic UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadow :: Type -> Type #

Hashable UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

AWSRequest UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Associated Types

type Rs UpdateThingShadow :: Type #

ToBody UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

ToHeaders UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

ToPath UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

ToQuery UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

NFData UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Methods

rnf :: UpdateThingShadow -> () #

type Rep UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

type Rep UpdateThingShadow = D1 (MetaData "UpdateThingShadow" "Network.AWS.IoTData.UpdateThingShadow" "amazonka-iot-dataplane-1.6.1-4HmTDUYZguUGwQtRGWEqiP" False) (C1 (MetaCons "UpdateThingShadow'" PrefixI True) (S1 (MetaSel (Just "_utsThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_utsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString)))
type Rs UpdateThingShadow Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Request Lenses

utsThingName :: Lens' UpdateThingShadow Text Source #

The name of the thing.

utsPayload :: Lens' UpdateThingShadow ByteString 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 # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Data UpdateThingShadowResponse Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

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 # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Generic UpdateThingShadowResponse Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadowResponse :: Type -> Type #

NFData UpdateThingShadowResponse Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

type Rep UpdateThingShadowResponse Source # 
Instance details

Defined in Network.AWS.IoTData.UpdateThingShadow

type Rep UpdateThingShadowResponse = D1 (MetaData "UpdateThingShadowResponse" "Network.AWS.IoTData.UpdateThingShadow" "amazonka-iot-dataplane-1.6.1-4HmTDUYZguUGwQtRGWEqiP" False) (C1 (MetaCons "UpdateThingShadowResponse'" PrefixI True) (S1 (MetaSel (Just "_utsrsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 (MetaSel (Just "_utsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

utsrsPayload :: Lens' UpdateThingShadowResponse (Maybe ByteString) Source #

The state information, in JSON format.