DataQualityRulesetProps

class aws_cdk.aws_glue_alpha.DataQualityRulesetProps(*, dqdl, ruleset_name, target_table, description=None, removal_policy=None, tags=None)

Bases: object

(experimental) Construction properties for DataQualityRuleset.

Parameters:
  • dqdl (Dqdl) – (experimental) The DQDL document defining the ruleset’s data quality rules. Build it with Dqdl.fromString(...).

  • ruleset_name (str) – (experimental) The name of the ruleset.

  • target_table (DataQualityTargetTable) – (experimental) The target table of the ruleset.

  • description (Optional[str]) – (experimental) The description of the ruleset.

  • removal_policy (Optional[RemovalPolicy]) – (experimental) Policy to apply when the ruleset is removed from the stack. Default: - resource will be destroyed

  • tags (Optional[Mapping[str, str]]) – (experimental) Key-Value pairs that define tags for the ruleset. Default: empty tags

Stability:

experimental

ExampleMetadata:

infused

Example:

# database: glue.IDatabase

glue.DataQualityRuleset(self, "MyRuleset",
    ruleset_name="my_ruleset",
    dqdl=glue.Dqdl.from_string("Rules = [ RowCount > 100, IsComplete "order_id" ]"),
    target_table=glue.DataQualityTargetTable.from_table_name(database, "my_table")
)

Attributes

description

(experimental) The description of the ruleset.

Stability:

experimental

Attribute:

true

dqdl

(experimental) The DQDL document defining the ruleset’s data quality rules.

Build it with Dqdl.fromString(...).

Stability:

experimental

removal_policy

(experimental) Policy to apply when the ruleset is removed from the stack.

Default:
  • resource will be destroyed

Stability:

experimental

ruleset_name

(experimental) The name of the ruleset.

Stability:

experimental

tags

(experimental) Key-Value pairs that define tags for the ruleset.

Default:

empty tags

Stability:

experimental

target_table

(experimental) The target table of the ruleset.

Stability:

experimental

Attribute:

true