listDataQualityRulesetEvaluationRuns method

Future<ListDataQualityRulesetEvaluationRunsResponse> listDataQualityRulesetEvaluationRuns({
  1. DataQualityRulesetEvaluationRunFilter? filter,
  2. int? maxResults,
  3. String? nextToken,
})

Lists all the runs meeting the filter criteria, where a ruleset is evaluated against a data source.

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

Parameter filter : The filter criteria.

Parameter maxResults : The maximum number of results to return.

Parameter nextToken : A paginated token to offset the results.

Implementation

Future<ListDataQualityRulesetEvaluationRunsResponse>
    listDataQualityRulesetEvaluationRuns({
  DataQualityRulesetEvaluationRunFilter? filter,
  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.ListDataQualityRulesetEvaluationRuns'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (filter != null) 'Filter': filter,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListDataQualityRulesetEvaluationRunsResponse.fromJson(
      jsonResponse.body);
}