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 |
Updates the device status.
Synopsis
- data UpdateDeviceStatus = UpdateDeviceStatus' {}
- newUpdateDeviceStatus :: Text -> Text -> UpdateDeviceStatus
- updateDeviceStatus_deviceRememberedStatus :: Lens' UpdateDeviceStatus (Maybe DeviceRememberedStatusType)
- updateDeviceStatus_accessToken :: Lens' UpdateDeviceStatus Text
- updateDeviceStatus_deviceKey :: Lens' UpdateDeviceStatus Text
- data UpdateDeviceStatusResponse = UpdateDeviceStatusResponse' {
- httpStatus :: Int
- newUpdateDeviceStatusResponse :: Int -> UpdateDeviceStatusResponse
- updateDeviceStatusResponse_httpStatus :: Lens' UpdateDeviceStatusResponse Int
Creating a Request
data UpdateDeviceStatus Source #
Represents the request to update the device status.
See: newUpdateDeviceStatus
smart constructor.
UpdateDeviceStatus' | |
|
Instances
newUpdateDeviceStatus Source #
:: Text | |
-> Text | |
-> UpdateDeviceStatus |
Create a value of UpdateDeviceStatus
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:deviceRememberedStatus:UpdateDeviceStatus'
, updateDeviceStatus_deviceRememberedStatus
- The status of whether a device is remembered.
$sel:accessToken:UpdateDeviceStatus'
, updateDeviceStatus_accessToken
- The access token.
$sel:deviceKey:UpdateDeviceStatus'
, updateDeviceStatus_deviceKey
- The device key.
Request Lenses
updateDeviceStatus_deviceRememberedStatus :: Lens' UpdateDeviceStatus (Maybe DeviceRememberedStatusType) Source #
The status of whether a device is remembered.
updateDeviceStatus_accessToken :: Lens' UpdateDeviceStatus Text Source #
The access token.
updateDeviceStatus_deviceKey :: Lens' UpdateDeviceStatus Text Source #
The device key.
Destructuring the Response
data UpdateDeviceStatusResponse Source #
The response to the request to update the device status.
See: newUpdateDeviceStatusResponse
smart constructor.
UpdateDeviceStatusResponse' | |
|
Instances
newUpdateDeviceStatusResponse Source #
Create a value of UpdateDeviceStatusResponse
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:UpdateDeviceStatusResponse'
, updateDeviceStatusResponse_httpStatus
- The response's http status code.
Response Lenses
updateDeviceStatusResponse_httpStatus :: Lens' UpdateDeviceStatusResponse Int Source #
The response's http status code.