Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a new thing type.
- createThingType :: Text -> CreateThingType
- data CreateThingType
- cttThingTypeProperties :: Lens' CreateThingType (Maybe ThingTypeProperties)
- cttThingTypeName :: Lens' CreateThingType Text
- createThingTypeResponse :: Int -> CreateThingTypeResponse
- data CreateThingTypeResponse
- cttrsThingTypeName :: Lens' CreateThingTypeResponse (Maybe Text)
- cttrsThingTypeId :: Lens' CreateThingTypeResponse (Maybe Text)
- cttrsThingTypeARN :: Lens' CreateThingTypeResponse (Maybe Text)
- cttrsResponseStatus :: Lens' CreateThingTypeResponse Int
Creating a Request
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 Source #
The input for the CreateThingType operation.
See: createThingType
smart constructor.
Request Lenses
cttThingTypeProperties :: 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.
cttThingTypeName :: Lens' CreateThingType Text Source #
The name of the thing type.
Destructuring the Response
createThingTypeResponse Source #
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:
cttrsThingTypeName
- The name of the thing type.cttrsThingTypeId
- The thing type ID.cttrsThingTypeARN
- The Amazon Resource Name (ARN) of the thing type.cttrsResponseStatus
- -- | The response status code.
data CreateThingTypeResponse Source #
The output of the CreateThingType operation.
See: createThingTypeResponse
smart constructor.
Response Lenses
cttrsThingTypeName :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The name of the thing type.
cttrsThingTypeId :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The thing type ID.
cttrsThingTypeARN :: Lens' CreateThingTypeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the thing type.
cttrsResponseStatus :: Lens' CreateThingTypeResponse Int Source #
- - | The response status code.