| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.CreateThingType
Description
Creates a new thing type.
Requires permission to access the CreateThingType action.
Synopsis
- data CreateThingType = CreateThingType' {}
- newCreateThingType :: Text -> CreateThingType
- createThingType_tags :: Lens' CreateThingType (Maybe [Tag])
- createThingType_thingTypeProperties :: Lens' CreateThingType (Maybe ThingTypeProperties)
- createThingType_thingTypeName :: Lens' CreateThingType Text
- data CreateThingTypeResponse = CreateThingTypeResponse' {
- thingTypeArn :: Maybe Text
- thingTypeId :: Maybe Text
- thingTypeName :: Maybe Text
- httpStatus :: Int
- newCreateThingTypeResponse :: Int -> CreateThingTypeResponse
- createThingTypeResponse_thingTypeArn :: Lens' CreateThingTypeResponse (Maybe Text)
- createThingTypeResponse_thingTypeId :: Lens' CreateThingTypeResponse (Maybe Text)
- createThingTypeResponse_thingTypeName :: Lens' CreateThingTypeResponse (Maybe Text)
- createThingTypeResponse_httpStatus :: Lens' CreateThingTypeResponse Int
Creating a Request
data CreateThingType Source #
The input for the CreateThingType operation.
See: newCreateThingType smart constructor.
Constructors
| CreateThingType' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateThingType |
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:tags:CreateThingType', createThingType_tags - Metadata which can be used to manage the thing type.
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.
CreateThingType, createThingType_thingTypeName - The name of the thing type.
Request Lenses
createThingType_tags :: Lens' CreateThingType (Maybe [Tag]) Source #
Metadata which can be used to manage the thing type.
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_thingTypeName :: Lens' CreateThingType Text Source #
The name of the thing type.
Destructuring the Response
data CreateThingTypeResponse Source #
The output of the CreateThingType operation.
See: newCreateThingTypeResponse smart constructor.
Constructors
| CreateThingTypeResponse' | |
Fields
| |
Instances
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:
CreateThingTypeResponse, createThingTypeResponse_thingTypeArn - The Amazon Resource Name (ARN) of the thing type.
$sel:thingTypeId:CreateThingTypeResponse', createThingTypeResponse_thingTypeId - The thing type ID.
CreateThingType, createThingTypeResponse_thingTypeName - The name 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.
createThingTypeResponse_thingTypeId :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The thing type ID.
createThingTypeResponse_thingTypeName :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The name of the thing type.
createThingTypeResponse_httpStatus :: Lens' CreateThingTypeResponse Int Source #
The response's http status code.