listMediaAnalysisJobs method
Returns a list of media analysis jobs. Results are sorted by
CreationTimestamp in descending order.
May throw AccessDeniedException.
May throw InternalServerError.
May throw InvalidPaginationTokenException.
May throw InvalidParameterException.
May throw ProvisionedThroughputExceededException.
May throw ThrottlingException.
Parameter maxResults :
The maximum number of results to return per paginated call. The largest
value user can specify is 100. If user specifies a value greater than 100,
an InvalidParameterException error occurs. The default value
is 100.
Parameter nextToken :
Pagination token, if the previous response was incomplete.
Implementation
Future<ListMediaAnalysisJobsResponse> listMediaAnalysisJobs({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RekognitionService.ListMediaAnalysisJobs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListMediaAnalysisJobsResponse.fromJson(jsonResponse.body);
}