Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Deletes the specified thing.
Creating a Request
Creates a value of DeleteThing
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dtExpectedVersion
- 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, theDeleteThing
request is rejected with aVersionConflictException
.dtThingName
- The name of the thing to delete.
data DeleteThing Source #
The input for the DeleteThing operation.
See: deleteThing
smart constructor.
Request Lenses
dtExpectedVersion :: 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
.
dtThingName :: Lens' DeleteThing Text Source #
The name of the thing to delete.
Destructuring the Response
Creates a value of DeleteThingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddrsResponseStatus
- -- | The response status code.
data DeleteThingResponse Source #
The output of the DeleteThing operation.
See: deleteThingResponse
smart constructor.
Response Lenses
ddrsResponseStatus :: Lens' DeleteThingResponse Int Source #
- - | The response status code.