| 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 |
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:
$sel:accessToken:GetDevice', getDevice_accessToken - The access token.
$sel:deviceKey:GetDevice', getDevice_deviceKey - The device key.
Request Lenses
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.