{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-get-data-quality-rule-recommendation-run-response-schema.json",
  "title": "GetDataQualityRuleRecommendationRunResponse",
  "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-getdataqualityrulerecommendat-api-openapi.yml#/components/schemas/GetDataQualityRuleRecommendationRunResponse",
  "type": "object",
  "properties": {
    "RunId": {
      "type": "string",
      "description": "The unique run identifier associated with this run."
    },
    "DataSource": {
      "$ref": "#/$defs/DataSource"
    },
    "Role": {
      "type": "string",
      "description": "The IAM role that Glue assumes to access resources for the run."
    },
    "NumberOfWorkers": {
      "type": "integer",
      "description": "The number of G.1X workers to be used in the run. The default is 5."
    },
    "Timeout": {
      "type": "integer",
      "description": "The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours)."
    },
    "Status": {
      "type": "string",
      "enum": [
        "STARTING",
        "RUNNING",
        "STOPPING",
        "STOPPED",
        "SUCCEEDED",
        "FAILED",
        "TIMEOUT"
      ],
      "description": "The status for this run."
    },
    "ErrorString": {
      "type": "string",
      "description": "The error strings that are associated with the run."
    },
    "StartedOn": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when this run started."
    },
    "LastModifiedOn": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp. The last point in time when this data quality rule recommendation run was modified."
    },
    "CompletedOn": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when this run was completed."
    },
    "ExecutionTime": {
      "type": "integer",
      "description": "The amount of time (in seconds) that the run consumed resources."
    },
    "RecommendedRuleset": {
      "type": "string",
      "description": "When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member has those rules in Data Quality Definition Language (DQDL) format."
    },
    "CreatedRulesetName": {
      "type": "string",
      "description": "The name of the ruleset that was created by the run."
    },
    "DataQualitySecurityConfiguration": {
      "type": "string",
      "description": "The name of the security configuration created with the data quality encryption option."
    },
    "AdditionalRunOptions": {
      "$ref": "#/$defs/DataQualityRuleRecommendationRunAdditionalRunOptions"
    },
    "RecommendationMode": {
      "type": "string",
      "enum": [
        "BASIC",
        "ADVANCED"
      ],
      "description": "The mode that Glue Data Quality uses to recommend rules. The default is BASIC."
    }
  },
  "$defs": {
    "DataQualityGlueTable": {
      "type": "object",
      "properties": {
        "DatabaseName": {
          "type": "string",
          "description": "A database name in the Glue Data Catalog."
        },
        "TableName": {
          "type": "string",
          "description": "A table name in the Glue Data Catalog."
        },
        "CatalogId": {
          "type": "string",
          "description": "A unique identifier for the Glue Data Catalog."
        },
        "ConnectionName": {
          "type": "string",
          "description": "The name of the connection to the Glue Data Catalog."
        },
        "AdditionalOptions": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Additional options for the table. Currently there are two keys supported: pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset. catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog."
        },
        "PreProcessingQuery": {
          "type": "string",
          "description": "SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation."
        }
      },
      "required": [
        "DatabaseName",
        "TableName"
      ]
    },
    "DataQualityRuleRecommendationRunAdditionalRunOptions": {
      "type": "object",
      "properties": {
        "CustomLogGroupPrefix": {
          "type": "string",
          "description": "A custom prefix for the CloudWatch log group names. When specified, recommendation run logs are written to /error and /output instead of the default /aws-glue/data-quality/error and /aws-glue/data-quality/output log groups."
        }
      }
    },
    "DataSource": {
      "type": "object",
      "properties": {
        "GlueTable": {
          "$ref": "#/$defs/GlueTable"
        },
        "DataQualityGlueTable": {
          "$ref": "#/$defs/DataQualityGlueTable"
        }
      }
    },
    "GlueTable": {
      "type": "object",
      "properties": {
        "DatabaseName": {
          "type": "string",
          "description": "A database name in the Glue Data Catalog."
        },
        "TableName": {
          "type": "string",
          "description": "A table name in the Glue Data Catalog."
        },
        "CatalogId": {
          "type": "string",
          "description": "A unique identifier for the Glue Data Catalog."
        },
        "ConnectionName": {
          "type": "string",
          "description": "The name of the connection to the Glue Data Catalog."
        },
        "AdditionalOptions": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Additional options for the table. Currently there are two keys supported: pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset. catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog."
        }
      },
      "required": [
        "DatabaseName",
        "TableName"
      ]
    }
  }
}