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 |
Lists devices, as an administrator.
Calling this action requires developer credentials.
Synopsis
- data AdminListDevices = AdminListDevices' {}
- newAdminListDevices :: Text -> Text -> AdminListDevices
- adminListDevices_paginationToken :: Lens' AdminListDevices (Maybe Text)
- adminListDevices_limit :: Lens' AdminListDevices (Maybe Natural)
- adminListDevices_userPoolId :: Lens' AdminListDevices Text
- adminListDevices_username :: Lens' AdminListDevices Text
- data AdminListDevicesResponse = AdminListDevicesResponse' {
- paginationToken :: Maybe Text
- devices :: Maybe [DeviceType]
- httpStatus :: Int
- newAdminListDevicesResponse :: Int -> AdminListDevicesResponse
- adminListDevicesResponse_paginationToken :: Lens' AdminListDevicesResponse (Maybe Text)
- adminListDevicesResponse_devices :: Lens' AdminListDevicesResponse (Maybe [DeviceType])
- adminListDevicesResponse_httpStatus :: Lens' AdminListDevicesResponse Int
Creating a Request
data AdminListDevices Source #
Represents the request to list devices, as an administrator.
See: newAdminListDevices
smart constructor.
Instances
Create a value of AdminListDevices
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:paginationToken:AdminListDevices'
, adminListDevices_paginationToken
- The pagination token.
$sel:limit:AdminListDevices'
, adminListDevices_limit
- The limit of the devices request.
$sel:userPoolId:AdminListDevices'
, adminListDevices_userPoolId
- The user pool ID.
$sel:username:AdminListDevices'
, adminListDevices_username
- The user name.
Request Lenses
adminListDevices_paginationToken :: Lens' AdminListDevices (Maybe Text) Source #
The pagination token.
adminListDevices_limit :: Lens' AdminListDevices (Maybe Natural) Source #
The limit of the devices request.
adminListDevices_userPoolId :: Lens' AdminListDevices Text Source #
The user pool ID.
adminListDevices_username :: Lens' AdminListDevices Text Source #
The user name.
Destructuring the Response
data AdminListDevicesResponse Source #
Lists the device's response, as an administrator.
See: newAdminListDevicesResponse
smart constructor.
AdminListDevicesResponse' | |
|
Instances
newAdminListDevicesResponse Source #
Create a value of AdminListDevicesResponse
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:paginationToken:AdminListDevices'
, adminListDevicesResponse_paginationToken
- The pagination token.
$sel:devices:AdminListDevicesResponse'
, adminListDevicesResponse_devices
- The devices in the list of devices response.
$sel:httpStatus:AdminListDevicesResponse'
, adminListDevicesResponse_httpStatus
- The response's http status code.
Response Lenses
adminListDevicesResponse_paginationToken :: Lens' AdminListDevicesResponse (Maybe Text) Source #
The pagination token.
adminListDevicesResponse_devices :: Lens' AdminListDevicesResponse (Maybe [DeviceType]) Source #
The devices in the list of devices response.
adminListDevicesResponse_httpStatus :: Lens' AdminListDevicesResponse Int Source #
The response's http status code.