getControl method

Future<GetControlResponse> getControl({
  1. required String controlId,
})

Gets information about a specified control.

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

Parameter controlId : The identifier for the control.

Implementation

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