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 #

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 #

The input for the CreateThingType operation.

See: createThingType smart constructor.

Instances

Eq CreateThingType # 
Data CreateThingType # 

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 # 
Show CreateThingType # 
Generic CreateThingType # 
Hashable CreateThingType # 
ToJSON CreateThingType # 
NFData CreateThingType # 

Methods

rnf :: CreateThingType -> () #

AWSRequest CreateThingType # 
ToQuery CreateThingType # 
ToPath CreateThingType # 
ToHeaders CreateThingType # 
type Rep CreateThingType # 
type Rep CreateThingType = D1 (MetaData "CreateThingType" "Network.AWS.IoT.CreateThingType" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" 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 # 

Request Lenses

cttThingTypeProperties :: Lens' CreateThingType (Maybe ThingTypeProperties) #

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 #

The name of the thing type.

Destructuring the Response

createThingTypeResponse #

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 #

The output of the CreateThingType operation.

See: createThingTypeResponse smart constructor.

Instances

Eq CreateThingTypeResponse # 
Data CreateThingTypeResponse # 

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 # 
Show CreateThingTypeResponse # 
Generic CreateThingTypeResponse # 
NFData CreateThingTypeResponse # 

Methods

rnf :: CreateThingTypeResponse -> () #

type Rep CreateThingTypeResponse # 
type Rep CreateThingTypeResponse = D1 (MetaData "CreateThingTypeResponse" "Network.AWS.IoT.CreateThingType" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" 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) #

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

cttrsResponseStatus :: Lens' CreateThingTypeResponse Int #

  • - | The response status code.