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.
Caution: The results of the DeleteEvaluation operation
are irreversible.
May throw InternalServerException.
May throw InvalidInputException.
May throw ResourceNotFoundException.
Parameter evaluationId :
A user-supplied ID that uniquely identifies the Evaluation to
delete.
Implementation
Future<DeleteEvaluationOutput> deleteEvaluation({
required String evaluationId,
}) async {
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);
}