| 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.AdminGetDevice
Description
Gets the device, as an administrator.
Calling this action requires developer credentials.
Synopsis
- data AdminGetDevice = AdminGetDevice' {}
- newAdminGetDevice :: Text -> Text -> Text -> AdminGetDevice
- adminGetDevice_deviceKey :: Lens' AdminGetDevice Text
- adminGetDevice_userPoolId :: Lens' AdminGetDevice Text
- adminGetDevice_username :: Lens' AdminGetDevice Text
- data AdminGetDeviceResponse = AdminGetDeviceResponse' {
- httpStatus :: Int
- device :: DeviceType
- newAdminGetDeviceResponse :: Int -> DeviceType -> AdminGetDeviceResponse
- adminGetDeviceResponse_httpStatus :: Lens' AdminGetDeviceResponse Int
- adminGetDeviceResponse_device :: Lens' AdminGetDeviceResponse DeviceType
Creating a Request
data AdminGetDevice Source #
Represents the request to get the device, as an administrator.
See: newAdminGetDevice smart constructor.
Constructors
| AdminGetDevice' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> AdminGetDevice |
Create a value of AdminGetDevice 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:
AdminGetDevice, adminGetDevice_deviceKey - The device key.
AdminGetDevice, adminGetDevice_userPoolId - The user pool ID.
AdminGetDevice, adminGetDevice_username - The user name.
Request Lenses
adminGetDevice_deviceKey :: Lens' AdminGetDevice Text Source #
The device key.
adminGetDevice_userPoolId :: Lens' AdminGetDevice Text Source #
The user pool ID.
adminGetDevice_username :: Lens' AdminGetDevice Text Source #
The user name.
Destructuring the Response
data AdminGetDeviceResponse Source #
Gets the device response, as an administrator.
See: newAdminGetDeviceResponse smart constructor.
Constructors
| AdminGetDeviceResponse' | |
Fields
| |
Instances
newAdminGetDeviceResponse Source #
Arguments
| :: Int | |
| -> DeviceType | |
| -> AdminGetDeviceResponse |
Create a value of AdminGetDeviceResponse 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:AdminGetDeviceResponse', adminGetDeviceResponse_httpStatus - The response's http status code.
$sel:device:AdminGetDeviceResponse', adminGetDeviceResponse_device - The device.
Response Lenses
adminGetDeviceResponse_httpStatus :: Lens' AdminGetDeviceResponse Int Source #
The response's http status code.
adminGetDeviceResponse_device :: Lens' AdminGetDeviceResponse DeviceType Source #
The device.