# DataQualityTargetTable

The Glue table a `DataQualityRuleset` evaluates.

- Source: [`aws-glue/lib/data-quality-ruleset.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-glue/lib/data-quality-ruleset.ts#L14)
- Type last changed: v2.270.0 · 17 Sep 2026

## 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'),
});
```

## Properties

- `databaseName`: string — The database name of the target table.

- `tableName`: string — The table name of the target table.

## Methods

- `fromTable(database: IDatabaseRef, table: ITable): DataQualityTargetTable // chainable` (static) — Target an L2 table in a database.

  **Parameters**

  - `database` — the database that holds the table.
  - `table` — the table to evaluate.

- `fromTableName(database: IDatabaseRef, tableName: string): DataQualityTargetTable // chainable` (static) — 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` — the database that holds the table.
  - `tableName` — the name of the table to evaluate.
