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. Returns successfully with no error if the deletion is successful or you specify a thing that doesn't exist.
Requires permission to access the DeleteThing action.
Synopsis
- data DeleteThing = DeleteThing' {}
- newDeleteThing :: Text -> DeleteThing
- deleteThing_expectedVersion :: Lens' DeleteThing (Maybe Integer)
- deleteThing_thingName :: Lens' DeleteThing Text
- data DeleteThingResponse = DeleteThingResponse' {
- httpStatus :: Int
- newDeleteThingResponse :: Int -> DeleteThingResponse
- deleteThingResponse_httpStatus :: Lens' DeleteThingResponse Int
Creating a Request
data DeleteThing Source #
The input for the DeleteThing operation.
See: newDeleteThing
smart constructor.
DeleteThing' | |
|
Instances
Create a value of DeleteThing
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:expectedVersion:DeleteThing'
, deleteThing_expectedVersion
- The expected version of the thing record in the registry. If the version
of the record in the registry does not match the expected version
specified in the request, the DeleteThing
request is rejected with a
VersionConflictException
.
$sel:thingName:DeleteThing'
, deleteThing_thingName
- The name of the thing to delete.
Request Lenses
deleteThing_expectedVersion :: Lens' DeleteThing (Maybe Integer) Source #
The expected version of the thing record in the registry. If the version
of the record in the registry does not match the expected version
specified in the request, the DeleteThing
request is rejected with a
VersionConflictException
.
deleteThing_thingName :: Lens' DeleteThing Text Source #
The name of the thing to delete.
Destructuring the Response
data DeleteThingResponse Source #
The output of the DeleteThing operation.
See: newDeleteThingResponse
smart constructor.
DeleteThingResponse' | |
|
Instances
newDeleteThingResponse Source #
Create a value of DeleteThingResponse
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:DeleteThingResponse'
, deleteThingResponse_httpStatus
- The response's http status code.
Response Lenses
deleteThingResponse_httpStatus :: Lens' DeleteThingResponse Int Source #
The response's http status code.