updateEvaluation method
Updates the EvaluationName of an Evaluation.
You can use the GetEvaluation operation to view the contents
of the updated data element.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter evaluationId :
The ID assigned to the Evaluation during creation.
Parameter evaluationName :
A new user-supplied name or description of the Evaluation
that will replace the current content.
Implementation
Future<UpdateEvaluationOutput> updateEvaluation({
required String evaluationId,
required String evaluationName,
}) async {
ArgumentError.checkNotNull(evaluationId, 'evaluationId');
_s.validateStringLength(
'evaluationId',
evaluationId,
1,
64,
isRequired: true,
);
ArgumentError.checkNotNull(evaluationName, 'evaluationName');
_s.validateStringLength(
'evaluationName',
evaluationName,
0,
1024,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonML_20141212.UpdateEvaluation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EvaluationId': evaluationId,
'EvaluationName': evaluationName,
},
);
return UpdateEvaluationOutput.fromJson(jsonResponse.body);
}