amazonka-iot-1.4.5: 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.CreateThingType

Contents

Description

Creates a new thing type.

Synopsis

Creating a Request

createThingType Source #

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

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

  • cttThingTypeProperties - The ThingTypeProperties for the thing type to create. It contains information about the new thing type including a description, and a list of searchable thing attribute names.
  • cttThingTypeName - The name of the thing type.

data CreateThingType Source #

The input for the CreateThingType operation.

See: createThingType smart constructor.

Instances

Eq CreateThingType Source # 
Data CreateThingType Source # 

Methods

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

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

toConstr :: CreateThingType -> Constr #

dataTypeOf :: CreateThingType -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateThingType Source # 
Show CreateThingType Source # 
Generic CreateThingType Source # 
Hashable CreateThingType Source # 
ToJSON CreateThingType Source # 
NFData CreateThingType Source # 

Methods

rnf :: CreateThingType -> () #

AWSRequest CreateThingType Source # 
ToPath CreateThingType Source # 
ToHeaders CreateThingType Source # 
ToQuery CreateThingType Source # 
type Rep CreateThingType Source # 
type Rep CreateThingType = D1 (MetaData "CreateThingType" "Network.AWS.IoT.CreateThingType" "amazonka-iot-1.4.5-LdiOpNMei3PDsbsABUTj6X" False) (C1 (MetaCons "CreateThingType'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cttThingTypeProperties") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ThingTypeProperties))) (S1 (MetaSel (Just Symbol "_cttThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateThingType Source # 

Request Lenses

cttThingTypeProperties :: Lens' CreateThingType (Maybe ThingTypeProperties) Source #

The ThingTypeProperties for the thing type to create. It contains information about the new thing type including a description, and a list of searchable thing attribute names.

cttThingTypeName :: Lens' CreateThingType Text Source #

The name of the thing type.

Destructuring the Response

createThingTypeResponse Source #

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

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

data CreateThingTypeResponse Source #

The output of the CreateThingType operation.

See: createThingTypeResponse smart constructor.

Instances

Eq CreateThingTypeResponse Source # 
Data CreateThingTypeResponse Source # 

Methods

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

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

toConstr :: CreateThingTypeResponse -> Constr #

dataTypeOf :: CreateThingTypeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateThingTypeResponse Source # 
Show CreateThingTypeResponse Source # 
Generic CreateThingTypeResponse Source # 
NFData CreateThingTypeResponse Source # 

Methods

rnf :: CreateThingTypeResponse -> () #

type Rep CreateThingTypeResponse Source # 
type Rep CreateThingTypeResponse = D1 (MetaData "CreateThingTypeResponse" "Network.AWS.IoT.CreateThingType" "amazonka-iot-1.4.5-LdiOpNMei3PDsbsABUTj6X" False) (C1 (MetaCons "CreateThingTypeResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cttrsThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cttrsThingTypeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cttrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

cttrsThingTypeARN :: Lens' CreateThingTypeResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the thing type.