Provides a Glue Data Quality Ruleset Resource. You can refer to the Glue Developer Guide for a full explanation of the Glue Data Quality Ruleset functionality
resource "aws_glue_data_quality_ruleset" "example" {
name = "example"
ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"
}
resource "aws_glue_data_quality_ruleset" "example" {
name = "example"
description = "example"
ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"
}
resource "aws_glue_data_quality_ruleset" "example" {
name = "example"
ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"
tags = {
"hello" = "world"
}
}
resource "aws_glue_data_quality_ruleset" "example" {
name = "example"
ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"
target_table {
database_name = aws_glue_catalog_database.example.name
table_name = aws_glue_catalog_table.example.name
}
}
This resource supports the following arguments:
description
- (Optional) Description of the data quality ruleset.name
- (Required, Forces new resource) Name of the data quality ruleset.ruleset
- (Optional) A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.target_table
- (Optional, Forces new resource) A Configuration block specifying a target table associated with the data quality ruleset. See target_table
below.catalog_id
- (Optional, Forces new resource) The catalog id where the AWS Glue table exists.database_name
- (Required, Forces new resource) Name of the database where the AWS Glue table exists.table_name
- (Required, Forces new resource) Name of the AWS Glue table.This resource exports the following attributes in addition to the arguments above:
arn
- ARN of the Glue Data Quality Ruleset.created_on
- The time and date that this data quality ruleset was created.last_modified_on
- The time and date that this data quality ruleset was created.recommendation_run_id
- When a ruleset was created from a recommendation run, this run ID is generated to link the two together.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import Glue Data Quality Ruleset using the name
. For example:
import {
to = aws_glue_data_quality_ruleset.example
id = "exampleName"
}
Using terraform import
, import Glue Data Quality Ruleset using the name
. For example:
% terraform import aws_glue_data_quality_ruleset.example exampleName