getClassifiers method

Future<GetClassifiersResponse> getClassifiers({
  1. int? maxResults,
  2. String? nextToken,
})

Lists all classifier objects in the Data Catalog.

May throw OperationTimeoutException.

Parameter maxResults : The size of the list to return (optional).

Parameter nextToken : An optional continuation token.

Implementation

Future<GetClassifiersResponse> getClassifiers({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.GetClassifiers'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return GetClassifiersResponse.fromJson(jsonResponse.body);
}