| 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.IoT1ClickDevices.UpdateDeviceState
Description
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.
Constructors
| UpdateDeviceState' | |
Instances
Arguments
| :: Text | |
| -> UpdateDeviceState |
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:
UpdateDeviceState, updateDeviceState_enabled - If true, the device is enabled. If false, the device is disabled.
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.
Constructors
| UpdateDeviceStateResponse' | |
Fields
| |
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.