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 as an administrator.
Calling this action requires developer credentials.
Synopsis
- data AdminUpdateDeviceStatus = AdminUpdateDeviceStatus' {}
- newAdminUpdateDeviceStatus :: Text -> Text -> Text -> AdminUpdateDeviceStatus
- adminUpdateDeviceStatus_deviceRememberedStatus :: Lens' AdminUpdateDeviceStatus (Maybe DeviceRememberedStatusType)
- adminUpdateDeviceStatus_userPoolId :: Lens' AdminUpdateDeviceStatus Text
- adminUpdateDeviceStatus_username :: Lens' AdminUpdateDeviceStatus Text
- adminUpdateDeviceStatus_deviceKey :: Lens' AdminUpdateDeviceStatus Text
- data AdminUpdateDeviceStatusResponse = AdminUpdateDeviceStatusResponse' {
- httpStatus :: Int
- newAdminUpdateDeviceStatusResponse :: Int -> AdminUpdateDeviceStatusResponse
- adminUpdateDeviceStatusResponse_httpStatus :: Lens' AdminUpdateDeviceStatusResponse Int
Creating a Request
data AdminUpdateDeviceStatus Source #
The request to update the device status, as an administrator.
See: newAdminUpdateDeviceStatus
smart constructor.
AdminUpdateDeviceStatus' | |
|
Instances
newAdminUpdateDeviceStatus Source #
:: Text | |
-> Text | |
-> Text | |
-> AdminUpdateDeviceStatus |
Create a value of AdminUpdateDeviceStatus
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:AdminUpdateDeviceStatus'
, adminUpdateDeviceStatus_deviceRememberedStatus
- The status indicating whether a device has been remembered or not.
$sel:userPoolId:AdminUpdateDeviceStatus'
, adminUpdateDeviceStatus_userPoolId
- The user pool ID.
$sel:username:AdminUpdateDeviceStatus'
, adminUpdateDeviceStatus_username
- The user name.
$sel:deviceKey:AdminUpdateDeviceStatus'
, adminUpdateDeviceStatus_deviceKey
- The device key.
Request Lenses
adminUpdateDeviceStatus_deviceRememberedStatus :: Lens' AdminUpdateDeviceStatus (Maybe DeviceRememberedStatusType) Source #
The status indicating whether a device has been remembered or not.
adminUpdateDeviceStatus_userPoolId :: Lens' AdminUpdateDeviceStatus Text Source #
The user pool ID.
adminUpdateDeviceStatus_username :: Lens' AdminUpdateDeviceStatus Text Source #
The user name.
adminUpdateDeviceStatus_deviceKey :: Lens' AdminUpdateDeviceStatus Text Source #
The device key.
Destructuring the Response
data AdminUpdateDeviceStatusResponse Source #
The status response from the request to update the device, as an administrator.
See: newAdminUpdateDeviceStatusResponse
smart constructor.
AdminUpdateDeviceStatusResponse' | |
|
Instances
Eq AdminUpdateDeviceStatusResponse Source # | |
Read AdminUpdateDeviceStatusResponse Source # | |
Show AdminUpdateDeviceStatusResponse Source # | |
Generic AdminUpdateDeviceStatusResponse Source # | |
NFData AdminUpdateDeviceStatusResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.AdminUpdateDeviceStatus rnf :: AdminUpdateDeviceStatusResponse -> () # | |
type Rep AdminUpdateDeviceStatusResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.AdminUpdateDeviceStatus type Rep AdminUpdateDeviceStatusResponse = D1 ('MetaData "AdminUpdateDeviceStatusResponse" "Amazonka.CognitoIdentityProvider.AdminUpdateDeviceStatus" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminUpdateDeviceStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAdminUpdateDeviceStatusResponse Source #
Create a value of AdminUpdateDeviceStatusResponse
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:AdminUpdateDeviceStatusResponse'
, adminUpdateDeviceStatusResponse_httpStatus
- The response's http status code.
Response Lenses
adminUpdateDeviceStatusResponse_httpStatus :: Lens' AdminUpdateDeviceStatusResponse Int Source #
The response's http status code.