Skip to main content

data_quality_rulesets

Creates, updates, deletes, gets or lists a data_quality_rulesets resource.

Overview

Namedata_quality_rulesets
TypeResource
Idaws.glue.data_quality_rulesets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_onstring (date-time)A timestamp. The time and date that this data quality ruleset was created.
data_quality_security_configurationstringThe name of the security configuration created with the data quality encryption option. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
descriptionstringA description of the ruleset. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*</code>)
last_modified_onstring (date-time)A timestamp. The last point in time when this data quality ruleset was modified.
namestringThe name of the ruleset. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
recommendation_run_idstringWhen a ruleset was created from a recommendation run, this run ID is generated to link the two together. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
rulesetstringA Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.
target_tableobjectThe name and database name of the target table.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_quality_rulesetselectregionReturns an existing ruleset by identifier or name.
create_data_quality_rulesetinsertregionCreates a data quality ruleset with DQDL rules applied to a specified Glue table. You create the ruleset using the Data Quality Definition Language (DQDL). For more information, see the Glue developer guide.
update_data_quality_rulesetupdateregionUpdates the specified data quality ruleset.
delete_data_quality_rulesetdeleteregionDeletes a data quality ruleset.
cancel_data_quality_ruleset_evaluation_runexecregion, RunIdCancels a run where a ruleset is being evaluated against a data source.
list_data_quality_rulesetsexecregionReturns a paginated list of rulesets for the specified list of Glue tables.
start_data_quality_ruleset_evaluation_runexecregion, DataSource, Role, RulesetNamesOnce you have a ruleset definition (either recommended or your own), you call this operation to evaluate the ruleset against a data source (Glue table). The evaluation computes results which you can retrieve with the GetDataQualityResult API.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns an existing ruleset by identifier or name.

SELECT
created_on,
data_quality_security_configuration,
description,
last_modified_on,
name,
recommendation_run_id,
ruleset,
target_table
FROM aws.glue.data_quality_rulesets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a data quality ruleset with DQDL rules applied to a specified Glue table. You create the ruleset using the Data Quality Definition Language (DQDL). For more information, see the Glue developer guide.

INSERT INTO aws.glue.data_quality_rulesets (
Name,
Description,
Ruleset,
Tags,
TargetTable,
DataQualitySecurityConfiguration,
ClientToken,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Ruleset }}',
'{{ Tags }}',
'{{ TargetTable }}',
'{{ DataQualitySecurityConfiguration }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
name
;

UPDATE examples

Updates the specified data quality ruleset.

UPDATE aws.glue.data_quality_rulesets
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
Ruleset = '{{ Ruleset }}'
WHERE
region = '{{ region }}' --required
RETURNING
description,
name,
ruleset;

DELETE examples

Deletes a data quality ruleset.

DELETE FROM aws.glue.data_quality_rulesets
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Cancels a run where a ruleset is being evaluated against a data source.

EXEC aws.glue.data_quality_rulesets.cancel_data_quality_ruleset_evaluation_run
@region='{{ region }}' --required
@@json=
'{
"RunId": "{{ RunId }}"
}'
;