Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new thing type.
Requires permission to access the CreateThingType action.
Synopsis
- data CreateThingType = CreateThingType' {}
- newCreateThingType :: Text -> CreateThingType
- createThingType_thingTypeProperties :: Lens' CreateThingType (Maybe ThingTypeProperties)
- createThingType_tags :: Lens' CreateThingType (Maybe [Tag])
- createThingType_thingTypeName :: Lens' CreateThingType Text
- data CreateThingTypeResponse = CreateThingTypeResponse' {
- thingTypeName :: Maybe Text
- thingTypeId :: Maybe Text
- thingTypeArn :: Maybe Text
- httpStatus :: Int
- newCreateThingTypeResponse :: Int -> CreateThingTypeResponse
- createThingTypeResponse_thingTypeName :: Lens' CreateThingTypeResponse (Maybe Text)
- createThingTypeResponse_thingTypeId :: Lens' CreateThingTypeResponse (Maybe Text)
- createThingTypeResponse_thingTypeArn :: 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.
CreateThingType' | |
|
Instances
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.
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.
CreateThingTypeResponse' | |
|
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:
$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_thingTypeName :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The name of the thing type.
createThingTypeResponse_thingTypeId :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The thing type ID.
createThingTypeResponse_thingTypeArn :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the thing type.
createThingTypeResponse_httpStatus :: Lens' CreateThingTypeResponse Int Source #
The response's http status code.