searchJobs method
Searches for Amazon Braket hybrid jobs that match the specified filter values.
May throw AccessDeniedException.
May throw InternalServiceException.
May throw ThrottlingException.
May throw ValidationException.
Parameter filters :
Array of SearchJobsFilter objects to use when searching for hybrid jobs.
Parameter maxResults :
The maximum number of results to return in the response.
Parameter nextToken :
A token used for pagination of results returned in the response. Use the
token returned from the previous request to continue search where the
previous request ended.
Implementation
Future<SearchJobsResponse> searchJobs({
required List<SearchJobsFilter> filters,
int? maxResults,
String? nextToken,
}) async {
final $payload = <String, dynamic>{
'filters': filters,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/jobs',
exceptionFnMap: _exceptionFns,
);
return SearchJobsResponse.fromJson(response);
}