getRecommendation method

Future<GetRecommendationResponse> getRecommendation({
  1. required String recommendationId,
})

Retrieves detailed information about a recommendation, including its configuration, status, and results.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter recommendationId : The unique identifier of the recommendation to retrieve.

Implementation

Future<GetRecommendationResponse> getRecommendation({
  required String recommendationId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/recommendations/${Uri.encodeComponent(recommendationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetRecommendationResponse.fromJson(response);
}