updateAssessmentControlSetStatus method
Updates the status of a control set in an Audit Manager assessment.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter assessmentId :
The unique identifier for the assessment.
Parameter comment :
The comment that's related to the status update.
Parameter controlSetId :
The unique identifier for the control set.
Parameter status :
The status of the control set that's being updated.
Implementation
Future<UpdateAssessmentControlSetStatusResponse>
updateAssessmentControlSetStatus({
required String assessmentId,
required String comment,
required String controlSetId,
required ControlSetStatus status,
}) async {
final $payload = <String, dynamic>{
'comment': comment,
'status': status.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/assessments/${Uri.encodeComponent(assessmentId)}/controlSets/${Uri.encodeComponent(controlSetId)}/status',
exceptionFnMap: _exceptionFns,
);
return UpdateAssessmentControlSetStatusResponse.fromJson(response);
}