deleteControl method

Future<void> deleteControl({
  1. required String controlId,
})

Deletes a custom control in Audit Manager.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter controlId : The unique identifier for the control.

Implementation

Future<void> deleteControl({
  required String controlId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/controls/${Uri.encodeComponent(controlId)}',
    exceptionFnMap: _exceptionFns,
  );
}