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.CreateThing

Contents

Description

Creates a thing record in the registry.

Synopsis

Creating a Request

createThing Source #

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

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

  • ctThingTypeName - The name of the thing type associated with the new thing.
  • ctAttributePayload - The attribute payload, which consists of up to three name/value pairs in a JSON document. For example: {"attributes":{"string1":"string2"}}
  • ctThingName - The name of the thing to create.

data CreateThing Source #

The input for the CreateThing operation.

See: createThing smart constructor.

Instances

Eq CreateThing Source # 
Data CreateThing Source # 

Methods

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

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

toConstr :: CreateThing -> Constr #

dataTypeOf :: CreateThing -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateThing Source # 
Show CreateThing Source # 
Generic CreateThing Source # 

Associated Types

type Rep CreateThing :: * -> * #

Hashable CreateThing Source # 
ToJSON CreateThing Source # 
NFData CreateThing Source # 

Methods

rnf :: CreateThing -> () #

AWSRequest CreateThing Source # 
ToHeaders CreateThing Source # 

Methods

toHeaders :: CreateThing -> [Header] #

ToPath CreateThing Source # 
ToQuery CreateThing Source # 
type Rep CreateThing Source # 
type Rep CreateThing = D1 * (MetaData "CreateThing" "Network.AWS.IoT.CreateThing" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "CreateThing'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctAttributePayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributePayload))) (S1 * (MetaSel (Just Symbol "_ctThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs CreateThing Source # 

Request Lenses

ctThingTypeName :: Lens' CreateThing (Maybe Text) Source #

The name of the thing type associated with the new thing.

ctAttributePayload :: Lens' CreateThing (Maybe AttributePayload) Source #

The attribute payload, which consists of up to three name/value pairs in a JSON document. For example: {"attributes":{"string1":"string2"}}

ctThingName :: Lens' CreateThing Text Source #

The name of the thing to create.

Destructuring the Response

createThingResponse Source #

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

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

data CreateThingResponse Source #

The output of the CreateThing operation.

See: createThingResponse smart constructor.

Instances

Eq CreateThingResponse Source # 
Data CreateThingResponse Source # 

Methods

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

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

toConstr :: CreateThingResponse -> Constr #

dataTypeOf :: CreateThingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateThingResponse Source # 
Show CreateThingResponse Source # 
Generic CreateThingResponse Source # 
NFData CreateThingResponse Source # 

Methods

rnf :: CreateThingResponse -> () #

type Rep CreateThingResponse Source # 
type Rep CreateThingResponse = D1 * (MetaData "CreateThingResponse" "Network.AWS.IoT.CreateThing" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "CreateThingResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ctrsThingARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ctrsThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctrsThingId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ctrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

ctrsThingARN :: Lens' CreateThingResponse (Maybe Text) Source #

The ARN of the new thing.

ctrsThingName :: Lens' CreateThingResponse (Maybe Text) Source #

The name of the new thing.

ctrsResponseStatus :: Lens' CreateThingResponse Int Source #

  • - | The response status code.