Resource: aws_glue_data_quality_ruleset

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

Example Usage

Basic

resource "aws_glue_data_quality_ruleset" "example" {
  name    = "example"
  ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"
}

With description

resource "aws_glue_data_quality_ruleset" "example" {
  name        = "example"
  description = "example"
  ruleset     = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"
}

With tags

resource "aws_glue_data_quality_ruleset" "example" {
  name    = "example"
  ruleset = "Rules = [Completeness \"colA\" between 0.4 and 0.8]"

  tags = {
    "hello" = "world"
  }
}

With target_table

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
  }
}

Argument Reference

This resource supports the following arguments:

target_table

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

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