| 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.DeprecateThingType
Description
Deprecates a thing type. You can not associate new things with deprecated thing type.
Requires permission to access the DeprecateThingType action.
Synopsis
- data DeprecateThingType = DeprecateThingType' {}
- newDeprecateThingType :: Text -> DeprecateThingType
- deprecateThingType_undoDeprecate :: Lens' DeprecateThingType (Maybe Bool)
- deprecateThingType_thingTypeName :: Lens' DeprecateThingType Text
- data DeprecateThingTypeResponse = DeprecateThingTypeResponse' {
- httpStatus :: Int
- newDeprecateThingTypeResponse :: Int -> DeprecateThingTypeResponse
- deprecateThingTypeResponse_httpStatus :: Lens' DeprecateThingTypeResponse Int
Creating a Request
data DeprecateThingType Source #
The input for the DeprecateThingType operation.
See: newDeprecateThingType smart constructor.
Constructors
| DeprecateThingType' | |
Fields
| |
Instances
newDeprecateThingType Source #
Arguments
| :: Text | |
| -> DeprecateThingType |
Create a value of DeprecateThingType 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:undoDeprecate:DeprecateThingType', deprecateThingType_undoDeprecate - Whether to undeprecate a deprecated thing type. If true, the thing
type will not be deprecated anymore and you can associate it with
things.
DeprecateThingType, deprecateThingType_thingTypeName - The name of the thing type to deprecate.
Request Lenses
deprecateThingType_undoDeprecate :: Lens' DeprecateThingType (Maybe Bool) Source #
Whether to undeprecate a deprecated thing type. If true, the thing type will not be deprecated anymore and you can associate it with things.
deprecateThingType_thingTypeName :: Lens' DeprecateThingType Text Source #
The name of the thing type to deprecate.
Destructuring the Response
data DeprecateThingTypeResponse Source #
The output for the DeprecateThingType operation.
See: newDeprecateThingTypeResponse smart constructor.
Constructors
| DeprecateThingTypeResponse' | |
Fields
| |
Instances
newDeprecateThingTypeResponse Source #
Create a value of DeprecateThingTypeResponse 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:DeprecateThingTypeResponse', deprecateThingTypeResponse_httpStatus - The response's http status code.
Response Lenses
deprecateThingTypeResponse_httpStatus :: Lens' DeprecateThingTypeResponse Int Source #
The response's http status code.