listDataQualityRulesets method
Returns a paginated list of rulesets for the specified list of Glue tables.
May throw EntityNotFoundException.
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.
Parameter tags :
A list of key-value pair tags.
Implementation
Future<ListDataQualityRulesetsResponse> listDataQualityRulesets({
DataQualityRulesetFilterCriteria? filter,
int? maxResults,
String? nextToken,
Map<String, String>? tags,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.ListDataQualityRulesets'
};
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,
if (tags != null) 'Tags': tags,
},
);
return ListDataQualityRulesetsResponse.fromJson(jsonResponse.body);
}