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 a device.
Synopsis
- data DeleteDevice = DeleteDevice' {}
- newDeleteDevice :: Text -> DeleteDevice
- deleteDevice_deviceId :: Lens' DeleteDevice Text
- data DeleteDeviceResponse = DeleteDeviceResponse' {
- deviceId :: Maybe Text
- httpStatus :: Int
- newDeleteDeviceResponse :: Int -> DeleteDeviceResponse
- deleteDeviceResponse_deviceId :: Lens' DeleteDeviceResponse (Maybe Text)
- deleteDeviceResponse_httpStatus :: Lens' DeleteDeviceResponse Int
Creating a Request
data DeleteDevice Source #
See: newDeleteDevice
smart constructor.
Instances
Create a value of DeleteDevice
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:deviceId:DeleteDevice'
, deleteDevice_deviceId
- The device's ID.
Request Lenses
deleteDevice_deviceId :: Lens' DeleteDevice Text Source #
The device's ID.
Destructuring the Response
data DeleteDeviceResponse Source #
See: newDeleteDeviceResponse
smart constructor.
DeleteDeviceResponse' | |
|
Instances
newDeleteDeviceResponse Source #
Create a value of DeleteDeviceResponse
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:deviceId:DeleteDevice'
, deleteDeviceResponse_deviceId
- The device's ID.
$sel:httpStatus:DeleteDeviceResponse'
, deleteDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteDeviceResponse_deviceId :: Lens' DeleteDeviceResponse (Maybe Text) Source #
The device's ID.
deleteDeviceResponse_httpStatus :: Lens' DeleteDeviceResponse Int Source #
The response's http status code.