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 |
Returns a list of all devices on your Amazon Web Services account that have Amazon Web Services Snow Device Management enabled in the Amazon Web Services Region where the command is run.
This operation returns paginated results.
Synopsis
- data ListDevices = ListDevices' {}
- newListDevices :: ListDevices
- listDevices_jobId :: Lens' ListDevices (Maybe Text)
- listDevices_maxResults :: Lens' ListDevices (Maybe Natural)
- listDevices_nextToken :: Lens' ListDevices (Maybe Text)
- data ListDevicesResponse = ListDevicesResponse' {
- devices :: Maybe [DeviceSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDevicesResponse :: Int -> ListDevicesResponse
- listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceSummary])
- listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text)
- listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int
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:jobId:ListDevices'
, listDevices_jobId
- The ID of the job used to order the device.
$sel:maxResults:ListDevices'
, listDevices_maxResults
- The maximum number of devices to list per page.
ListDevices
, listDevices_nextToken
- A pagination token to continue to the next page of results.
Request Lenses
listDevices_jobId :: Lens' ListDevices (Maybe Text) Source #
The ID of the job used to order the device.
listDevices_maxResults :: Lens' ListDevices (Maybe Natural) Source #
The maximum number of devices to list per page.
listDevices_nextToken :: Lens' ListDevices (Maybe Text) Source #
A pagination token to continue to the next page of results.
Destructuring the Response
data ListDevicesResponse Source #
See: newListDevicesResponse
smart constructor.
ListDevicesResponse' | |
|
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:devices:ListDevicesResponse'
, listDevicesResponse_devices
- A list of device structures that contain information about the device.
ListDevices
, listDevicesResponse_nextToken
- A pagination token to continue to the next page of devices.
$sel:httpStatus:ListDevicesResponse'
, listDevicesResponse_httpStatus
- The response's http status code.
Response Lenses
listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceSummary]) Source #
A list of device structures that contain information about the device.
listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text) Source #
A pagination token to continue to the next page of devices.
listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int Source #
The response's http status code.