| 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.ListDevices
Description
Lists the devices.
Synopsis
- data ListDevices = ListDevices' {}
- newListDevices :: Text -> ListDevices
- listDevices_paginationToken :: Lens' ListDevices (Maybe Text)
- listDevices_limit :: Lens' ListDevices (Maybe Natural)
- listDevices_accessToken :: Lens' ListDevices Text
- data ListDevicesResponse = ListDevicesResponse' {
- paginationToken :: Maybe Text
- devices :: Maybe [DeviceType]
- httpStatus :: Int
- newListDevicesResponse :: Int -> ListDevicesResponse
- listDevicesResponse_paginationToken :: Lens' ListDevicesResponse (Maybe Text)
- listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceType])
- listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int
Creating a Request
data ListDevices Source #
Represents the request to list the devices.
See: newListDevices smart constructor.
Constructors
| ListDevices' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListDevices |
Create a value of ListDevices 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:ListDevices', listDevices_paginationToken - The pagination token for the list request.
$sel:limit:ListDevices', listDevices_limit - The limit of the device request.
$sel:accessToken:ListDevices', listDevices_accessToken - The access tokens for the request to list devices.
Request Lenses
listDevices_paginationToken :: Lens' ListDevices (Maybe Text) Source #
The pagination token for the list request.
listDevices_limit :: Lens' ListDevices (Maybe Natural) Source #
The limit of the device request.
listDevices_accessToken :: Lens' ListDevices Text Source #
The access tokens for the request to list devices.
Destructuring the Response
data ListDevicesResponse Source #
Represents the response to list devices.
See: newListDevicesResponse smart constructor.
Constructors
| ListDevicesResponse' | |
Fields
| |
Instances
newListDevicesResponse Source #
Arguments
| :: Int | |
| -> ListDevicesResponse |
Create a value of ListDevicesResponse 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:ListDevices', listDevicesResponse_paginationToken - The pagination token for the list device response.
$sel:devices:ListDevicesResponse', listDevicesResponse_devices - The devices returned in the list devices response.
$sel:httpStatus:ListDevicesResponse', listDevicesResponse_httpStatus - The response's http status code.
Response Lenses
listDevicesResponse_paginationToken :: Lens' ListDevicesResponse (Maybe Text) Source #
The pagination token for the list device response.
listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceType]) Source #
The devices returned in the list devices response.
listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int Source #
The response's http status code.