| 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 |
Amazonka.Braket.SearchDevices
Description
Searches for devices using the specified filters.
This operation returns paginated results.
Synopsis
- data SearchDevices = SearchDevices' {}
- newSearchDevices :: SearchDevices
- searchDevices_maxResults :: Lens' SearchDevices (Maybe Natural)
- searchDevices_nextToken :: Lens' SearchDevices (Maybe Text)
- 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.
Constructors
| SearchDevices' | |
Fields
| |
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:maxResults:SearchDevices', searchDevices_maxResults - The maximum number of results to return in the response.
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:filters:SearchDevices', searchDevices_filters - The filter values to use to search for a device.
Request Lenses
searchDevices_maxResults :: Lens' SearchDevices (Maybe Natural) Source #
The maximum number of results to return in the response.
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_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.
Constructors
| SearchDevicesResponse' | |
Fields
| |
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:
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.