describeRescoreExecutionPlan method

Future<DescribeRescoreExecutionPlanResponse> describeRescoreExecutionPlan({
  1. required String id,
})

Gets information about a rescore execution plan. 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 ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter id : The identifier of the rescore execution plan that you want to get information on.

Implementation

Future<DescribeRescoreExecutionPlanResponse> describeRescoreExecutionPlan({
  required String id,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'AWSKendraRerankingFrontendService.DescribeRescoreExecutionPlan'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Id': id,
    },
  );

  return DescribeRescoreExecutionPlanResponse.fromJson(jsonResponse.body);
}