getWorkGroup method

Future<GetWorkGroupOutput> getWorkGroup({
  1. required String workGroup,
})

Returns information about the workgroup with the specified name.

May throw InternalServerException. May throw InvalidRequestException.

Parameter workGroup : The name of the workgroup.

Implementation

Future<GetWorkGroupOutput> getWorkGroup({
  required String workGroup,
}) async {
  ArgumentError.checkNotNull(workGroup, 'workGroup');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonAthena.GetWorkGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'WorkGroup': workGroup,
    },
  );

  return GetWorkGroupOutput.fromJson(jsonResponse.body);
}