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 |
Searches devices and lists the ones that meet a set of filter criteria.
This operation returns paginated results.
Synopsis
- data SearchDevices = SearchDevices' {}
- newSearchDevices :: SearchDevices
- searchDevices_filters :: Lens' SearchDevices (Maybe [Filter])
- searchDevices_sortCriteria :: Lens' SearchDevices (Maybe [Sort])
- searchDevices_nextToken :: Lens' SearchDevices (Maybe Text)
- searchDevices_maxResults :: Lens' SearchDevices (Maybe Natural)
- data SearchDevicesResponse = SearchDevicesResponse' {
- nextToken :: Maybe Text
- devices :: Maybe [DeviceData]
- totalCount :: Maybe Int
- httpStatus :: Int
- newSearchDevicesResponse :: Int -> SearchDevicesResponse
- searchDevicesResponse_nextToken :: Lens' SearchDevicesResponse (Maybe Text)
- searchDevicesResponse_devices :: Lens' SearchDevicesResponse (Maybe [DeviceData])
- searchDevicesResponse_totalCount :: Lens' SearchDevicesResponse (Maybe Int)
- searchDevicesResponse_httpStatus :: Lens' SearchDevicesResponse Int
Creating a Request
data SearchDevices Source #
See: newSearchDevices
smart constructor.
SearchDevices' | |
|
Instances
newSearchDevices :: SearchDevices Source #
Create a value of SearchDevices
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:filters:SearchDevices'
, searchDevices_filters
- The filters to use to list a specified set of devices. Supported filter
keys are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName,
DeviceType, DeviceSerialNumber, UnassociatedOnly, ConnectionStatus
(ONLINE and OFFLINE), NetworkProfileName, NetworkProfileArn, Feature,
and FailureCode.
$sel:sortCriteria:SearchDevices'
, searchDevices_sortCriteria
- The sort order to use in listing the specified set of devices. Supported
sort keys are DeviceName, DeviceStatus, RoomName, DeviceType,
DeviceSerialNumber, ConnectionStatus, NetworkProfileName,
NetworkProfileArn, Feature, and FailureCode.
$sel:nextToken:SearchDevices'
, searchDevices_nextToken
- An optional token returned from a prior request. Use this token for
pagination of results from this action. If this parameter is specified,
the response includes only results beyond the token, up to the value
specified by MaxResults
.
$sel:maxResults:SearchDevices'
, searchDevices_maxResults
- The maximum number of results to include in the response. If more
results exist than the specified MaxResults
value, a token is included
in the response so that the remaining results can be retrieved.
Request Lenses
searchDevices_filters :: Lens' SearchDevices (Maybe [Filter]) Source #
The filters to use to list a specified set of devices. Supported filter keys are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, DeviceSerialNumber, UnassociatedOnly, ConnectionStatus (ONLINE and OFFLINE), NetworkProfileName, NetworkProfileArn, Feature, and FailureCode.
searchDevices_sortCriteria :: Lens' SearchDevices (Maybe [Sort]) Source #
The sort order to use in listing the specified set of devices. Supported sort keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, ConnectionStatus, NetworkProfileName, NetworkProfileArn, Feature, and FailureCode.
searchDevices_nextToken :: Lens' SearchDevices (Maybe Text) Source #
An optional token returned from a prior request. Use this token for
pagination of results from this action. If this parameter is specified,
the response includes only results beyond the token, up to the value
specified by MaxResults
.
searchDevices_maxResults :: Lens' SearchDevices (Maybe Natural) Source #
The maximum number of results to include in the response. If more
results exist than the specified MaxResults
value, a token is included
in the response so that the remaining results can be retrieved.
Destructuring the Response
data SearchDevicesResponse Source #
See: newSearchDevicesResponse
smart constructor.
SearchDevicesResponse' | |
|
Instances
newSearchDevicesResponse Source #
Create a value of SearchDevicesResponse
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:SearchDevices'
, searchDevicesResponse_nextToken
- The token returned to indicate that there is more data available.
$sel:devices:SearchDevicesResponse'
, searchDevicesResponse_devices
- The devices that meet the specified set of filter criteria, in sort
order.
$sel:totalCount:SearchDevicesResponse'
, searchDevicesResponse_totalCount
- The total number of devices returned.
$sel:httpStatus:SearchDevicesResponse'
, searchDevicesResponse_httpStatus
- The response's http status code.
Response Lenses
searchDevicesResponse_nextToken :: Lens' SearchDevicesResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
searchDevicesResponse_devices :: Lens' SearchDevicesResponse (Maybe [DeviceData]) Source #
The devices that meet the specified set of filter criteria, in sort order.
searchDevicesResponse_totalCount :: Lens' SearchDevicesResponse (Maybe Int) Source #
The total number of devices returned.
searchDevicesResponse_httpStatus :: Lens' SearchDevicesResponse Int Source #
The response's http status code.