listRescoreExecutionPlans method
Lists your rescore execution plans. A rescore execution plan is an Amazon
Kendra Intelligent Ranking resource used for provisioning the
Rescore API.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of rescore execution plans to return.
Parameter nextToken :
If the response is truncated, Amazon Kendra Intelligent Ranking returns a
pagination token in the response. You can use this pagination token to
retrieve the next set of rescore execution plans.
Implementation
Future<ListRescoreExecutionPlansResponse> listRescoreExecutionPlans({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target':
'AWSKendraRerankingFrontendService.ListRescoreExecutionPlans'
};
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 ListRescoreExecutionPlansResponse.fromJson(jsonResponse.body);
}