# Dqdl

The Data Quality Definition Language (DQDL) document for a `DataQualityRuleset`.

DQDL is an authored string that Glue parses and validates at deploy time. Build
one from a raw DQDL string with {@link Dqdl.fromString}.

- Source: [`aws-glue/lib/data-quality-ruleset.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-glue/lib/data-quality-ruleset.ts#L60)
- 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'),
});
```

## Methods

- `fromString(dqdl: string): Dqdl // chainable` (static) — Create a `Dqdl` from a raw DQDL string.

  **Parameters**

  - `dqdl` — the DQDL document, e.g. `Rules = [ RowCount > 100 ]`.
