npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aws-mdaa/dataops-data-quality-l3-construct

v1.4.0

Published

MDAA DataOps Data Quality L3 Construct

Downloads

50

Readme

DataOps Data Quality L3 Construct

AWS CDK L3 Construct for deploying AWS Glue Data Quality rulesets in DataOps workflows.

Overview

This construct creates AWS Glue Data Quality rulesets for automated validation and monitoring of data in Glue Catalog tables. It supports both DQDL (Data Quality Definition Language) strings and structured rule objects for defining validation rules.

Features

  • Flexible Rule Definition: Support for both raw DQDL strings and structured rule objects
  • Comprehensive Rule Types: 15+ built-in rule types for common validation scenarios
  • SSM Integration: Automatic publishing of ruleset metadata to SSM Parameter Store
  • Project Integration: Seamless integration with DataOps project infrastructure
  • Type Safety: Full TypeScript type definitions for all rule types

Installation

npm install @aws-mdaa/dataops-data-quality-l3-construct

Usage

Basic Example

import { DataOpsDataQualityL3Construct } from '@aws-mdaa/dataops-data-quality-l3-construct';
import { Stack } from 'aws-cdk-lib';

const stack = new Stack(app, 'DataQualityStack');

new DataOpsDataQualityL3Construct(stack, 'DataQuality', {
  naming: myNaming,
  domainUnit: myDomainUnit,
  projectName: 'my-dataops-project',
  rulesetConfigs: {
    'customer-quality': {
      name: 'customer-data-validation',
      description: 'Validate customer data quality',
      targetTable: {
        databaseName: 'customer_db',
        tableName: 'customers',
      },
      ruleset: [
        {
          RuleType: 'IsComplete',
          Column: 'customer_id',
        },
        {
          RuleType: 'Uniqueness',
          Column: 'email',
          Operator: '>',
          Threshold: 0.95,
        },
      ],
    },
  },
});

Using DQDL Strings

new DataOpsDataQualityL3Construct(stack, 'DataQuality', {
  naming: myNaming,
  domainUnit: myDomainUnit,
  projectName: 'my-dataops-project',
  rulesetConfigs: {
    'order-quality': {
      name: 'order-validation',
      targetTable: {
        databaseName: 'orders_db',
        tableName: 'orders',
      },
      ruleset: `Rules = [
        IsComplete "order_id",
        ColumnValues "status" in ["pending", "completed", "cancelled"],
        RowCount > 0
      ]`,
    },
  },
});

Supported Rule Types

Completeness Rules

  • IsComplete: Column has no null values
  • Completeness: Column meets completeness threshold

Uniqueness Rules

  • IsUnique: Column has all unique values
  • Uniqueness: Column meets uniqueness threshold
  • IsPrimaryKey: Column is a valid primary key

Schema Rules

  • ColumnExists: Column exists in table
  • ColumnDataType: Column has expected data type
  • ColumnLength: Column length meets criteria

Value Rules

  • ColumnValues: Column values are in allowed set

Count Rules

  • RowCount: Table row count meets criteria
  • ColumnCount: Table column count meets criteria

Statistical Rules

  • Mean: Column mean meets criteria
  • StandardDeviation: Column standard deviation meets criteria

Freshness Rules

  • DataFreshness: Data is recent based on timestamp column

Custom Rules

  • CustomSql: Custom SQL queries for complex validation

API Reference

DataOpsDataQualityL3ConstructProps

| Property | Type | Required | Description | |----------|------|----------|-------------| | rulesetConfigs | { [key: string]: DataQualityRulesetDefinition } | Yes | Map of ruleset configurations | | projectName | string | Yes | DataOps project name for resource coordination | | naming | IMdaaResourceNaming | Yes | Naming configuration | | domainUnit | DomainUnit | Yes | Domain unit configuration |

DataQualityRulesetDefinition

| Property | Type | Required | Description | |----------|------|----------|-------------| | name | string | Yes | Unique ruleset name | | targetTable | DataQualityTargetTable | Yes | Target table configuration | | ruleset | string \| DataQualityRule[] | Yes | DQDL string or rule objects | | description | string | No | Ruleset description |

DataQualityTargetTable

| Property | Type | Required | Description | |----------|------|----------|-------------| | databaseName | string | Yes | Glue database name | | tableName | string | Yes | Glue table name | | catalogId | string | No | AWS account ID for cross-account access |

DataQualityRule

| Property | Type | Required | Description | |----------|------|----------|-------------| | RuleType | string | Yes | Type of validation rule | | Column | string | No | Column name for column-specific rules | | Operator | string | No | Comparison operator | | Threshold | number | No | Threshold value (0-1) | | Value | number | No | Numeric comparison value | | Values | (string \| number)[] | No | Allowed values list | | Where | string | No | SQL WHERE clause | | Sql | string | No | Custom SQL query | | DataType | string | No | Expected data type | | Duration | string | No | Duration for freshness checks |

License

This project is licensed under the Apache-2.0 License.