DataQualityTargetTable
- class aws_cdk.aws_glue.DataQualityTargetTable(*args: Any, **kwargs)
Bases:
objectThe Glue table a
DataQualityRulesetevaluates.- 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
- database_name
The database name of the target table.
- table_name
The table name of the target table.
Static Methods
- classmethod from_table(database, table)
Target an L2 table in a database.
- Parameters:
database (
IDatabaseRef) – the database that holds the table.table (
ITable) – the table to evaluate.
- Return type:
- classmethod from_table_name(database, table_name)
Target a table by name in a database.
Use this when the table is not modeled as an L2 construct (e.g. it is imported or created elsewhere).
- Parameters:
database (
IDatabaseRef) – the database that holds the table.table_name (
str) – the name of the table to evaluate.
- Return type: