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

Defined in Network.AWS.IoT.CreateThingType

Data CreateThingType # 
Instance details

Defined in Network.AWS.IoT.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 # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Show CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Generic CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Associated Types

type Rep CreateThingType :: * -> * #

Hashable CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

ToJSON CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

AWSRequest CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Associated Types

type Rs CreateThingType :: * #

ToHeaders CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

ToPath CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

ToQuery CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

NFData CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Methods

rnf :: CreateThingType -> () #

type Rep CreateThingType # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

type Rep CreateThingType = D1 (MetaData "CreateThingType" "Network.AWS.IoT.CreateThingType" "amazonka-iot-1.6.0-7Vy7dErS7zJKuWc6mk800q" False) (C1 (MetaCons "CreateThingType'" PrefixI True) (S1 (MetaSel (Just "_cttThingTypeProperties") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ThingTypeProperties)) :*: S1 (MetaSel (Just "_cttThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateThingType # 
Instance details

Defined in Network.AWS.IoT.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 # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Data CreateThingTypeResponse # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

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

Defined in Network.AWS.IoT.CreateThingType

Show CreateThingTypeResponse # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Generic CreateThingTypeResponse # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Associated Types

type Rep CreateThingTypeResponse :: * -> * #

NFData CreateThingTypeResponse # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

Methods

rnf :: CreateThingTypeResponse -> () #

type Rep CreateThingTypeResponse # 
Instance details

Defined in Network.AWS.IoT.CreateThingType

type Rep CreateThingTypeResponse = D1 (MetaData "CreateThingTypeResponse" "Network.AWS.IoT.CreateThingType" "amazonka-iot-1.6.0-7Vy7dErS7zJKuWc6mk800q" False) (C1 (MetaCons "CreateThingTypeResponse'" PrefixI True) ((S1 (MetaSel (Just "_cttrsThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cttrsThingTypeId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cttrsThingTypeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cttrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.