describeSolution method

Future<DescribeSolutionResponse> describeSolution({
  1. required String solutionArn,
})

Describes a solution. For more information on solutions, see CreateSolution.

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter solutionArn : The Amazon Resource Name (ARN) of the solution to describe.

Implementation

Future<DescribeSolutionResponse> describeSolution({
  required String solutionArn,
}) async {
  ArgumentError.checkNotNull(solutionArn, 'solutionArn');
  _s.validateStringLength(
    'solutionArn',
    solutionArn,
    0,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonPersonalize.DescribeSolution'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'solutionArn': solutionArn,
    },
  );

  return DescribeSolutionResponse.fromJson(jsonResponse.body);
}