create_data_quality_evaluation_config
async
¶
create_data_quality_evaluation_config(
name: NameString,
level: DataQualityEvaluationConfigLevel,
data_source: DataQualityEvaluationConfigDataSource,
role: RoleString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
ruleset_name: Optional[NameString] = None,
managed_ruleset_name: Optional[DataQualityEvaluationConfigManagedRuleset] = None,
triggers: Optional[DataQualityEvaluationConfigTriggers] = None,
schedule_expression: Optional[DataQualityEvaluationConfigScheduleExpression] = None,
start_at: Optional[Timestamp] = None,
end_at: Optional[Timestamp] = None,
number_of_workers: Optional[NullableInteger] = None,
timeout: Optional[Timeout] = None,
additional_run_options: Optional[
DataQualityEvaluationConfigAdditionalRunOptions
] = None,
additional_data_sources: Optional[DataSourceMap] = None,
tags: Optional[TagsMap] = None,
client_token: Optional[ClientTokenString] = None,
) -> CreateDataQualityEvaluationConfigResponse
Creates a data quality evaluation configuration, which evaluates the data quality of a collection of tables in the 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.
Parameters:
-
name(NameString) –A name for the data quality evaluation configuration. The name must be unique within your account.
-
level(DataQualityEvaluationConfigLevel) –The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are
CATALOG,DATABASE, andTABLE. -
data_source(DataQualityEvaluationConfigDataSource) –The catalog, database, or table that the configuration applies to, as specified by
Level. -
ruleset_name(Optional[NameString], default:None) –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. -
managed_ruleset_name(Optional[DataQualityEvaluationConfigManagedRuleset], default:None) –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, and distinct values count.
-
triggers(Optional[DataQualityEvaluationConfigTriggers], default:None) –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 Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.
-
schedule_expression(Optional[DataQualityEvaluationConfigScheduleExpression], default:None) –A cron or rate expression, in UTC, for the
SCHEDULEtrigger, for examplecron(0 6 * * ? *). The schedule can run at most once an hour. -
start_at(Optional[Timestamp], default:None) –The time from which the schedule runs, inclusive.
-
end_at(Optional[Timestamp], default:None) –The time at which the schedule stops running, exclusive.
-
role(RoleString) –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, and needs permissions to read the catalog (glue:GetCatalog,glue:GetDatabase,glue:GetTable,glue:SearchTables, andglue:GetPartitions), read and create rulesets (glue:GetDataQualityRulesetandglue:CreateDataQualityRuleset), start evaluations (glue:StartDataQualityRulesetEvaluationRun,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 also needss3tables:ListTableBucketsands3tables:ListTables. If you use Lake Formation, the role needs theDESCRIBEpermission on the tables. -
number_of_workers(Optional[NullableInteger], default:None) –The number of
G.1Xworkers to be used in the run. The default is 5. -
timeout(Optional[Timeout], default:None) –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). -
additional_run_options(Optional[DataQualityEvaluationConfigAdditionalRunOptions], default:None) –Additional run options you can specify for an evaluation run.
-
additional_data_sources(Optional[DataSourceMap], default:None) –A map of reference strings to additional data sources you can specify for an evaluation run.
-
tags(Optional[TagsMap], default:None) –A list of tags applied to the data quality evaluation configuration.
-
client_token(Optional[ClientTokenString], default:None) –A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
AlreadyExistsException–A resource to be created or added already exists.
-
EntityNotFoundException–A specified entity does not exist
-
IdempotentParameterMismatchException–The same unique identifier was associated with two different records.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 | |