| 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.ListDevices
Description
Lists the sign-in devices that Amazon Cognito has registered to the current user.
Synopsis
- data ListDevices = ListDevices' {}
- newListDevices :: Text -> ListDevices
- listDevices_limit :: Lens' ListDevices (Maybe Natural)
- listDevices_paginationToken :: Lens' ListDevices (Maybe Text)
- listDevices_accessToken :: Lens' ListDevices Text
- data ListDevicesResponse = ListDevicesResponse' {
- devices :: Maybe [DeviceType]
- paginationToken :: Maybe Text
- httpStatus :: Int
- newListDevicesResponse :: Int -> ListDevicesResponse
- listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceType])
- listDevicesResponse_paginationToken :: Lens' ListDevicesResponse (Maybe Text)
- 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:limit:ListDevices', listDevices_limit - The limit of the device request.
ListDevices, listDevices_paginationToken - The pagination token for the list request.
ListDevices, listDevices_accessToken - A valid access token that Amazon Cognito issued to the user whose list
of devices you want to view.
Request Lenses
listDevices_limit :: Lens' ListDevices (Maybe Natural) Source #
The limit of the device request.
listDevices_paginationToken :: Lens' ListDevices (Maybe Text) Source #
The pagination token for the list request.
listDevices_accessToken :: Lens' ListDevices Text Source #
A valid access token that Amazon Cognito issued to the user whose list of devices you want to view.
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:devices:ListDevicesResponse', listDevicesResponse_devices - The devices returned in the list devices response.
ListDevices, listDevicesResponse_paginationToken - The pagination token for the list device response.
$sel:httpStatus:ListDevicesResponse', listDevicesResponse_httpStatus - The response's http status code.
Response Lenses
listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceType]) Source #
The devices returned in the list devices response.
listDevicesResponse_paginationToken :: Lens' ListDevicesResponse (Maybe Text) Source #
The pagination token for the list device response.
listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int Source #
The response's http status code.