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 |
Using a Boolean value (true or false), this operation enables or disables the device given a device ID.
Synopsis
- data UpdateDeviceState = UpdateDeviceState' {}
- newUpdateDeviceState :: Text -> UpdateDeviceState
- updateDeviceState_enabled :: Lens' UpdateDeviceState (Maybe Bool)
- updateDeviceState_deviceId :: Lens' UpdateDeviceState Text
- data UpdateDeviceStateResponse = UpdateDeviceStateResponse' {
- httpStatus :: Int
- newUpdateDeviceStateResponse :: Int -> UpdateDeviceStateResponse
- updateDeviceStateResponse_httpStatus :: Lens' UpdateDeviceStateResponse Int
Creating a Request
data UpdateDeviceState Source #
See: newUpdateDeviceState
smart constructor.
Instances
Create a value of UpdateDeviceState
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:enabled:UpdateDeviceState'
, updateDeviceState_enabled
- If true, the device is enabled. If false, the device is disabled.
$sel:deviceId:UpdateDeviceState'
, updateDeviceState_deviceId
- The unique identifier of the device.
Request Lenses
updateDeviceState_enabled :: Lens' UpdateDeviceState (Maybe Bool) Source #
If true, the device is enabled. If false, the device is disabled.
updateDeviceState_deviceId :: Lens' UpdateDeviceState Text Source #
The unique identifier of the device.
Destructuring the Response
data UpdateDeviceStateResponse Source #
See: newUpdateDeviceStateResponse
smart constructor.
UpdateDeviceStateResponse' | |
|
Instances
newUpdateDeviceStateResponse Source #
Create a value of UpdateDeviceStateResponse
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:UpdateDeviceStateResponse'
, updateDeviceStateResponse_httpStatus
- The response's http status code.
Response Lenses
updateDeviceStateResponse_httpStatus :: Lens' UpdateDeviceStateResponse Int Source #
The response's http status code.