DataQualityRulesetProps
- class aws_cdk.aws_glue.DataQualityRulesetProps(*, dqdl, ruleset_name, target_table, description=None, removal_policy=None, tags=None)
Bases:
objectConstruction properties for
DataQualityRuleset.- Parameters:
dqdl (
Dqdl) – The DQDL document defining the ruleset’s data quality rules. Build it withDqdl.fromString(...).ruleset_name (
str) – The name of the ruleset.target_table (
DataQualityTargetTable) – The target table of the ruleset.description (
Optional[str]) – The description of the ruleset. Default: - no descriptionremoval_policy (
Optional[RemovalPolicy]) – Policy to apply when the ruleset is removed from the stack. Default: - resource will be destroyedtags (
Optional[Mapping[str,str]]) – Key-Value pairs that define tags for the ruleset. Default: empty tags
- 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
The description of the ruleset.
- Default:
no description
- Attribute:
true
- dqdl
The DQDL document defining the ruleset’s data quality rules.
Build it with
Dqdl.fromString(...).
- removal_policy
Policy to apply when the ruleset is removed from the stack.
- Default:
resource will be destroyed
- ruleset_name
The name of the ruleset.
- tags
Key-Value pairs that define tags for the ruleset.
- Default:
empty tags
- target_table
The target table of the ruleset.
- Attribute:
true