getEvaluation method
Returns an Evaluation
that includes metadata as well as the
current status of the Evaluation
.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter evaluationId
:
The ID of the Evaluation
to retrieve. The evaluation of each
MLModel
is recorded and cataloged. The ID provides the means
to access the information.
Implementation
Future<GetEvaluationOutput> getEvaluation({
required String evaluationId,
}) async {
ArgumentError.checkNotNull(evaluationId, 'evaluationId');
_s.validateStringLength(
'evaluationId',
evaluationId,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonML_20141212.GetEvaluation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EvaluationId': evaluationId,
},
);
return GetEvaluationOutput.fromJson(jsonResponse.body);
}