describeSolution method
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 {
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);
}