| 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.GetDevice
Description
Gets the device.
Synopsis
- data GetDevice = GetDevice' {}
- newGetDevice :: Text -> GetDevice
- getDevice_accessToken :: Lens' GetDevice (Maybe Text)
- getDevice_deviceKey :: Lens' GetDevice Text
- data GetDeviceResponse = GetDeviceResponse' {
- httpStatus :: Int
- device :: DeviceType
- newGetDeviceResponse :: Int -> DeviceType -> GetDeviceResponse
- getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int
- getDeviceResponse_device :: Lens' GetDeviceResponse DeviceType
Creating a Request
Represents the request to get the device.
See: newGetDevice smart constructor.
Constructors
| GetDevice' | |
Instances
Create a value of GetDevice 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:
GetDevice, getDevice_accessToken - A valid access token that Amazon Cognito issued to the user whose device
information you want to request.
GetDevice, getDevice_deviceKey - The device key.
Request Lenses
getDevice_accessToken :: Lens' GetDevice (Maybe Text) Source #
A valid access token that Amazon Cognito issued to the user whose device information you want to request.
Destructuring the Response
data GetDeviceResponse Source #
Gets the device response.
See: newGetDeviceResponse smart constructor.
Constructors
| GetDeviceResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> DeviceType | |
| -> GetDeviceResponse |
Create a value of GetDeviceResponse 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:GetDeviceResponse', getDeviceResponse_httpStatus - The response's http status code.
$sel:device:GetDeviceResponse', getDeviceResponse_device - The device.
Response Lenses
getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int Source #
The response's http status code.
getDeviceResponse_device :: Lens' GetDeviceResponse DeviceType Source #
The device.