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 |
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.
DeleteThingType' | |
|
Instances
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.
DeleteThingTypeResponse' | |
|
Instances
Eq DeleteThingTypeResponse Source # | |
Defined in Amazonka.IoT.DeleteThingType | |
Read DeleteThingTypeResponse Source # | |
Show DeleteThingTypeResponse Source # | |
Defined in Amazonka.IoT.DeleteThingType showsPrec :: Int -> DeleteThingTypeResponse -> ShowS # show :: DeleteThingTypeResponse -> String # showList :: [DeleteThingTypeResponse] -> ShowS # | |
Generic DeleteThingTypeResponse Source # | |
Defined in Amazonka.IoT.DeleteThingType type Rep DeleteThingTypeResponse :: Type -> Type # | |
NFData DeleteThingTypeResponse Source # | |
Defined in Amazonka.IoT.DeleteThingType rnf :: DeleteThingTypeResponse -> () # | |
type Rep DeleteThingTypeResponse Source # | |
Defined in Amazonka.IoT.DeleteThingType type Rep DeleteThingTypeResponse = D1 ('MetaData "DeleteThingTypeResponse" "Amazonka.IoT.DeleteThingType" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DeleteThingTypeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.