private ListWorkGroupsResponse listWorkgroup()

in workgroup/src/main/java/software/amazon/athena/workgroup/ListHandler.java [53:65]


  private ListWorkGroupsResponse listWorkgroup(final String nextToken) {
    final ListWorkGroupsRequest listWorkGroupsRequest = ListWorkGroupsRequest.builder()
      .nextToken(nextToken)
      .maxResults(MAX_RESULTS)
      .build();
    try {
      return clientProxy.injectCredentialsAndInvokeV2(listWorkGroupsRequest, athenaClient::listWorkGroups);
    } catch (InternalServerException e) {
      throw new CfnGeneralServiceException("listWorkGroupsRequest", e);
    } catch (InvalidRequestException e) {
      throw new CfnInvalidRequestException(e.getMessage(), e);
    }
  }