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 |
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.
DeprecateThingType' | |
|
Instances
newDeprecateThingType Source #
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.
$sel:thingTypeName: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.
DeprecateThingTypeResponse' | |
|
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.