amazonka-iot-1.4.4: Amazon IoT 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.IoT.DescribeThing

Contents

Description

Gets information about the specified thing.

Synopsis

Creating a Request

describeThing Source #

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

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

data DescribeThing Source #

The input for the DescribeThing operation.

See: describeThing smart constructor.

Instances

Eq DescribeThing Source # 
Data DescribeThing Source # 

Methods

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

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

toConstr :: DescribeThing -> Constr #

dataTypeOf :: DescribeThing -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeThing Source # 
Show DescribeThing Source # 
Generic DescribeThing Source # 

Associated Types

type Rep DescribeThing :: * -> * #

Hashable DescribeThing Source # 
NFData DescribeThing Source # 

Methods

rnf :: DescribeThing -> () #

AWSRequest DescribeThing Source # 
ToPath DescribeThing Source # 
ToHeaders DescribeThing Source # 
ToQuery DescribeThing Source # 
type Rep DescribeThing Source # 
type Rep DescribeThing = D1 (MetaData "DescribeThing" "Network.AWS.IoT.DescribeThing" "amazonka-iot-1.4.4-DeZW0JwAfGmFb7dFqhSZgL" True) (C1 (MetaCons "DescribeThing'" PrefixI True) (S1 (MetaSel (Just Symbol "_dThingName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribeThing Source # 

Request Lenses

dThingName :: Lens' DescribeThing Text Source #

The name of the thing.

Destructuring the Response

describeThingResponse Source #

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

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

data DescribeThingResponse Source #

The output from the DescribeThing operation.

See: describeThingResponse smart constructor.

Instances

Eq DescribeThingResponse Source # 
Data DescribeThingResponse Source # 

Methods

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

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

toConstr :: DescribeThingResponse -> Constr #

dataTypeOf :: DescribeThingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeThingResponse Source # 
Show DescribeThingResponse Source # 
Generic DescribeThingResponse Source # 
NFData DescribeThingResponse Source # 

Methods

rnf :: DescribeThingResponse -> () #

type Rep DescribeThingResponse Source # 
type Rep DescribeThingResponse = D1 (MetaData "DescribeThingResponse" "Network.AWS.IoT.DescribeThing" "amazonka-iot-1.4.4-DeZW0JwAfGmFb7dFqhSZgL" False) (C1 (MetaCons "DescribeThingResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsDefaultClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dtrsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))))) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer))) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))))

Response Lenses

dtrsVersion :: Lens' DescribeThingResponse (Maybe Integer) Source #

The current version of the thing record in the registry.

To avoid unintentional changes to the information in the registry, you can pass the version information in the expectedVersion parameter of the UpdateThing and DeleteThing calls.