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 for devices using the specified filters.
This operation returns paginated results.
Synopsis
- data SearchDevices = SearchDevices' {}
- newSearchDevices :: SearchDevices
- searchDevices_nextToken :: Lens' SearchDevices (Maybe Text)
- searchDevices_maxResults :: Lens' SearchDevices (Maybe Natural)
- searchDevices_filters :: Lens' SearchDevices [SearchDevicesFilter]
- data SearchDevicesResponse = SearchDevicesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- devices :: [DeviceSummary]
- newSearchDevicesResponse :: Int -> SearchDevicesResponse
- searchDevicesResponse_nextToken :: Lens' SearchDevicesResponse (Maybe Text)
- searchDevicesResponse_httpStatus :: Lens' SearchDevicesResponse Int
- searchDevicesResponse_devices :: Lens' SearchDevicesResponse [DeviceSummary]
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:nextToken:SearchDevices'
, searchDevices_nextToken
- A token used for pagination of results returned in the response. Use the
token returned from the previous request continue results where the
previous request ended.
$sel:maxResults:SearchDevices'
, searchDevices_maxResults
- The maximum number of results to return in the response.
$sel:filters:SearchDevices'
, searchDevices_filters
- The filter values to use to search for a device.
Request Lenses
searchDevices_nextToken :: Lens' SearchDevices (Maybe Text) Source #
A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended.
searchDevices_maxResults :: Lens' SearchDevices (Maybe Natural) Source #
The maximum number of results to return in the response.
searchDevices_filters :: Lens' SearchDevices [SearchDevicesFilter] Source #
The filter values to use to search for a device.
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
- A token used for pagination of results, or null if there are no
additional results. Use the token value in a subsequent request to
continue results where the previous request ended.
$sel:httpStatus:SearchDevicesResponse'
, searchDevicesResponse_httpStatus
- The response's http status code.
$sel:devices:SearchDevicesResponse'
, searchDevicesResponse_devices
- An array of DeviceSummary
objects for devices that match the specified
filter values.
Response Lenses
searchDevicesResponse_nextToken :: Lens' SearchDevicesResponse (Maybe Text) Source #
A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.
searchDevicesResponse_httpStatus :: Lens' SearchDevicesResponse Int Source #
The response's http status code.
searchDevicesResponse_devices :: Lens' SearchDevicesResponse [DeviceSummary] Source #
An array of DeviceSummary
objects for devices that match the specified
filter values.