Skip to content
v2.278.0

DataQualityRulesetProps Struct ​

Construction properties for DataQualityRuleset.

Example ​

ts
declare const database: glue.IDatabase;
new glue.DataQualityRuleset(this, 'MyRuleset', {
  rulesetName: 'my_ruleset',
  dqdl: glue.Dqdl.fromString('Rules = [ RowCount > 100, IsComplete "order_id" ]'),
  targetTable: glue.DataQualityTargetTable.fromTableName(database, 'my_table'),
});
python
# 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")
)
java
IDatabase database;

DataQualityRuleset.Builder.create(this, "MyRuleset")
        .rulesetName("my_ruleset")
        .dqdl(Dqdl.fromString("Rules = [ RowCount > 100, IsComplete \"order_id\" ]"))
        .targetTable(DataQualityTargetTable.fromTableName(database, "my_table"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
IDatabase database;

new DataQualityRuleset(this, "MyRuleset", new DataQualityRulesetProps {
    RulesetName = "my_ruleset",
    Dqdl = Dqdl.FromString("Rules = [ RowCount > 100, IsComplete \"order_id\" ]"),
    TargetTable = DataQualityTargetTable.FromTableName(database, "my_table")
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var database IDatabase

glue.NewDataQualityRuleset(this, jsii.String("MyRuleset"), &DataQualityRulesetProps{
	RulesetName: jsii.String("my_ruleset"),
	Dqdl: glue.Dqdl_FromString(jsii.String("Rules = [ RowCount > 100, IsComplete \"order_id\" ]")),
	TargetTable: glue.DataQualityTargetTable_FromTableName(database, jsii.String("my_table")),
})

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the ruleset.

Default: no description

dqdlDqdldqdlDqdldqdlDqdlDqdlDqdlDqdlDqdl required #
The DQDL document defining the ruleset's data quality rules.

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

removalPolicyoptionalRemovalPolicyremoval_policyoptionalRemovalPolicyremovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicy #
Policy to apply when the ruleset is removed from the stack.

Default: resource will be destroyed

rulesetNamestringruleset_namestrrulesetNameStringRulesetNamestringRulesetName*string required #
The name of the ruleset.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
Key-Value pairs that define tags for the ruleset.

Default: empty tags

The target table of the ruleset.