deleteEvaluation method
Assigns the DELETED status to an Evaluation,
rendering it unusable.
After invoking the DeleteEvaluation operation, you can use
the GetEvaluation operation to verify that the status of the
Evaluation changed to DELETED.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter evaluationId :
A user-supplied ID that uniquely identifies the Evaluation to
delete.
Implementation
Future<DeleteEvaluationOutput> deleteEvaluation({
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.DeleteEvaluation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EvaluationId': evaluationId,
},
);
return DeleteEvaluationOutput.fromJson(jsonResponse.body);
}