{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-create-data-quality-ruleset-request-schema.json",
  "title": "CreateDataQualityRulesetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-glue-aws-glue-x-amz-target-awsglue-createdataqualityruleset-api-api-openapi.yml#/components/schemas/CreateDataQualityRulesetRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "A unique name for the data quality ruleset."
    },
    "Description": {
      "type": "string",
      "description": "A description of the data quality ruleset."
    },
    "Ruleset": {
      "type": "string",
      "description": "A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of tags applied to the data quality ruleset."
    },
    "TargetTable": {
      "$ref": "#/$defs/DataQualityTargetTable"
    },
    "DataQualitySecurityConfiguration": {
      "type": "string",
      "description": "The name of the security configuration created with the data quality encryption option."
    },
    "ClientToken": {
      "type": "string",
      "description": "Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource."
    }
  },
  "required": [
    "Name",
    "Ruleset"
  ],
  "$defs": {
    "DataQualityTargetTable": {
      "type": "object",
      "properties": {
        "TableName": {
          "type": "string",
          "description": "The name of the Glue table."
        },
        "DatabaseName": {
          "type": "string",
          "description": "The name of the database where the Glue table exists."
        },
        "CatalogId": {
          "type": "string",
          "description": "The catalog id where the Glue table exists."
        }
      },
      "required": [
        "TableName",
        "DatabaseName"
      ]
    }
  }
}