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 |
Amazonka.IoT.DeleteThingType
Description
Deletes the specified thing type. You cannot delete a thing type if it has things associated with it. To delete a thing type, first mark it as deprecated by calling DeprecateThingType, then remove any associated things by calling UpdateThing to change the thing type on any associated thing, and finally use DeleteThingType to delete the thing type.
Requires permission to access the DeleteThingType action.
Synopsis
- data DeleteThingType = DeleteThingType' {}
- newDeleteThingType :: Text -> DeleteThingType
- deleteThingType_thingTypeName :: Lens' DeleteThingType Text
- data DeleteThingTypeResponse = DeleteThingTypeResponse' {
- httpStatus :: Int
- newDeleteThingTypeResponse :: Int -> DeleteThingTypeResponse
- deleteThingTypeResponse_httpStatus :: Lens' DeleteThingTypeResponse Int
Creating a Request
data DeleteThingType Source #
The input for the DeleteThingType operation.
See: newDeleteThingType
smart constructor.
Constructors
DeleteThingType' | |
Fields
|
Instances
Arguments
:: Text | |
-> DeleteThingType |
Create a value of DeleteThingType
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:DeleteThingType'
, deleteThingType_thingTypeName
- The name of the thing type.
Request Lenses
deleteThingType_thingTypeName :: Lens' DeleteThingType Text Source #
The name of the thing type.
Destructuring the Response
data DeleteThingTypeResponse Source #
The output for the DeleteThingType operation.
See: newDeleteThingTypeResponse
smart constructor.
Constructors
DeleteThingTypeResponse' | |
Fields
|
Instances
newDeleteThingTypeResponse Source #
Create a value of DeleteThingTypeResponse
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:httpStatus:DeleteThingTypeResponse'
, deleteThingTypeResponse_httpStatus
- The response's http status code.
Response Lenses
deleteThingTypeResponse_httpStatus :: Lens' DeleteThingTypeResponse Int Source #
The response's http status code.