amazonka-iot-1.6.0: Amazon IoT 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.IoT.RegisterThing

Contents

Description

Provisions a thing.

Synopsis

Creating a Request

registerThing #

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

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

data RegisterThing #

See: registerThing smart constructor.

Instances

Eq RegisterThing # 
Data RegisterThing # 

Methods

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

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

toConstr :: RegisterThing -> Constr #

dataTypeOf :: RegisterThing -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterThing # 
Show RegisterThing # 
Generic RegisterThing # 

Associated Types

type Rep RegisterThing :: * -> * #

Hashable RegisterThing # 
ToJSON RegisterThing # 
NFData RegisterThing # 

Methods

rnf :: RegisterThing -> () #

AWSRequest RegisterThing # 
ToHeaders RegisterThing # 
ToPath RegisterThing # 
ToQuery RegisterThing # 
type Rep RegisterThing # 
type Rep RegisterThing = D1 * (MetaData "RegisterThing" "Network.AWS.IoT.RegisterThing" "amazonka-iot-1.6.0-7DkcvCU69a26FkRzomxomK" False) (C1 * (MetaCons "RegisterThing'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text)))) (S1 * (MetaSel (Just Symbol "_rtTemplateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs RegisterThing # 

Request Lenses

rtParameters :: Lens' RegisterThing (HashMap Text Text) #

The parameters for provisioning a thing. See Programmatic Provisioning for more information.

rtTemplateBody :: Lens' RegisterThing Text #

The provisioning template. See Programmatic Provisioning for more information.

Destructuring the Response

registerThingResponse #

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

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

data RegisterThingResponse #

See: registerThingResponse smart constructor.

Instances

Eq RegisterThingResponse # 
Data RegisterThingResponse # 

Methods

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

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

toConstr :: RegisterThingResponse -> Constr #

dataTypeOf :: RegisterThingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterThingResponse # 
Show RegisterThingResponse # 
Generic RegisterThingResponse # 
NFData RegisterThingResponse # 

Methods

rnf :: RegisterThingResponse -> () #

type Rep RegisterThingResponse # 
type Rep RegisterThingResponse = D1 * (MetaData "RegisterThingResponse" "Network.AWS.IoT.RegisterThing" "amazonka-iot-1.6.0-7DkcvCU69a26FkRzomxomK" False) (C1 * (MetaCons "RegisterThingResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtrsCertificatePem") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtrsResourceARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text)))) (S1 * (MetaSel (Just Symbol "_rtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

rtrsResourceARNs :: Lens' RegisterThingResponse (HashMap Text Text) #

ARNs for the generated resources.

rtrsResponseStatus :: Lens' RegisterThingResponse Int #

  • - | The response status code.