listResources method

Future<ListResourcesResponse> listResources({
  1. List<FilterCondition>? filterConditionList,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the resources registered to be managed by the Data Catalog.

May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException.

Parameter filterConditionList : Any applicable row-level and/or column-level filtering conditions for the resources.

Parameter maxResults : The maximum number of resource results.

Parameter nextToken : A continuation token, if this is not the first call to retrieve these resources.

Implementation

Future<ListResourcesResponse> listResources({
  List<FilterCondition>? filterConditionList,
  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': 'AWSLakeFormation.ListResources'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (filterConditionList != null)
        'FilterConditionList': filterConditionList,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListResourcesResponse.fromJson(jsonResponse.body);
}