describeSolutionVersion method

Future<DescribeSolutionVersionResponse> describeSolutionVersion({
  1. required String solutionVersionArn,
})

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

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter solutionVersionArn : The Amazon Resource Name (ARN) of the solution version.

Implementation

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

  return DescribeSolutionVersionResponse.fromJson(jsonResponse.body);
}