Data Quality API
The Data Quality API describes the data quality data types, and includes the API for creating, deleting, or updating data quality rulesets, runs and evaluations.
Data types
DataSource structure
A data source (an AWS Glue table) for which you want data quality results.
Fields
-
GlueTable– A GlueTable object.An AWS Glue table.
-
DataQualityGlueTable– A DataQualityGlueTable object.An AWS Glue table for Data Quality Operations.
DataQualityRulesetListDetails structure
Describes a data quality ruleset returned by GetDataQualityRuleset.
Fields
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the data quality ruleset.
-
CreatedOn– Timestamp.The date and time the data quality ruleset was created.
-
LastModifiedOn– Timestamp.The date and time the data quality ruleset was last modified.
-
TargetTable– A DataQualityTargetTable object.An object representing an AWS Glue table.
-
RecommendationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.When a ruleset was created from a recommendation run, this run ID is generated to link the two together.
-
RuleCount– Number (integer).The number of rules in the ruleset.
DataQualityTargetTable structure
An object representing an AWS Glue table.
Fields
-
TableName– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the AWS Glue table.
-
DatabaseName– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the database where the AWS Glue table exists.
-
CatalogId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The catalog id where the AWS Glue table exists.
DataQualityRulesetEvaluationRunDescription structure
Describes the result of a data quality ruleset evaluation run.
Fields
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
-
Status– UTF-8 string (valid values:RUNNING|FINISHED|FAILED|PENDING_EXECUTION|TIMED_OUT|CANCELING|CANCELED|RECEIVED_BY_TASKRUNNER).The status for this run.
-
StartedOn– Timestamp.The date and time when the run started.
-
DataSource– A DataSource object.The data source (an AWS Glue table) associated with the run.
DataQualityRulesetEvaluationRunFilter structure
The filter criteria.
Fields
-
DataSource– Required: A DataSource object.Filter based on a data source (an AWS Glue table) associated with the run.
-
StartedBefore– Timestamp.Filter results by runs that started before this time.
-
StartedAfter– Timestamp.Filter results by runs that started after this time.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.Filter results by the name of the ruleset.
DataQualityRulesetEvaluationRun structure
The details of a data quality ruleset evaluation run.
Fields
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
-
Role– UTF-8 string.An IAM role supplied to encrypt the results of the run.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
Status– UTF-8 string (valid values:RUNNING|FINISHED|FAILED|PENDING_EXECUTION|TIMED_OUT|CANCELING|CANCELED|RECEIVED_BY_TASKRUNNER).The status for this run.
-
ErrorString– UTF-8 string.The error strings that are associated with the run.
-
StartedOn– Timestamp.The date and time when this run started.
-
LastModifiedOn– Timestamp.A timestamp. The last point in time when this run was modified.
-
CompletedOn– Timestamp.The date and time when this run was completed.
-
ExecutionTime– Number (integer).The amount of time (in seconds) that the run consumed resources.
-
RulesetNames– An array of UTF-8 strings, not less than 1 or more than 10 strings.A list of ruleset names for the run.
-
ResultIds– An array of UTF-8 strings, not less than 1 or more than 10 strings.A list of result IDs for the data quality results for the run.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
DataQualityEvaluationRunAdditionalRunOptions structure
Additional run options you can specify for an evaluation run.
Fields
-
CloudWatchMetricsEnabled– Boolean.Whether or not to enable CloudWatch metrics.
-
ResultsS3Prefix– UTF-8 string.Prefix for Amazon S3 to store results.
-
CompositeRuleEvaluationMethod– UTF-8 string (valid values:COLUMN|ROW).Set the evaluation method for composite rules in the ruleset to ROW/COLUMN
-
CustomLogGroupPrefix– UTF-8 string.A custom prefix for the CloudWatch log group names. When specified, evaluation run logs are written to
<CustomLogGroupPrefix>/errorand<CustomLogGroupPrefix>/outputinstead of the default/aws-glue/data-quality/errorand/aws-glue/data-quality/outputlog groups. -
RowLevelResults– A RowLevelResultsOptions object.The configuration for writing row-level evaluation results to a AWS Glue Data Catalog table.
-
ProfilingResults– A ProfilingResultsOptions object.The configuration for writing profiling results to a AWS Glue Data Catalog table.
-
ObservationScope– UTF-8 string (valid values:ALL|NONE).The scope of the observation for the evaluation run. Specifies whether anomaly detection is enabled or disabled.
-
ObservationMode– UTF-8 string (valid values:SCHEDULED|FIXED).The observation mode for the evaluation run. Specifies how anomaly detection bounds are calculated.
-
DataQualityRuleResults– A DataQualityRuleResultsOptions object.The configuration for writing rule results to a AWS Glue Data Catalog table.
-
ObservationResults– An ObservationResultsOptions object.The configuration for writing observation results to a AWS Glue Data Catalog table.
DataQualityRuleRecommendationRunDescription structure
Describes the result of a data quality rule recommendation run.
Fields
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
-
Status– UTF-8 string (valid values:RUNNING|FINISHED|FAILED|PENDING_EXECUTION|TIMED_OUT|CANCELING|CANCELED|RECEIVED_BY_TASKRUNNER).The status for this run.
-
StartedOn– Timestamp.The date and time when this run started.
-
DataSource– A DataSource object.The data source (AWS Glue table) associated with the recommendation run.
-
CreatedRulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset that was created by the recommendation run.
-
RecommendationMode– UTF-8 string (valid values:BASIC|ADVANCED).The mode that AWS Glue Data Quality uses to recommend rules.
The default is
BASIC.
DataQualityRuleRecommendationRunFilter structure
A filter for listing data quality recommendation runs.
Fields
-
DataSource– Required: A DataSource object.Filter based on a specified data source (AWS Glue table).
-
StartedBefore– Timestamp.Filter based on time for results started before provided time.
-
StartedAfter– Timestamp.Filter based on time for results started after provided time.
DataQualityResult structure
Describes a data quality result.
Fields
-
ResultId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique result ID for the data quality result.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).How the evaluation run that produced the result started:
ON_DEMANDfor a run started byStartDataQualityRulesetEvaluationRun, orEVALUATION_CONFIGfor a run started by a data quality evaluation configuration. Not returned for results that no evaluation run produced, such as results from any ETL job. -
DataQualityEvaluationConfig– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration that started the evaluation run, returned when
EvaluationRunModeisEVALUATION_CONFIG. -
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID for the data quality result.
-
Score– Number (double), not more than 1.0.An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
-
DataSource– A DataSource object.The table associated with the data quality result, if any.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset associated with the data quality result.
-
EvaluationContext– UTF-8 string.In the context of a job in AWS Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the
evaluationContextcan differentiate the nodes. -
StartedOn– Timestamp.The date and time when this data quality run started.
-
CompletedOn– Timestamp.The date and time when this data quality run completed.
-
JobName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job name associated with the data quality result, if any.
-
JobRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job run ID associated with the data quality result, if any.
-
RulesetEvaluationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run ID for the ruleset evaluation for this data quality result.
-
RuleResults– An array of DataQualityRuleResult objects, not more than 2000 structures.A list of
DataQualityRuleResultobjects representing the results for each rule. -
AnalyzerResults– An array of DataQualityAnalyzerResult objects, not more than 2000 structures.A list of
DataQualityAnalyzerResultobjects representing the results for each analyzer. -
Observations– An array of DataQualityObservation objects, not more than 50 structures.A list of
DataQualityObservationobjects representing the anomaly detection observations generated after evaluating the rules and analyzers. -
AggregatedMetrics– A DataQualityAggregatedMetrics object.A summary of
DataQualityAggregatedMetricsobjects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
DataQualityAnalyzerResult structure
Describes the result of the evaluation of a data quality analyzer.
Fields
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality analyzer.
-
Description– UTF-8 string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the data quality analyzer.
-
EvaluationMessage– UTF-8 string, not more than 2048 bytes long, matching the URI address multi-line string pattern.An evaluation message.
-
EvaluatedMetrics– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a Number (double).
A map of metrics associated with the evaluation of the analyzer.
-
EvaluatedDistributions– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DistributionData object.
A map of distribution metrics associated with the evaluation of the analyzer.
DataQualityObservation structure
Describes the observation generated after evaluating the rules and analyzers.
Fields
-
Description– UTF-8 string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the data quality observation.
-
MetricBasedObservation– A MetricBasedObservation object.An object of type
MetricBasedObservationrepresenting the observation that is based on evaluated data quality metrics.
MetricBasedObservation structure
Describes the metric based observation generated based on evaluated data quality metrics.
Fields
-
MetricName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality metric used for generating the observation.
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
MetricValues– A DataQualityMetricValues object.An object of type
DataQualityMetricValuesrepresenting the analysis of the data quality metric value. -
NewRules– An array of UTF-8 strings.A list of new data quality rules generated as part of the observation based on the data quality metric value.
DataQualityMetricValues structure
Describes the data quality metric value according to the analysis of historical data.
Fields
-
ActualValue– Number (double).The actual value of the data quality metric.
-
ExpectedValue– Number (double).The expected value of the data quality metric according to the analysis of historical data.
-
LowerLimit– Number (double).The lower limit of the data quality metric value according to the analysis of historical data.
-
UpperLimit– Number (double).The upper limit of the data quality metric value according to the analysis of historical data.
DataQualityRuleResult structure
Describes the result of the evaluation of a data quality rule.
Fields
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality rule.
-
Description– UTF-8 string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the data quality rule.
-
EvaluationMessage– UTF-8 string, not more than 2048 bytes long, matching the URI address multi-line string pattern.An evaluation message.
-
Result– UTF-8 string (valid values:PASS|FAIL|ERROR).A pass or fail status for the rule.
-
EvaluatedMetrics– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a Number (double).
A map of metrics associated with the evaluation of the rule.
-
EvaluatedRule– UTF-8 string, not more than 2048 bytes long, matching the URI address multi-line string pattern.The evaluated rule.
-
RuleMetrics– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a Number (double).
A map containing metrics associated with the evaluation of the rule based on row-level results.
-
Labels– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
A map containing labels assigned to the data quality rule.
DataQualityResultDescription structure
Describes a data quality result.
Fields
-
ResultId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique result ID for this data quality result.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).How the evaluation run that produced the result started:
ON_DEMANDfor a run started byStartDataQualityRulesetEvaluationRun, orEVALUATION_CONFIGfor a run started by a data quality evaluation configuration. Not returned for results that no evaluation run produced, such as results from any ETL job. -
DataQualityEvaluationConfig– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration that started the evaluation run, returned when
EvaluationRunModeisEVALUATION_CONFIG. -
DataSource– A DataSource object.The table name associated with the data quality result.
-
JobName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job name associated with the data quality result.
-
JobRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job run ID associated with the data quality result.
-
StartedOn– Timestamp.The time that the run started for this data quality result.
DataQualityResultFilterCriteria structure
Criteria used to return data quality results.
Fields
-
DataSource– A DataSource object.Filter results by the specified data source. For example, retrieving all results for an AWS Glue table.
-
JobName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.Filter results by the specified job name.
-
JobRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.Filter results by the specified job run ID.
-
StartedAfter– Timestamp.Filter results by runs that started after this time.
-
StartedBefore– Timestamp.Filter results by runs that started before this time.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).Filter results by how their evaluation run started:
ON_DEMANDorEVALUATION_CONFIG. Results that no evaluation run produced match neither value. -
DataQualityEvaluationConfig– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.Filter results by the evaluation configuration name which started the evaluation run.
DataQualityRulesetFilterCriteria structure
The criteria used to filter data quality rulesets.
Fields
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset filter criteria.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.The description of the ruleset filter criteria.
-
CreatedBefore– Timestamp.Filter on rulesets created before this date.
-
CreatedAfter– Timestamp.Filter on rulesets created after this date.
-
LastModifiedBefore– Timestamp.Filter on rulesets last modified before this date.
-
LastModifiedAfter– Timestamp.Filter on rulesets last modified after this date.
-
TargetTable– A DataQualityTargetTable object.The name and database name of the target table.
DataQualityAggregatedMetrics structure
A summary of metrics showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
Fields
-
TotalRowsProcessed– Number (double).The total number of rows that were processed during the data quality evaluation.
-
TotalRowsPassed– Number (double).The total number of rows that passed all applicable data quality rules.
-
TotalRowsFailed– Number (double).The total number of rows that failed one or more data quality rules.
-
TotalRulesProcessed– Number (double).The total number of data quality rules that were evaluated.
-
TotalRulesPassed– Number (double).The total number of data quality rules that passed their evaluation criteria.
-
TotalRulesFailed– Number (double).The total number of data quality rules that failed their evaluation criteria.
StatisticAnnotation structure
A Statistic Annotation.
Fields
-
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID.
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
StatisticRecordedOn– Timestamp.The timestamp when the annotated statistic was recorded.
-
InclusionAnnotation– A TimestampedInclusionAnnotation object.The inclusion annotation applied to the statistic.
TimestampedInclusionAnnotation structure
A timestamped inclusion annotation.
Fields
-
Value– UTF-8 string (valid values:INCLUDE|EXCLUDE).The inclusion annotation value.
-
LastModifiedOn– Timestamp.The timestamp when the inclusion annotation was last modified.
AnnotationError structure
A failed annotation.
Fields
-
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID for the failed annotation.
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID for the failed annotation.
-
FailureReason– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.The reason why the annotation failed.
DatapointInclusionAnnotation structure
An Inclusion Annotation.
Fields
-
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The ID of the data quality profile the statistic belongs to.
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
InclusionAnnotation– UTF-8 string (valid values:INCLUDE|EXCLUDE).The inclusion annotation value to apply to the statistic.
StatisticSummaryList list
A list of StatisticSummary.
An array of StatisticSummary objects.
A list of StatisticSummary.
StatisticSummary structure
Summary information about a statistic.
Fields
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID.
-
RunIdentifier– A RunIdentifier object.The Run Identifier
-
StatisticName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Custom string pattern #21.The name of the statistic.
-
DoubleValue– Number (double).The value of the statistic.
-
DistributionValue– A DistributionData object.The distribution value for the statistic.
-
EvaluationLevel– UTF-8 string (valid values:Dataset="DATASET"|Column="COLUMN"|Multicolumn="MULTICOLUMN").The evaluation level of the statistic. Possible values:
Dataset,Column,Multicolumn. -
ColumnsReferenced– An array of UTF-8 strings.The list of columns referenced by the statistic.
-
ReferencedDatasets– An array of UTF-8 strings.The list of datasets referenced by the statistic.
-
StatisticProperties– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.
A
StatisticPropertiesMap, which contains aNameStringandDescriptionString -
RecordedOn– Timestamp.The timestamp when the statistic was recorded.
-
InclusionAnnotation– A TimestampedInclusionAnnotation object.The inclusion annotation for the statistic.
RunIdentifier structure
A run identifier.
Fields
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Run ID.
-
JobRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Job Run ID.
StatisticModelResult structure
The statistic model result.
Fields
-
LowerBound– Number (double).The lower bound.
-
UpperBound– Number (double).The upper bound.
-
PredictedValue– Number (double).The predicted value.
-
ActualValue– Number (double).The actual value.
-
Date– Timestamp.The date.
-
InclusionAnnotation– UTF-8 string (valid values:INCLUDE|EXCLUDE).The inclusion annotation.
DataQualityGlueTable structure
The database and table in the AWS Glue Data Catalog that is used for input or output data for Data Quality Operations.
Fields
-
DatabaseName– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A database name in the AWS Glue Data Catalog.
-
TableName– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A table name in the AWS Glue Data Catalog.
-
CatalogId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique identifier for the AWS Glue Data Catalog.
-
ConnectionName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the connection to the AWS Glue Data Catalog.
-
AdditionalOptions– A map array of key-value pairs, not less than 1 or more than 10 pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.
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 AWS Glue Data Catalog.
-
-
PreProcessingQuery– UTF-8 string, not more than 51200 bytes long, matching the URI address multi-line string pattern.SQL Query of SparkSQL format that can be used to pre-process the data for the table in AWS Glue Data Catalog, before running the Data Quality Operation.
DataQualityRuleRecommendationRunAdditionalRunOptions structure
Additional run options you can specify for a recommendation run.
Fields
-
CustomLogGroupPrefix– UTF-8 string.A custom prefix for the CloudWatch log group names. When specified, recommendation run logs are written to
<CustomLogGroupPrefix>/errorand<CustomLogGroupPrefix>/outputinstead of the default/aws-glue/data-quality/errorand/aws-glue/data-quality/outputlog groups.
DataQualityRuleResultsOptions structure
The configuration for writing data quality rule results.
Fields
-
WriteDataQualityRuleResultsEnabled– Boolean.Set to true to write data quality rule results.
-
CatalogTableConfig– A CatalogTableConfigOptions object.The AWS Glue Data Catalog table configuration for storing the rule results.
DistributionData structure
The distribution data for a statistic.
Fields
-
BinEdges– An array of UTF-8 strings.The bin edge values for the distribution.
-
Count– An array of signed 32-bit integers.The frequency count for each bin in the distribution.
-
DataType– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The data type of the column for the distribution.
ObservationResultsOptions structure
The configuration for writing observation results.
Fields
-
WriteObservationResultsEnabled– Boolean.Set to true to write observation results.
-
CatalogTableConfig– A CatalogTableConfigOptions object.The AWS Glue Data Catalog table configuration for storing the observation results.
ProfilingResultsOptions structure
The configuration for writing profiling results.
Fields
-
WriteProfilingResultsEnabled– Boolean.Set to true to write profiling results.
-
CatalogTableConfig– A CatalogTableConfigOptions object.The AWS Glue Data Catalog table configuration for storing the profiling results.
-
DistributionResults– A DistributionResultsOptions object.The configuration for writing distribution results.
RowLevelResultsOptions structure
The configuration for writing row-level evaluation results.
Fields
-
MaxRowsToWrite– Number (integer).The maximum number of rows to write in the results.
-
ResultType– UTF-8 string (valid values:ALL|PASSED_ONLY|FAILED_ONLY).The result type to include in the row-level results output.
-
CatalogTableConfig– A CatalogTableConfigOptions object.The AWS Glue Data Catalog table configuration for storing the results.
CatalogTableConfigOptions structure
The configuration for a AWS Glue Data Catalog table used to store data quality results.
Fields
-
DatabaseName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the database in the AWS Glue Data Catalog.
-
TableName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the table in the AWS Glue Data Catalog.
-
S3Location– UTF-8 string.The Amazon S3 location for storing the results.
-
CatalogId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique identifier for the AWS Glue Data Catalog.
DistributionResultsOptions structure
The configuration for writing distribution results.
Fields
-
WriteDistributionResultsEnabled– Boolean.Set to true to write distribution results.
-
CatalogTableConfig– A CatalogTableConfigOptions object.The AWS Glue Data Catalog table configuration for storing the distribution results.
DataQualityEvaluationConfigDataSource structure
The data source that a data quality evaluation configuration applies to.
Fields
-
GlueTables– A DataQualityEvaluationConfigGlueTables object.The AWS Glue Data Catalog tables that the configuration applies to.
DataQualityEvaluationConfigGlueTables structure
Identifies the AWS Glue Data Catalog tables that a data quality evaluation configuration applies to.
Fields
-
CatalogId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique identifier for the AWS Glue Data Catalog. The catalog must be in your account. For an Amazon S3 Tables catalog, specify
account-id:s3tablescatalogfor every table bucket, oraccount-id:s3tablescatalog/table-bucket-namefor one table bucket. -
DatabaseName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A database name in the AWS Glue Data Catalog.
-
TableNamePattern– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.For the
CATALOGandDATABASElevels, a glob pattern, such asorders_*, that selects tables. If you don't specify a pattern, every table at the level is in scope. For theTABLElevel, the name of the table. -
PreProcessingQuery– UTF-8 string, not more than 51200 bytes long, matching the URI address multi-line string pattern.SQL Query of SparkSQL format that can be used to pre-process the data for the table in AWS Glue Data Catalog, before running the Data Quality Operation.
For the
CATALOGandDATABASElevels, use the{{DATABASE_NAME}}and{{TABLE_NAME}}placeholders, which are filled in for each table. -
ConnectionName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the connection to the AWS Glue Data Catalog.
-
AdditionalOptions– A map array of key-value pairs, not less than 1 or more than 10 pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.
Options for reading the table. The following keys are 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 AWS Glue Data Catalog.
-
DataQualityEvaluationConfigAdditionalRunOptions structure
Additional run options for each evaluation of a data quality evaluation configuration.
Fields
-
CloudWatchMetricsEnabled– Boolean.Specifies whether to enable CloudWatch metrics.
-
ResultsS3Prefix– UTF-8 string.Prefix for Amazon S3 to store results.
-
CompositeRuleEvaluationMethod– UTF-8 string (valid values:COLUMN|ROW).Set the evaluation method for composite rules in the ruleset to ROW/COLUMN
-
RowLevelResults– A RowLevelResultsOptions object.The configuration for writing row-level evaluation results to a AWS Glue Data Catalog table.
-
ProfilingResults– A ProfilingResultsOptions object.The configuration for writing profiling results to a AWS Glue Data Catalog table.
-
ObservationScope– UTF-8 string (valid values:ALL|NONE).The scope of the observation for the evaluation run. Specifies whether anomaly detection is enabled or disabled.
-
ObservationMode– UTF-8 string (valid values:SCHEDULED|FIXED).The observation mode for the evaluation run. Specifies how anomaly detection bounds are calculated.
-
DataQualityRuleResults– A DataQualityRuleResultsOptions object.The configuration for writing rule results to a AWS Glue Data Catalog table.
-
ObservationResults– An ObservationResultsOptions object.The configuration for writing observation results to a AWS Glue Data Catalog table.
-
CustomLogGroupPrefix– UTF-8 string.A custom prefix for the CloudWatch log group names. When specified, evaluation run logs are written to
<CustomLogGroupPrefix>/errorand<CustomLogGroupPrefix>/outputinstead of the default/aws-glue/data-quality/errorand/aws-glue/data-quality/outputlog groups.
DataQualityEvaluationConfigListDetails structure
Describes a data quality evaluation configuration.
Fields
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).The evaluation run mode of the configuration's results, which is
EVALUATION_CONFIG. -
CreatedOn– Timestamp.The time when the configuration was created.
-
LastModifiedOn– Timestamp.The time when the configuration was last modified.
-
Level– UTF-8 string (valid values:CATALOG|DATABASE|TABLE).The AWS Glue Data Catalog hierarchical level that the configuration applies to.
-
DataSource– A DataQualityEvaluationConfigListDataSource object.The catalog, database, or table that the configuration applies to.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality ruleset that tables are evaluated with.
-
ManagedRulesetName– UTF-8 string (valid values:SIMPLE|ADVANCED).The built-in ruleset that tables are evaluated with.
-
PauseRuns– Boolean.Specifies whether evaluations are paused.
DataQualityEvaluationConfigListDataSource structure
The data source that a data quality evaluation configuration applies to.
Fields
-
GlueTables– A DataQualityEvaluationConfigListGlueTables object.The AWS Glue Data Catalog tables that the configuration applies to.
DataQualityEvaluationConfigListGlueTables structure
Identifies the AWS Glue Data Catalog tables that a data quality evaluation configuration applies to.
Fields
-
CatalogId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique identifier for the AWS Glue Data Catalog.
-
DatabaseName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A database name in the AWS Glue Data Catalog.
-
TableNamePattern– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.For the
CATALOGandDATABASElevels, a glob pattern, such asorders_*, that selects tables. If you don't specify a pattern, every table at the level is in scope. For theTABLElevel, the name of the table.
Operations
StartDataQualityRulesetEvaluationRun action (Python: start_data_quality_ruleset_evaluation_run)
CancelDataQualityRulesetEvaluationRun action (Python: cancel_data_quality_ruleset_evaluation_run)
GetDataQualityRulesetEvaluationRun action (Python: get_data_quality_ruleset_evaluation_run)
ListDataQualityRulesetEvaluationRuns action (Python: list_data_quality_ruleset_evaluation_runs)
StartDataQualityRuleRecommendationRun action (Python: start_data_quality_rule_recommendation_run)
CancelDataQualityRuleRecommendationRun action (Python: cancel_data_quality_rule_recommendation_run)
GetDataQualityRuleRecommendationRun action (Python: get_data_quality_rule_recommendation_run)
ListDataQualityRuleRecommendationRuns action (Python: list_data_quality_rule_recommendation_runs)
GetDataQualityResult action (Python: get_data_quality_result)
BatchGetDataQualityResult action (Python: batch_get_data_quality_result)
ListDataQualityResults action (Python: list_data_quality_results)
CreateDataQualityRuleset action (Python: create_data_quality_ruleset)
DeleteDataQualityRuleset action (Python: delete_data_quality_ruleset)
GetDataQualityRuleset action (Python: get_data_quality_ruleset)
ListDataQualityRulesets action (Python: list_data_quality_rulesets)
UpdateDataQualityRuleset action (Python: update_data_quality_ruleset)
ListDataQualityStatistics action (Python: list_data_quality_statistics)
BatchPutDataQualityStatisticAnnotation action (Python: batch_put_data_quality_statistic_annotation)
GetDataQualityModelResult action (Python: get_data_quality_model_result)
ListDataQualityStatisticAnnotations action (Python: list_data_quality_statistic_annotations)
PutDataQualityProfileAnnotation action (Python: put_data_quality_profile_annotation)
CreateDataQualityEvaluationConfig action (Python: create_data_quality_evaluation_config)
GetDataQualityEvaluationConfig action (Python: get_data_quality_evaluation_config)
UpdateDataQualityEvaluationConfig action (Python: update_data_quality_evaluation_config)
DeleteDataQualityEvaluationConfig action (Python: delete_data_quality_evaluation_config)
ListDataQualityEvaluationConfigs action (Python: list_data_quality_evaluation_configs)
StartDataQualityRulesetEvaluationRun action (Python: start_data_quality_ruleset_evaluation_run)
Once you have a ruleset definition (either recommended or your own), you
call this operation to evaluate the ruleset against a data source (AWS Glue table). The evaluation computes results which you can retrieve with the GetDataQualityResult
API.
Request
-
DataSource– Required: A DataSource object.The data source (AWS Glue table) associated with this run.
-
Role– Required: UTF-8 string.An IAM role supplied to encrypt the results of the run.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
ClientToken– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.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.
-
AdditionalRunOptions– A DataQualityEvaluationRunAdditionalRunOptions object.Additional run options you can specify for an evaluation run.
-
RulesetNames– Required: An array of UTF-8 strings, not less than 1 or more than 10 strings.A list of ruleset names.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
Response
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
Errors
InvalidInputExceptionEntityNotFoundExceptionOperationTimeoutExceptionInternalServiceExceptionConflictException
CancelDataQualityRulesetEvaluationRun action (Python: cancel_data_quality_ruleset_evaluation_run)
Cancels a run where a ruleset is being evaluated against a data source.
Request
-
RunId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
Response
No Response parameters.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
GetDataQualityRulesetEvaluationRun action (Python: get_data_quality_ruleset_evaluation_run)
Retrieves a specific run where a ruleset is evaluated against a data source.
Request
-
RunId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
Response
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
-
DataSource– A DataSource object.The data source (an AWS Glue table) associated with this evaluation run.
-
Role– UTF-8 string.An IAM role supplied to encrypt the results of the run.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
AdditionalRunOptions– A DataQualityEvaluationRunAdditionalRunOptions object.Additional run options you can specify for an evaluation run.
-
Status– UTF-8 string (valid values:RUNNING|FINISHED|FAILED|PENDING_EXECUTION|TIMED_OUT|CANCELING|CANCELED|RECEIVED_BY_TASKRUNNER).The status for this run.
-
ErrorString– UTF-8 string.The error strings that are associated with the run.
-
StartedOn– Timestamp.The date and time when this run started.
-
LastModifiedOn– Timestamp.A timestamp. The last point in time when this data quality rule recommendation run was modified.
-
CompletedOn– Timestamp.The date and time when this run was completed.
-
ExecutionTime– Number (integer).The amount of time (in seconds) that the run consumed resources.
-
RulesetNames– An array of UTF-8 strings, not less than 1 or more than 10 strings.A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.
-
ResultIds– An array of UTF-8 strings, not less than 1 or more than 10 strings.A list of result IDs for the data quality results for the run.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
ListDataQualityRulesetEvaluationRuns action (Python: list_data_quality_ruleset_evaluation_runs)
Lists all the runs meeting the filter criteria, where a ruleset is evaluated against a data source.
Request
-
Filter– A DataQualityRulesetEvaluationRunFilter object.The filter criteria.
-
NextToken– UTF-8 string.A paginated token to offset the results.
-
MaxResults– Number (integer), not less than 1 or more than 1000.The maximum number of results to return.
Response
-
Runs– An array of DataQualityRulesetEvaluationRunDescription objects.A list of
DataQualityRulesetEvaluationRunDescriptionobjects representing data quality ruleset runs. -
NextToken– UTF-8 string.A pagination token, if more results are available.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceException
BatchGetDataQualityRulesetEvaluationRun action (Python: batch_get_data_quality_ruleset_evaluation_run)
Retrieves the details of multiple evaluation runs in a single request.
Request
-
RunIds– Required: An array of UTF-8 strings, not less than 1 or more than 100 strings.A list of unique run identifiers for the evaluation runs to retrieve.
Response
-
Runs– An array of DataQualityRulesetEvaluationRun objects.A list of evaluation run details for the requested run IDs.
-
RunsNotFound– An array of UTF-8 strings, not less than 1 or more than 100 strings.A list of run IDs that were not found.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceException
StartDataQualityRuleRecommendationRun action (Python: start_data_quality_rule_recommendation_run)
Starts a recommendation run that is used to generate rules when you don't know what rules to write. AWS Glue Data Quality analyzes the data and comes up with recommendations for a potential ruleset. You can then triage the ruleset and modify the generated ruleset to your liking.
Recommendation runs are automatically deleted after 90 days.
Request
The request of the Data Quality rule recommendation request.
-
DataSource– Required: A DataSource object.The data source (AWS Glue table) associated with this run.
-
Role– Required: UTF-8 string.The IAM role that AWS Glue assumes to access resources for the run.
For more information, see Configure IAM permissions for AWS Glue Data Quality.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
CreatedRulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A name for the ruleset.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
-
ClientToken– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.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.
-
AdditionalRunOptions– A DataQualityRuleRecommendationRunAdditionalRunOptions object.Additional run options you can specify for a recommendation run.
-
RecommendationMode– UTF-8 string (valid values:BASIC|ADVANCED).The mode that AWS Glue Data Quality uses to recommend rules.
The default is
BASIC.
Response
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceExceptionConflictException
CancelDataQualityRuleRecommendationRun action (Python: cancel_data_quality_rule_recommendation_run)
Cancels the specified recommendation run that was being used to generate rules.
Request
-
RunId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
Response
No Response parameters.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
GetDataQualityRuleRecommendationRun action (Python: get_data_quality_rule_recommendation_run)
Gets the specified recommendation run that was used to generate rules.
Request
-
RunId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
Response
The response for the Data Quality rule recommendation run.
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
-
DataSource– A DataSource object.The data source (an AWS Glue table) associated with this run.
-
Role– UTF-8 string.The IAM role that AWS Glue assumes to access resources for the run.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
Status– UTF-8 string (valid values:RUNNING|FINISHED|FAILED|PENDING_EXECUTION|TIMED_OUT|CANCELING|CANCELED|RECEIVED_BY_TASKRUNNER).The status for this run.
-
ErrorString– UTF-8 string.The error strings that are associated with the run.
-
StartedOn– Timestamp.The date and time when this run started.
-
LastModifiedOn– Timestamp.A timestamp. The last point in time when this data quality rule recommendation run was modified.
-
CompletedOn– Timestamp.The date and time when this run was completed.
-
ExecutionTime– Number (integer).The amount of time (in seconds) that the run consumed resources.
-
RecommendedRuleset– UTF-8 string, not less than 1 or more than 65536 bytes long.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– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset that was created by the run.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
-
AdditionalRunOptions– A DataQualityRuleRecommendationRunAdditionalRunOptions object.Additional run options you can specify for a recommendation run.
-
RecommendationMode– UTF-8 string (valid values:BASIC|ADVANCED).The mode that AWS Glue Data Quality uses to recommend rules.
The default is
BASIC.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
ListDataQualityRuleRecommendationRuns action (Python: list_data_quality_rule_recommendation_runs)
Lists the recommendation runs meeting the filter criteria.
Request
-
Filter– A DataQualityRuleRecommendationRunFilter object.The filter criteria.
-
NextToken– UTF-8 string.A paginated token to offset the results.
-
MaxResults– Number (integer), not less than 1 or more than 1000.The maximum number of results to return.
-
Tags– A map array of key-value pairs, not more than 50 pairs.Each key is a UTF-8 string, not less than 1 or more than 128 bytes long.
Each value is a UTF-8 string, not more than 256 bytes long.
A list of key-value pair tags to filter recommendation runs.
Response
-
Runs– An array of DataQualityRuleRecommendationRunDescription objects.A list of
DataQualityRuleRecommendationRunDescriptionobjects. -
NextToken– UTF-8 string.A pagination token, if more results are available.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceException
GetDataQualityResult action (Python: get_data_quality_result)
Retrieves the result of a data quality rule evaluation.
Request
-
ResultId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique result ID for the data quality result.
Response
The response for the data quality result.
-
ResultId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique result ID for the data quality result.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).How the evaluation run that produced the result started:
ON_DEMANDfor a run started byStartDataQualityRulesetEvaluationRun, orEVALUATION_CONFIGfor a run started by a data quality evaluation configuration. Not returned for results that no evaluation run produced, such as results from any ETL job. -
DataQualityEvaluationConfig– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration that started the evaluation run, returned when
EvaluationRunModeisEVALUATION_CONFIG. -
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID for the data quality result.
-
Score– Number (double), not more than 1.0.An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
-
DataSource– A DataSource object.The table associated with the data quality result, if any.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset associated with the data quality result.
-
EvaluationContext– UTF-8 string.In the context of a job in AWS Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the
evaluationContextcan differentiate the nodes. -
StartedOn– Timestamp.The date and time when the run for this data quality result started.
-
CompletedOn– Timestamp.The date and time when the run for this data quality result was completed.
-
JobName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job name associated with the data quality result, if any.
-
JobRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job run ID associated with the data quality result, if any.
-
RulesetEvaluationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run ID associated with the ruleset evaluation.
-
RuleResults– An array of DataQualityRuleResult objects, not more than 2000 structures.A list of
DataQualityRuleResultobjects representing the results for each rule. -
AnalyzerResults– An array of DataQualityAnalyzerResult objects, not more than 2000 structures.A list of
DataQualityAnalyzerResultobjects representing the results for each analyzer. -
Observations– An array of DataQualityObservation objects, not more than 50 structures.A list of
DataQualityObservationobjects representing the anomaly detection observations generated after evaluating the rules and analyzers. -
AggregatedMetrics– A DataQualityAggregatedMetrics object.A summary of
DataQualityAggregatedMetricsobjects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceExceptionEntityNotFoundException
BatchGetDataQualityResult action (Python: batch_get_data_quality_result)
Retrieves a list of data quality results for the specified result IDs.
Request
-
ResultIds– Required: An array of UTF-8 strings, not less than 1 or more than 100 strings.A list of unique result IDs for the data quality results.
Response
-
Results– Required: An array of DataQualityResult objects.A list of
DataQualityResultobjects representing the data quality results. -
ResultsNotFound– An array of UTF-8 strings, not less than 1 or more than 100 strings.A list of result IDs for which results were not found.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceException
ListDataQualityResults action (Python: list_data_quality_results)
Returns all data quality execution results for your account.
Request
-
Filter– A DataQualityResultFilterCriteria object.The filter criteria.
-
NextToken– UTF-8 string.A paginated token to offset the results.
-
MaxResults– Number (integer), not less than 1 or more than 1000.The maximum number of results to return.
Response
-
Results– Required: An array of DataQualityResultDescription objects.A list of
DataQualityResultDescriptionobjects. -
NextToken– UTF-8 string.A pagination token, if more results are available.
Errors
InvalidInputExceptionOperationTimeoutExceptionInternalServiceException
CreateDataQualityRuleset action (Python: create_data_quality_ruleset)
Creates a data quality ruleset with DQDL rules applied to a specified AWS Glue table.
You create the ruleset using the Data Quality Definition Language (DQDL). For more information, see the AWS Glue developer guide.
Request
A request to create a data quality ruleset.
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique name for the data quality ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the data quality ruleset.
-
Ruleset– Required: UTF-8 string, not less than 1 or more than 65536 bytes long.A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.
-
Tags– A map array of key-value pairs, not more than 50 pairs.Each key is a UTF-8 string, not less than 1 or more than 128 bytes long.
Each value is a UTF-8 string, not more than 256 bytes long.
A list of tags applied to the data quality ruleset.
-
TargetTable– A DataQualityTargetTable object.A target table associated with the data quality ruleset.
-
RecommendationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique run ID for the recommendation run.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
-
ClientToken– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.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.
Response
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique name for the data quality ruleset.
Errors
InvalidInputExceptionAlreadyExistsExceptionOperationTimeoutExceptionInternalServiceExceptionResourceNumberLimitExceededException
DeleteDataQualityRuleset action (Python: delete_data_quality_ruleset)
Deletes a data quality ruleset.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A name for the data quality ruleset.
Response
No Response parameters.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
GetDataQualityRuleset action (Python: get_data_quality_ruleset)
Returns an existing ruleset by identifier or name.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset.
Response
Returns the data quality ruleset response.
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the ruleset.
-
Ruleset– UTF-8 string, not less than 1 or more than 65536 bytes long.A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.
-
TargetTable– A DataQualityTargetTable object.The name and database name of the target table.
-
CreatedOn– Timestamp.A timestamp. The time and date that this data quality ruleset was created.
-
LastModifiedOn– Timestamp.A timestamp. The last point in time when this data quality ruleset was modified.
-
RecommendationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.When a ruleset was created from a recommendation run, this run ID is generated to link the two together.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
ListDataQualityRulesets action (Python: list_data_quality_rulesets)
Returns a paginated list of rulesets for the specified list of AWS Glue tables.
Request
-
NextToken– UTF-8 string.A paginated token to offset the results.
-
MaxResults– Number (integer), not less than 1 or more than 1000.The maximum number of results to return.
-
Filter– A DataQualityRulesetFilterCriteria object.The filter criteria.
-
Tags– A map array of key-value pairs, not more than 50 pairs.Each key is a UTF-8 string, not less than 1 or more than 128 bytes long.
Each value is a UTF-8 string, not more than 256 bytes long.
A list of key-value pair tags.
Response
-
Rulesets– An array of DataQualityRulesetListDetails objects.A paginated list of rulesets for the specified list of AWS Glue tables.
-
NextToken– UTF-8 string.A pagination token, if more results are available.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
UpdateDataQualityRuleset action (Python: update_data_quality_ruleset)
Updates the specified data quality ruleset.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the ruleset.
-
Ruleset– UTF-8 string, not less than 1 or more than 65536 bytes long.A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.
Response
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the ruleset.
-
Ruleset– UTF-8 string, not less than 1 or more than 65536 bytes long.A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.
Errors
EntityNotFoundExceptionAlreadyExistsExceptionIdempotentParameterMismatchExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceExceptionResourceNumberLimitExceededException
ListDataQualityStatistics action (Python: list_data_quality_statistics)
Retrieves a list of data quality statistics.
Request
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID.
-
TimestampFilter– A TimestampFilter object.A timestamp filter.
-
MaxResults– Number (integer), not less than 1 or more than 1000.The maximum number of results to return in this request.
-
NextToken– UTF-8 string.A pagination token to request the next page of results.
Response
-
Statistics– An array of StatisticSummary objects.A
StatisticSummaryList. -
NextToken– UTF-8 string.A pagination token to request the next page of results.
Errors
EntityNotFoundExceptionInvalidInputExceptionInternalServiceException
TimestampFilter structure
A timestamp filter.
Fields
-
RecordedBefore– Timestamp.The timestamp before which statistics should be included in the results.
-
RecordedAfter– Timestamp.The timestamp after which statistics should be included in the results.
CreateDataQualityRulesetRequest structure
A request to create a data quality ruleset.
Fields
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique name for the data quality ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the data quality ruleset.
-
Ruleset– Required: UTF-8 string, not less than 1 or more than 65536 bytes long.A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.
-
Tags– A map array of key-value pairs, not more than 50 pairs.Each key is a UTF-8 string, not less than 1 or more than 128 bytes long.
Each value is a UTF-8 string, not more than 256 bytes long.
A list of tags applied to the data quality ruleset.
-
TargetTable– A DataQualityTargetTable object.A target table associated with the data quality ruleset.
-
RecommendationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique run ID for the recommendation run.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
-
ClientToken– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.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.
GetDataQualityRulesetResponse structure
Returns the data quality ruleset response.
Fields
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset.
-
Description– Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern.A description of the ruleset.
-
Ruleset– UTF-8 string, not less than 1 or more than 65536 bytes long.A Data Quality Definition Language (DQDL) ruleset. For more information, see the AWS Glue developer guide.
-
TargetTable– A DataQualityTargetTable object.The name and database name of the target table.
-
CreatedOn– Timestamp.A timestamp. The time and date that this data quality ruleset was created.
-
LastModifiedOn– Timestamp.A timestamp. The last point in time when this data quality ruleset was modified.
-
RecommendationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.When a ruleset was created from a recommendation run, this run ID is generated to link the two together.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
GetDataQualityResultResponse structure
The response for the data quality result.
Fields
-
ResultId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A unique result ID for the data quality result.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).How the evaluation run that produced the result started:
ON_DEMANDfor a run started byStartDataQualityRulesetEvaluationRun, orEVALUATION_CONFIGfor a run started by a data quality evaluation configuration. Not returned for results that no evaluation run produced, such as results from any ETL job. -
DataQualityEvaluationConfig– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration that started the evaluation run, returned when
EvaluationRunModeisEVALUATION_CONFIG. -
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID for the data quality result.
-
Score– Number (double), not more than 1.0.An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
-
DataSource– A DataSource object.The table associated with the data quality result, if any.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset associated with the data quality result.
-
EvaluationContext– UTF-8 string.In the context of a job in AWS Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the
evaluationContextcan differentiate the nodes. -
StartedOn– Timestamp.The date and time when the run for this data quality result started.
-
CompletedOn– Timestamp.The date and time when the run for this data quality result was completed.
-
JobName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job name associated with the data quality result, if any.
-
JobRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The job run ID associated with the data quality result, if any.
-
RulesetEvaluationRunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run ID associated with the ruleset evaluation.
-
RuleResults– An array of DataQualityRuleResult objects, not more than 2000 structures.A list of
DataQualityRuleResultobjects representing the results for each rule. -
AnalyzerResults– An array of DataQualityAnalyzerResult objects, not more than 2000 structures.A list of
DataQualityAnalyzerResultobjects representing the results for each analyzer. -
Observations– An array of DataQualityObservation objects, not more than 50 structures.A list of
DataQualityObservationobjects representing the anomaly detection observations generated after evaluating the rules and analyzers. -
AggregatedMetrics– A DataQualityAggregatedMetrics object.A summary of
DataQualityAggregatedMetricsobjects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
StartDataQualityRuleRecommendationRunRequest structure
The request of the Data Quality rule recommendation request.
Fields
-
DataSource– Required: A DataSource object.The data source (AWS Glue table) associated with this run.
-
Role– Required: UTF-8 string.The IAM role that AWS Glue assumes to access resources for the run.
For more information, see Configure IAM permissions for AWS Glue Data Quality.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
CreatedRulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A name for the ruleset.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
-
ClientToken– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.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.
-
AdditionalRunOptions– A DataQualityRuleRecommendationRunAdditionalRunOptions object.Additional run options you can specify for a recommendation run.
-
RecommendationMode– UTF-8 string (valid values:BASIC|ADVANCED).The mode that AWS Glue Data Quality uses to recommend rules.
The default is
BASIC.
GetDataQualityRuleRecommendationRunResponse structure
The response for the Data Quality rule recommendation run.
Fields
-
RunId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The unique run identifier associated with this run.
-
DataSource– A DataSource object.The data source (an AWS Glue table) associated with this run.
-
Role– UTF-8 string.The IAM role that AWS Glue assumes to access resources for the run.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
Status– UTF-8 string (valid values:RUNNING|FINISHED|FAILED|PENDING_EXECUTION|TIMED_OUT|CANCELING|CANCELED|RECEIVED_BY_TASKRUNNER).The status for this run.
-
ErrorString– UTF-8 string.The error strings that are associated with the run.
-
StartedOn– Timestamp.The date and time when this run started.
-
LastModifiedOn– Timestamp.A timestamp. The last point in time when this data quality rule recommendation run was modified.
-
CompletedOn– Timestamp.The date and time when this run was completed.
-
ExecutionTime– Number (integer).The amount of time (in seconds) that the run consumed resources.
-
RecommendedRuleset– UTF-8 string, not less than 1 or more than 65536 bytes long.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– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the ruleset that was created by the run.
-
DataQualitySecurityConfiguration– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the security configuration created with the data quality encryption option.
-
AdditionalRunOptions– A DataQualityRuleRecommendationRunAdditionalRunOptions object.Additional run options you can specify for a recommendation run.
-
RecommendationMode– UTF-8 string (valid values:BASIC|ADVANCED).The mode that AWS Glue Data Quality uses to recommend rules.
The default is
BASIC.
BatchPutDataQualityStatisticAnnotation action (Python: batch_put_data_quality_statistic_annotation)
Annotate datapoints over time for a specific data quality statistic. The API requires both profileID and statisticID as part of the InclusionAnnotation input. The API only works for a single statisticId across multiple profiles.
Request
-
InclusionAnnotations– Required: An array of DatapointInclusionAnnotation objects.A list of
DatapointInclusionAnnotation's. The InclusionAnnotations must contain a profileId and statisticId. If there are multiple InclusionAnnotations, the list must refer to a single statisticId across multiple profileIds. -
ClientToken– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.Client Token.
Response
-
FailedInclusionAnnotations– An array of AnnotationError objects.A list of
AnnotationError's.
Errors
EntityNotFoundExceptionInvalidInputExceptionInternalServiceExceptionResourceNumberLimitExceededException
GetDataQualityModel action (Python: get_data_quality_model)
Retrieve the training status of the model along with more information (CompletedOn, StartedOn, FailureReason).
Request
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
ProfileId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID.
Response
-
Status– UTF-8 string (valid values:RUNNING|SUCCEEDED|FAILED).The training status of the data quality model.
-
StartedOn– Timestamp.The timestamp when the data quality model training started.
-
CompletedOn– Timestamp.The timestamp when the data quality model training completed.
-
FailureReason– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The training failure reason.
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
GetDataQualityModelResult action (Python: get_data_quality_model_result)
Retrieve a statistic's predictions for a given Profile ID.
Request
-
StatisticId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
ProfileId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID.
Response
-
CompletedOn– Timestamp.The timestamp when the data quality model training completed.
-
Model– An array of StatisticModelResult objects.A list of
StatisticModelResult
Errors
EntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
ListDataQualityStatisticAnnotations action (Python: list_data_quality_statistic_annotations)
Retrieve annotations for a data quality statistic.
Request
-
StatisticId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Statistic ID.
-
ProfileId– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The Profile ID.
-
TimestampFilter– A TimestampFilter object.A timestamp filter.
-
MaxResults– Number (integer), not less than 1 or more than 1000.The maximum number of results to return in this request.
-
NextToken– UTF-8 string.A pagination token to retrieve the next set of results.
Response
-
Annotations– An array of StatisticAnnotation objects.A list of
StatisticAnnotationapplied to the Statistic -
NextToken– UTF-8 string.A pagination token to retrieve the next set of results.
Errors
InvalidInputExceptionInternalServiceException
PutDataQualityProfileAnnotation action (Python: put_data_quality_profile_annotation)
Annotate all datapoints for a Profile.
Request
-
ProfileId– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The ID of the data quality monitoring profile to annotate.
-
InclusionAnnotation– Required: UTF-8 string (valid values:INCLUDE|EXCLUDE).The inclusion annotation value to apply to the profile.
Response
No Response parameters.
Errors
EntityNotFoundExceptionInvalidInputExceptionInternalServiceException
CreateDataQualityEvaluationConfig action (Python: create_data_quality_evaluation_config)
Creates a data quality evaluation configuration, which evaluates the data quality of a collection of tables in the AWS Glue Data Catalog once, on a schedule, or when table metadata changes. A configuration applies to a catalog, a database, or a single table, and evaluates every table in scope, including tables added later, without per-table setup.
When configurations at more than one level apply to the same table, the most specific configuration applies. Each table is evaluated at most once an hour, whichever triggers you choose.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.A name for the data quality evaluation configuration. The name must be unique within your account.
-
Level– Required: UTF-8 string (valid values:CATALOG|DATABASE|TABLE).The AWS Glue Data Catalog hierarchical level that the configuration applies to. Valid values are
CATALOG,DATABASE, andTABLE. -
DataSource– Required: A DataQualityEvaluationConfigDataSource object.The catalog, database, or table that the configuration applies to, as specified by
Level. -
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of a Data Quality Definition Language (DQDL) ruleset, containing analyzers, rules, or both, to evaluate tables with. You create the ruleset using the
CreateDataQualityRulesetAPI. Specify eitherRulesetNameorManagedRulesetName, not both. -
ManagedRulesetName– UTF-8 string (valid values:SIMPLE|ADVANCED).A built-in ruleset that profiles each table, used when
RulesetNameis not set. The default isSIMPLE. Choose from the following built-in rulesets:- SIMPLE
-
Row count and column count, completeness, minimum, and maximum for every column, mean, sum, and standard deviation for numeric columns, and column length for string columns.
- ADVANCED
-
Every statistic in
SIMPLE, plus distribution, uniqueness, entropy, and distinct values count.
-
Triggers– An array of UTF-8 strings, not less than 1 or more than 3 strings.When the configuration evaluates tables. You can choose one or more triggers, and each table is evaluated at most once an hour. The default is
ONCE. Choose from the following triggers:- ONCE
-
Evaluates each table one time, including when tables are added to a database or catalog.
- SCHEDULE
-
Evaluates each table on the cron or rate expression in
ScheduleExpression, between the optionalStartAtandEndAttimes. - METADATA_CHANGE
-
Evaluates a table whenever its AWS Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.
-
ScheduleExpression– UTF-8 string, not less than 1 or more than 256 bytes long.A cron or rate expression, in UTC, for the
SCHEDULEtrigger, for examplecron(0 6 * * ? *). The schedule can run at most once an hour. -
StartAt– Timestamp.The time from which the schedule runs, inclusive.
-
EndAt– Timestamp.The time at which the schedule stops running, exclusive.
-
Role– Required: UTF-8 string.The IAM role that evaluations assume. You can specify the role name or the role Amazon Resource Name (ARN).
The role must allow the
glue.amazonaws.comservice principal to assume it. The role must have permissions to read the catalog (glue:GetCatalog,glue:GetDatabase,glue:GetTable,glue:SearchTables, andglue:GetPartitions), read and create rulesets (glue:GetDataQualityRulesetandglue:CreateDataQualityRuleset), start and track evaluations (glue:StartDataQualityRulesetEvaluationRun,glue:GetDataQualityRulesetEvaluationRun,glue:PublishDataQuality, andiam:PassRoleon the role itself), read the tables' data in Amazon S3, and write logs to Amazon CloudWatch Logs. If a catalog-level or database-level configuration applies to an Amazon S3 Tables catalog, the role must also haves3tables:ListTableBucketsands3tables:ListTables. If you use Lake Formation, the role must have theDESCRIBEpermission on the tables, and for tables whose data Lake Formation manages, such as Amazon S3 Tables,lakeformation:GetDataAccessand theSELECTpermission. -
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5, and the minimum is 2. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default and maximum is 2,880 minutes (48 hours). -
AdditionalRunOptions– A DataQualityEvaluationConfigAdditionalRunOptions object.Additional run options you can specify for an evaluation run.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
-
Tags– A map array of key-value pairs, not more than 50 pairs.Each key is a UTF-8 string, not less than 1 or more than 128 bytes long.
Each value is a UTF-8 string, not more than 256 bytes long.
A list of tags applied to the data quality evaluation configuration.
-
ClientToken– UTF-8 string, not less than 1 or more than 64 bytes long, matching the Custom string pattern #82.A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If you repeat a request with the same token and parameters, the service returns the existing configuration. If the parameters differ, the request fails with
IdempotentParameterMismatchException.
Response
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).The evaluation run mode of the configuration's results, which is
EVALUATION_CONFIG.
Errors
AccessDeniedExceptionAlreadyExistsExceptionEntityNotFoundExceptionIdempotentParameterMismatchExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceExceptionResourceNumberLimitExceededException
GetDataQualityEvaluationConfig action (Python: get_data_quality_evaluation_config)
Retrieves a data quality evaluation configuration.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration.
Response
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).The evaluation run mode of the configuration's results, which is
EVALUATION_CONFIG. -
CreatedOn– Timestamp.The time when the configuration was created.
-
LastModifiedOn– Timestamp.The time when the configuration was last modified.
-
Level– UTF-8 string (valid values:CATALOG|DATABASE|TABLE).The AWS Glue Data Catalog hierarchical level that the configuration applies to.
-
DataSource– A DataQualityEvaluationConfigDataSource object.The catalog, database, or table that the configuration applies to.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality ruleset that tables are evaluated with.
-
ManagedRulesetName– UTF-8 string (valid values:SIMPLE|ADVANCED).The built-in ruleset that tables are evaluated with.
-
Triggers– An array of UTF-8 strings, not less than 1 or more than 3 strings.When the configuration evaluates tables:
- ONCE
-
Each table is evaluated one time, including when tables are added to a database or catalog.
- SCHEDULE
-
Each table is evaluated on the cron or rate expression in
ScheduleExpression. - METADATA_CHANGE
-
A table is evaluated whenever its AWS Glue Data Catalog metadata changes.
-
ScheduleExpression– UTF-8 string, not less than 1 or more than 256 bytes long.The cron or rate expression, in UTC, for the
SCHEDULEtrigger. -
StartAt– Timestamp.The time from which the schedule runs, inclusive.
-
EndAt– Timestamp.The time at which the schedule stops running, exclusive.
-
PauseRuns– Boolean.Specifies whether evaluations are paused.
-
Role– UTF-8 string.The Amazon Resource Name (ARN) of the IAM role that evaluation runs assume.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
AdditionalRunOptions– A DataQualityEvaluationConfigAdditionalRunOptions object.Additional run options you can specify for an evaluation run.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
Errors
AccessDeniedExceptionEntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
UpdateDataQualityEvaluationConfig action (Python: update_data_quality_evaluation_config)
Updates a data quality evaluation configuration. Fields that you don't specify keep their current values.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration to update.
-
DataSource– A DataQualityEvaluationConfigDataSource object.The catalog, database, or table that the configuration applies to. Replaces the current data source, including its
PreProcessingQuery. You can't change the catalog. -
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of a Data Quality Definition Language (DQDL) ruleset, containing analyzers, rules, or both, to evaluate tables with. You create the ruleset using the
CreateDataQualityRulesetAPI. Specify eitherRulesetNameorManagedRulesetName, not both. Replaces the current ruleset. -
ManagedRulesetName– UTF-8 string (valid values:SIMPLE|ADVANCED).A built-in ruleset,
SIMPLEorADVANCED, that profiles each table. Replaces the current ruleset. -
Triggers– An array of UTF-8 strings, not less than 1 or more than 3 strings.When the configuration evaluates tables. Replaces the current triggers, and removing
SCHEDULEalso removesScheduleExpression,StartAt, andEndAt. Choose from the following triggers:- ONCE
-
Evaluates each table one time, including when tables are added to a database or catalog.
- SCHEDULE
-
Evaluates each table on the cron or rate expression in
ScheduleExpression, between the optionalStartAtandEndAttimes. - METADATA_CHANGE
-
Evaluates a table whenever its AWS Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.
-
ScheduleExpression– UTF-8 string, not less than 1 or more than 256 bytes long.A cron or rate expression, in UTC, for the
SCHEDULEtrigger, for examplecron(0 6 * * ? *). The schedule can run at most once an hour. -
StartAt– Timestamp.The time from which the schedule runs, inclusive.
-
EndAt– Timestamp.The time at which the schedule stops running, exclusive.
-
PauseRuns– Boolean.Specifies whether to pause the configuration. While paused, the configuration evaluates nothing, including tables added to the catalog or database. You can pause only a configuration whose triggers include
SCHEDULEorMETADATA_CHANGE. -
Role– UTF-8 string.The IAM role that evaluations assume. You can specify the role name or the role Amazon Resource Name (ARN). The role needs the trust policy and permissions described for
CreateDataQualityEvaluationConfig. Required unless the update only setsPauseRuns. -
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5, and the minimum is 2. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default and maximum is 2,880 minutes (48 hours). -
AdditionalRunOptions– A DataQualityEvaluationConfigAdditionalRunOptions object.Additional run options you can specify for an evaluation run.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
Response
-
Name– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration.
-
EvaluationRunMode– UTF-8 string (valid values:ON_DEMAND|EVALUATION_CONFIG).The evaluation run mode of the configuration's results, which is
EVALUATION_CONFIG. -
CreatedOn– Timestamp.The time when the configuration was created.
-
LastModifiedOn– Timestamp.The time when the configuration was last modified.
-
Level– UTF-8 string (valid values:CATALOG|DATABASE|TABLE).The AWS Glue Data Catalog hierarchical level that the configuration applies to.
-
DataSource– A DataQualityEvaluationConfigDataSource object.The catalog, database, or table that the configuration applies to.
-
RulesetName– UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality ruleset that tables are evaluated with.
-
ManagedRulesetName– UTF-8 string (valid values:SIMPLE|ADVANCED).The built-in ruleset that tables are evaluated with.
-
Triggers– An array of UTF-8 strings, not less than 1 or more than 3 strings.When the configuration evaluates tables:
- ONCE
-
Each table is evaluated one time, including when tables are added to a database or catalog.
- SCHEDULE
-
Each table is evaluated on the cron or rate expression in
ScheduleExpression. - METADATA_CHANGE
-
A table is evaluated whenever its AWS Glue Data Catalog metadata changes.
-
ScheduleExpression– UTF-8 string, not less than 1 or more than 256 bytes long.The cron or rate expression, in UTC, for the
SCHEDULEtrigger. -
StartAt– Timestamp.The time from which the schedule runs, inclusive.
-
EndAt– Timestamp.The time at which the schedule stops running, exclusive.
-
PauseRuns– Boolean.Specifies whether evaluations are paused.
-
Role– UTF-8 string.The Amazon Resource Name (ARN) of the IAM role that evaluation runs assume.
-
NumberOfWorkers– Number (integer).The number of
G.1Xworkers to be used in the run. The default is 5. -
Timeout– Number (integer), at least 1.The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
AdditionalRunOptions– A DataQualityEvaluationConfigAdditionalRunOptions object.Additional run options you can specify for an evaluation run.
-
AdditionalDataSources– A map array of key-value pairs.Each key is a UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
Each value is a A DataSource object.
A map of reference strings to additional data sources you can specify for an evaluation run.
Errors
AccessDeniedExceptionConcurrentModificationExceptionEntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
DeleteDataQualityEvaluationConfig action (Python: delete_data_quality_evaluation_config)
Deletes a data quality evaluation configuration.
Request
-
Name– Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.The name of the data quality evaluation configuration to delete.
Response
No Response parameters.
Errors
AccessDeniedExceptionEntityNotFoundExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException
ListDataQualityEvaluationConfigs action (Python: list_data_quality_evaluation_configs)
Lists the data quality evaluation configurations in your account, optionally filtered by level.
Request
-
Level– UTF-8 string (valid values:CATALOG|DATABASE|TABLE).Lists only the configurations that apply to this level.
-
MaxResults– Number (integer), not less than 1 or more than 50.The maximum number of results to return. The default is 20.
-
NextToken– UTF-8 string.A paginated token to offset the results. If you don't specify a token, the operation returns results starting from the beginning of the list.
Response
-
DataQualityEvaluationConfigs– An array of DataQualityEvaluationConfigListDetails objects.A list of
DataQualityEvaluationConfigListDetailsobjects. -
NextToken– UTF-8 string.A pagination token, if more results are available.
Errors
AccessDeniedExceptionInvalidInputExceptionOperationTimeoutExceptionInternalServiceException