listBatchInferenceJobs method
Gets a list of the batch inference jobs that have been performed off of a solution version.
May throw InvalidInputException. May throw InvalidNextTokenException.
Parameter maxResults
:
The maximum number of batch inference job results to return in each page.
The default value is 100.
Parameter nextToken
:
The token to request the next page of results.
Parameter solutionVersionArn
:
The Amazon Resource Name (ARN) of the solution version from which the
batch inference jobs were created.
Implementation
Future<ListBatchInferenceJobsResponse> listBatchInferenceJobs({
int? maxResults,
String? nextToken,
String? solutionVersionArn,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
1300,
);
_s.validateStringLength(
'solutionVersionArn',
solutionVersionArn,
0,
256,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonPersonalize.ListBatchInferenceJobs'
};
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,
if (solutionVersionArn != null)
'solutionVersionArn': solutionVersionArn,
},
);
return ListBatchInferenceJobsResponse.fromJson(jsonResponse.body);
}