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 an existing device. You must first disassociate the device from any links and customer gateways.
Synopsis
- data DeleteDevice = DeleteDevice' {
- globalNetworkId :: Text
- deviceId :: Text
- newDeleteDevice :: Text -> Text -> DeleteDevice
- deleteDevice_globalNetworkId :: Lens' DeleteDevice Text
- deleteDevice_deviceId :: Lens' DeleteDevice Text
- data DeleteDeviceResponse = DeleteDeviceResponse' {
- device :: Maybe Device
- httpStatus :: Int
- newDeleteDeviceResponse :: Int -> DeleteDeviceResponse
- deleteDeviceResponse_device :: Lens' DeleteDeviceResponse (Maybe Device)
- deleteDeviceResponse_httpStatus :: Lens' DeleteDeviceResponse Int
Creating a Request
data DeleteDevice Source #
See: newDeleteDevice
smart constructor.
DeleteDevice' | |
|
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:globalNetworkId:DeleteDevice'
, deleteDevice_globalNetworkId
- The ID of the global network.
$sel:deviceId:DeleteDevice'
, deleteDevice_deviceId
- The ID of the device.
Request Lenses
deleteDevice_globalNetworkId :: Lens' DeleteDevice Text Source #
The ID of the global network.
deleteDevice_deviceId :: Lens' DeleteDevice Text Source #
The ID of the device.
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:device:DeleteDeviceResponse'
, deleteDeviceResponse_device
- Information about the device.
$sel:httpStatus:DeleteDeviceResponse'
, deleteDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteDeviceResponse_device :: Lens' DeleteDeviceResponse (Maybe Device) Source #
Information about the device.
deleteDeviceResponse_httpStatus :: Lens' DeleteDeviceResponse Int Source #
The response's http status code.