amazonka-iot-dataplane-1.4.1: 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.GetThingShadow

Contents

Description

Gets the thing shadow for the specified thing.

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

Synopsis

Creating a Request

getThingShadow Source #

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

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

data GetThingShadow Source #

The input for the GetThingShadow operation.

See: getThingShadow smart constructor.

Instances

Eq GetThingShadow Source # 
Data GetThingShadow Source # 

Methods

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

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

toConstr :: GetThingShadow -> Constr #

dataTypeOf :: GetThingShadow -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetThingShadow Source # 
Show GetThingShadow Source # 
Generic GetThingShadow Source # 

Associated Types

type Rep GetThingShadow :: * -> * #

Hashable GetThingShadow Source # 
NFData GetThingShadow Source # 

Methods

rnf :: GetThingShadow -> () #

AWSRequest GetThingShadow Source # 
ToQuery GetThingShadow Source # 
ToPath GetThingShadow Source # 
ToHeaders GetThingShadow Source # 
type Rep GetThingShadow Source # 
type Rep GetThingShadow = D1 (MetaData "GetThingShadow" "Network.AWS.IoTDataPlane.GetThingShadow" "amazonka-iot-dataplane-1.4.1-LMxVo60XeGZFYufF1Zo6JO" True) (C1 (MetaCons "GetThingShadow'" PrefixI True) (S1 (MetaSel (Just Symbol "_gtsThingName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetThingShadow Source # 

Request Lenses

gtsThingName :: Lens' GetThingShadow Text Source #

The name of the thing.

Destructuring the Response

getThingShadowResponse Source #

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

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

data GetThingShadowResponse Source #

The output from the GetThingShadow operation.

See: getThingShadowResponse smart constructor.

Instances

Eq GetThingShadowResponse Source # 
Data GetThingShadowResponse Source # 

Methods

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

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

toConstr :: GetThingShadowResponse -> Constr #

dataTypeOf :: GetThingShadowResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetThingShadowResponse Source # 
Generic GetThingShadowResponse Source # 
NFData GetThingShadowResponse Source # 

Methods

rnf :: GetThingShadowResponse -> () #

type Rep GetThingShadowResponse Source # 
type Rep GetThingShadowResponse = D1 (MetaData "GetThingShadowResponse" "Network.AWS.IoTDataPlane.GetThingShadow" "amazonka-iot-dataplane-1.4.1-LMxVo60XeGZFYufF1Zo6JO" False) (C1 (MetaCons "GetThingShadowResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gtsrsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (HashMap Text Value)))) (S1 (MetaSel (Just Symbol "_gtsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gtsrsPayload :: Lens' GetThingShadowResponse (Maybe (HashMap Text Value)) Source #

The state information, in JSON format.