updateDataQualityRuleset method

Future<UpdateDataQualityRulesetResponse> updateDataQualityRuleset({
  1. required String name,
  2. String? description,
  3. String? ruleset,
})

Updates the specified data quality ruleset.

May throw AlreadyExistsException. May throw EntityNotFoundException. May throw IdempotentParameterMismatchException. May throw InternalServiceException. May throw InvalidInputException. May throw OperationTimeoutException. May throw ResourceNumberLimitExceededException.

Parameter name : The name of the data quality ruleset.

Parameter description : A description of the ruleset.

Parameter ruleset : A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.

Implementation

Future<UpdateDataQualityRulesetResponse> updateDataQualityRuleset({
  required String name,
  String? description,
  String? ruleset,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.UpdateDataQualityRuleset'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
      if (description != null) 'Description': description,
      if (ruleset != null) 'Ruleset': ruleset,
    },
  );

  return UpdateDataQualityRulesetResponse.fromJson(jsonResponse.body);
}