updateRuleset method
Updates specified ruleset.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter name :
The name of the ruleset to be updated.
Parameter rules :
A list of rules that are defined with the ruleset. A rule includes one or
more checks to be validated on a DataBrew dataset.
Parameter description :
The description of the ruleset.
Implementation
Future<UpdateRulesetResponse> updateRuleset({
required String name,
required List<Rule> rules,
String? description,
}) async {
final $payload = <String, dynamic>{
'Rules': rules,
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/rulesets/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return UpdateRulesetResponse.fromJson(response);
}