amazonka-iot-1.6.1: 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 # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Data CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

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

Defined in Network.AWS.IoT.CreateThing

Show CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Generic CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Associated Types

type Rep CreateThing :: Type -> Type #

Hashable CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

ToJSON CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

AWSRequest CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Associated Types

type Rs CreateThing :: Type #

ToHeaders CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Methods

toHeaders :: CreateThing -> [Header] #

ToPath CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

ToQuery CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

NFData CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Methods

rnf :: CreateThing -> () #

type Rep CreateThing Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

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

Defined in Network.AWS.IoT.CreateThing

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

Defined in Network.AWS.IoT.CreateThing

Data CreateThingResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

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

Defined in Network.AWS.IoT.CreateThing

Show CreateThingResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Generic CreateThingResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Associated Types

type Rep CreateThingResponse :: Type -> Type #

NFData CreateThingResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

Methods

rnf :: CreateThingResponse -> () #

type Rep CreateThingResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateThing

type Rep CreateThingResponse = D1 (MetaData "CreateThingResponse" "Network.AWS.IoT.CreateThing" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "CreateThingResponse'" PrefixI True) ((S1 (MetaSel (Just "_ctrsThingARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ctrsThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ctrsThingId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.