updateAssessmentStatus method
Future<UpdateAssessmentStatusResponse>
updateAssessmentStatus({
- required String assessmentId,
- required AssessmentStatus status,
Updates the status of an assessment in Audit Manager.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ValidationException.
Parameter assessmentId :
The unique identifier for the assessment.
Parameter status :
The current status of the assessment.
Implementation
Future<UpdateAssessmentStatusResponse> updateAssessmentStatus({
required String assessmentId,
required AssessmentStatus status,
}) async {
final $payload = <String, dynamic>{
'status': status.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/assessments/${Uri.encodeComponent(assessmentId)}/status',
exceptionFnMap: _exceptionFns,
);
return UpdateAssessmentStatusResponse.fromJson(response);
}