libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.CreateThingType

Description

Creates a new thing type.

Requires permission to access the CreateThingType action.

Synopsis

Creating a Request

data CreateThingType Source #

The input for the CreateThingType operation.

See: newCreateThingType smart constructor.

Constructors

CreateThingType' 

Fields

Instances

Instances details
Eq CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Read CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Show CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Generic CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Associated Types

type Rep CreateThingType :: Type -> Type #

NFData CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Methods

rnf :: CreateThingType -> () #

Hashable CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

ToJSON CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

AWSRequest CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Associated Types

type AWSResponse CreateThingType #

ToHeaders CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

ToPath CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

ToQuery CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

type Rep CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

type Rep CreateThingType = D1 ('MetaData "CreateThingType" "Amazonka.IoT.CreateThingType" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateThingType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "thingTypeProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ThingTypeProperties)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "thingTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateThingType Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

newCreateThingType Source #

Create a value of CreateThingType with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:thingTypeProperties:CreateThingType', createThingType_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.

$sel:tags:CreateThingType', createThingType_tags - Metadata which can be used to manage the thing type.

$sel:thingTypeName:CreateThingType', createThingType_thingTypeName - The name of the thing type.

Request Lenses

createThingType_thingTypeProperties :: 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.

createThingType_tags :: Lens' CreateThingType (Maybe [Tag]) Source #

Metadata which can be used to manage the thing type.

Destructuring the Response

data CreateThingTypeResponse Source #

The output of the CreateThingType operation.

See: newCreateThingTypeResponse smart constructor.

Constructors

CreateThingTypeResponse' 

Fields

Instances

Instances details
Eq CreateThingTypeResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Read CreateThingTypeResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Show CreateThingTypeResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Generic CreateThingTypeResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Associated Types

type Rep CreateThingTypeResponse :: Type -> Type #

NFData CreateThingTypeResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

Methods

rnf :: CreateThingTypeResponse -> () #

type Rep CreateThingTypeResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateThingType

type Rep CreateThingTypeResponse = D1 ('MetaData "CreateThingTypeResponse" "Amazonka.IoT.CreateThingType" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateThingTypeResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thingTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thingTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "thingTypeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateThingTypeResponse Source #

Create a value of CreateThingTypeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:thingTypeName:CreateThingType', createThingTypeResponse_thingTypeName - The name of the thing type.

$sel:thingTypeId:CreateThingTypeResponse', createThingTypeResponse_thingTypeId - The thing type ID.

$sel:thingTypeArn:CreateThingTypeResponse', createThingTypeResponse_thingTypeArn - The Amazon Resource Name (ARN) of the thing type.

$sel:httpStatus:CreateThingTypeResponse', createThingTypeResponse_httpStatus - The response's http status code.

Response Lenses

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

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