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 |
Returns a list of devices.
Synopsis
- data ListDevices = ListDevices' {}
- newListDevices :: ListDevices
- listDevices_nextToken :: Lens' ListDevices (Maybe Text)
- listDevices_maxResults :: Lens' ListDevices (Maybe Natural)
- data ListDevicesResponse = ListDevicesResponse' {}
- newListDevicesResponse :: Int -> ListDevicesResponse
- listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text)
- listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int
- listDevicesResponse_devices :: Lens' ListDevicesResponse [Device]
Creating a Request
data ListDevices Source #
See: newListDevices
smart constructor.
Instances
newListDevices :: ListDevices Source #
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:nextToken:ListDevices'
, listDevices_nextToken
- Specify the pagination token from a previous request to retrieve the
next page of results.
$sel:maxResults:ListDevices'
, listDevices_maxResults
- The maximum number of devices to return in one page of results.
Request Lenses
listDevices_nextToken :: Lens' ListDevices (Maybe Text) Source #
Specify the pagination token from a previous request to retrieve the next page of results.
listDevices_maxResults :: Lens' ListDevices (Maybe Natural) Source #
The maximum number of devices to return in one page of results.
Destructuring the Response
data ListDevicesResponse Source #
See: newListDevicesResponse
smart constructor.
Instances
newListDevicesResponse Source #
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:nextToken:ListDevices'
, listDevicesResponse_nextToken
- A pagination token that's included if more results are available.
$sel:httpStatus:ListDevicesResponse'
, listDevicesResponse_httpStatus
- The response's http status code.
$sel:devices:ListDevicesResponse'
, listDevicesResponse_devices
- A list of devices.
Response Lenses
listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text) Source #
A pagination token that's included if more results are available.
listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int Source #
The response's http status code.
listDevicesResponse_devices :: Lens' ListDevicesResponse [Device] Source #
A list of devices.