| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.NetworkManager.DeleteDevice
Description
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.
Constructors
| DeleteDevice' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteDevice |
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:
DeleteDevice, deleteDevice_globalNetworkId - The ID of the global network.
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.
Constructors
| DeleteDeviceResponse' | |
Fields
| |
Instances
newDeleteDeviceResponse Source #
Arguments
| :: Int | |
| -> DeleteDeviceResponse |
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.