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.WorkLink.ListDevices
Description
Retrieves a list of devices registered with the specified fleet.
Synopsis
- data ListDevices = ListDevices' {}
- newListDevices :: Text -> ListDevices
- listDevices_nextToken :: Lens' ListDevices (Maybe Text)
- listDevices_maxResults :: Lens' ListDevices (Maybe Natural)
- listDevices_fleetArn :: Lens' ListDevices Text
- data ListDevicesResponse = ListDevicesResponse' {
- nextToken :: Maybe Text
- devices :: Maybe [DeviceSummary]
- httpStatus :: Int
- newListDevicesResponse :: Int -> ListDevicesResponse
- listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text)
- listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceSummary])
- listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int
Creating a Request
data ListDevices Source #
See: newListDevices
smart constructor.
Constructors
ListDevices' | |
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:nextToken:ListDevices'
, listDevices_nextToken
- The pagination token used to retrieve the next page of results for this
operation. If this value is null, it retrieves the first page.
$sel:maxResults:ListDevices'
, listDevices_maxResults
- The maximum number of results to be included in the next page.
$sel:fleetArn:ListDevices'
, listDevices_fleetArn
- The ARN of the fleet.
Request Lenses
listDevices_nextToken :: Lens' ListDevices (Maybe Text) Source #
The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
listDevices_maxResults :: Lens' ListDevices (Maybe Natural) Source #
The maximum number of results to be included in the next page.
listDevices_fleetArn :: Lens' ListDevices Text Source #
The ARN of the fleet.
Destructuring the Response
data ListDevicesResponse Source #
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:nextToken:ListDevices'
, listDevicesResponse_nextToken
- The pagination token used to retrieve the next page of results for this
operation. If there are no more pages, this value is null.
$sel:devices:ListDevicesResponse'
, listDevicesResponse_devices
- Information about the devices.
$sel:httpStatus:ListDevicesResponse'
, listDevicesResponse_httpStatus
- The response's http status code.
Response Lenses
listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text) Source #
The pagination token used to retrieve the next page of results for this operation. If there are no more pages, this value is null.
listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceSummary]) Source #
Information about the devices.
listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int Source #
The response's http status code.