| 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.CognitoIdentityProvider.ConfirmDevice
Description
Confirms tracking of the device. This API call is the call that begins device tracking.
Synopsis
- data ConfirmDevice = ConfirmDevice' {}
- newConfirmDevice :: Text -> Text -> ConfirmDevice
- confirmDevice_deviceName :: Lens' ConfirmDevice (Maybe Text)
- confirmDevice_deviceSecretVerifierConfig :: Lens' ConfirmDevice (Maybe DeviceSecretVerifierConfigType)
- confirmDevice_accessToken :: Lens' ConfirmDevice Text
- confirmDevice_deviceKey :: Lens' ConfirmDevice Text
- data ConfirmDeviceResponse = ConfirmDeviceResponse' {}
- newConfirmDeviceResponse :: Int -> ConfirmDeviceResponse
- confirmDeviceResponse_userConfirmationNecessary :: Lens' ConfirmDeviceResponse (Maybe Bool)
- confirmDeviceResponse_httpStatus :: Lens' ConfirmDeviceResponse Int
Creating a Request
data ConfirmDevice Source #
Confirms the device request.
See: newConfirmDevice smart constructor.
Constructors
| ConfirmDevice' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ConfirmDevice |
Create a value of ConfirmDevice 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:
ConfirmDevice, confirmDevice_deviceName - The device name.
$sel:deviceSecretVerifierConfig:ConfirmDevice', confirmDevice_deviceSecretVerifierConfig - The configuration of the device secret verifier.
ConfirmDevice, confirmDevice_accessToken - A valid access token that Amazon Cognito issued to the user whose device
you want to confirm.
ConfirmDevice, confirmDevice_deviceKey - The device key.
Request Lenses
confirmDevice_deviceName :: Lens' ConfirmDevice (Maybe Text) Source #
The device name.
confirmDevice_deviceSecretVerifierConfig :: Lens' ConfirmDevice (Maybe DeviceSecretVerifierConfigType) Source #
The configuration of the device secret verifier.
confirmDevice_accessToken :: Lens' ConfirmDevice Text Source #
A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
confirmDevice_deviceKey :: Lens' ConfirmDevice Text Source #
The device key.
Destructuring the Response
data ConfirmDeviceResponse Source #
Confirms the device response.
See: newConfirmDeviceResponse smart constructor.
Constructors
| ConfirmDeviceResponse' | |
Fields
| |
Instances
newConfirmDeviceResponse Source #
Create a value of ConfirmDeviceResponse 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:userConfirmationNecessary:ConfirmDeviceResponse', confirmDeviceResponse_userConfirmationNecessary - Indicates whether the user confirmation must confirm the device
response.
$sel:httpStatus:ConfirmDeviceResponse', confirmDeviceResponse_httpStatus - The response's http status code.
Response Lenses
confirmDeviceResponse_userConfirmationNecessary :: Lens' ConfirmDeviceResponse (Maybe Bool) Source #
Indicates whether the user confirmation must confirm the device response.
confirmDeviceResponse_httpStatus :: Lens' ConfirmDeviceResponse Int Source #
The response's http status code.