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 |
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.
Instances
:: 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:
$sel:deviceKey:AdminGetDevice'
, adminGetDevice_deviceKey
- The device key.
$sel:userPoolId:AdminGetDevice'
, adminGetDevice_userPoolId
- The user pool ID.
$sel:username: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.
AdminGetDeviceResponse' | |
|
Instances
newAdminGetDeviceResponse Source #
:: 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.