#[non_exhaustive]pub struct CreateDataQualityEvaluationConfigInputBuilder { /* private fields */ }Expand description
A builder for CreateDataQualityEvaluationConfigInput.
Implementations§
Source§impl CreateDataQualityEvaluationConfigInputBuilder
impl CreateDataQualityEvaluationConfigInputBuilder
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the data quality evaluation configuration. The name must be unique within your account.
This field is required.Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the data quality evaluation configuration. The name must be unique within your account.
Sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A name for the data quality evaluation configuration. The name must be unique within your account.
Sourcepub fn level(self, input: DataQualityEvaluationConfigLevel) -> Self
pub fn level(self, input: DataQualityEvaluationConfigLevel) -> Self
The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are CATALOG, DATABASE, and TABLE.
Sourcepub fn set_level(self, input: Option<DataQualityEvaluationConfigLevel>) -> Self
pub fn set_level(self, input: Option<DataQualityEvaluationConfigLevel>) -> Self
The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are CATALOG, DATABASE, and TABLE.
Sourcepub fn get_level(&self) -> &Option<DataQualityEvaluationConfigLevel>
pub fn get_level(&self) -> &Option<DataQualityEvaluationConfigLevel>
The Glue Data Catalog hierarchical level that the configuration applies to. Valid values are CATALOG, DATABASE, and TABLE.
Sourcepub fn data_source(self, input: DataQualityEvaluationConfigDataSource) -> Self
pub fn data_source(self, input: DataQualityEvaluationConfigDataSource) -> Self
The catalog, database, or table that the configuration applies to, as specified by Level.
Sourcepub fn set_data_source(
self,
input: Option<DataQualityEvaluationConfigDataSource>,
) -> Self
pub fn set_data_source( self, input: Option<DataQualityEvaluationConfigDataSource>, ) -> Self
The catalog, database, or table that the configuration applies to, as specified by Level.
Sourcepub fn get_data_source(&self) -> &Option<DataQualityEvaluationConfigDataSource>
pub fn get_data_source(&self) -> &Option<DataQualityEvaluationConfigDataSource>
The catalog, database, or table that the configuration applies to, as specified by Level.
Sourcepub fn ruleset_name(self, input: impl Into<String>) -> Self
pub fn ruleset_name(self, input: impl Into<String>) -> Self
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 CreateDataQualityRuleset API. Specify either RulesetName or ManagedRulesetName, not both.
Sourcepub fn set_ruleset_name(self, input: Option<String>) -> Self
pub fn set_ruleset_name(self, input: Option<String>) -> Self
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 CreateDataQualityRuleset API. Specify either RulesetName or ManagedRulesetName, not both.
Sourcepub fn get_ruleset_name(&self) -> &Option<String>
pub fn get_ruleset_name(&self) -> &Option<String>
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 CreateDataQualityRuleset API. Specify either RulesetName or ManagedRulesetName, not both.
Sourcepub fn managed_ruleset_name(
self,
input: DataQualityEvaluationConfigManagedRuleset,
) -> Self
pub fn managed_ruleset_name( self, input: DataQualityEvaluationConfigManagedRuleset, ) -> Self
A built-in ruleset that profiles each table, used when RulesetName is not set. The default is SIMPLE. 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.
Sourcepub fn set_managed_ruleset_name(
self,
input: Option<DataQualityEvaluationConfigManagedRuleset>,
) -> Self
pub fn set_managed_ruleset_name( self, input: Option<DataQualityEvaluationConfigManagedRuleset>, ) -> Self
A built-in ruleset that profiles each table, used when RulesetName is not set. The default is SIMPLE. 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.
Sourcepub fn get_managed_ruleset_name(
&self,
) -> &Option<DataQualityEvaluationConfigManagedRuleset>
pub fn get_managed_ruleset_name( &self, ) -> &Option<DataQualityEvaluationConfigManagedRuleset>
A built-in ruleset that profiles each table, used when RulesetName is not set. The default is SIMPLE. 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.
Sourcepub fn triggers(self, input: DataQualityEvaluationConfigTrigger) -> Self
pub fn triggers(self, input: DataQualityEvaluationConfigTrigger) -> Self
Appends an item to triggers.
To override the contents of this collection use set_triggers.
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.
Sourcepub fn set_triggers(
self,
input: Option<Vec<DataQualityEvaluationConfigTrigger>>,
) -> Self
pub fn set_triggers( self, input: Option<Vec<DataQualityEvaluationConfigTrigger>>, ) -> Self
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.
Sourcepub fn get_triggers(&self) -> &Option<Vec<DataQualityEvaluationConfigTrigger>>
pub fn get_triggers(&self) -> &Option<Vec<DataQualityEvaluationConfigTrigger>>
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.
Sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
A cron or rate expression, in UTC, for the SCHEDULE trigger, for example cron(0 6 * * ? *). The schedule can run at most once an hour.
Sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
A cron or rate expression, in UTC, for the SCHEDULE trigger, for example cron(0 6 * * ? *). The schedule can run at most once an hour.
Sourcepub fn get_schedule_expression(&self) -> &Option<String>
pub fn get_schedule_expression(&self) -> &Option<String>
A cron or rate expression, in UTC, for the SCHEDULE trigger, for example cron(0 6 * * ? *). The schedule can run at most once an hour.
Sourcepub fn start_at(self, input: DateTime) -> Self
pub fn start_at(self, input: DateTime) -> Self
The time from which the schedule runs, inclusive.
Sourcepub fn set_start_at(self, input: Option<DateTime>) -> Self
pub fn set_start_at(self, input: Option<DateTime>) -> Self
The time from which the schedule runs, inclusive.
Sourcepub fn get_start_at(&self) -> &Option<DateTime>
pub fn get_start_at(&self) -> &Option<DateTime>
The time from which the schedule runs, inclusive.
Sourcepub fn end_at(self, input: DateTime) -> Self
pub fn end_at(self, input: DateTime) -> Self
The time at which the schedule stops running, exclusive.
Sourcepub fn set_end_at(self, input: Option<DateTime>) -> Self
pub fn set_end_at(self, input: Option<DateTime>) -> Self
The time at which the schedule stops running, exclusive.
Sourcepub fn get_end_at(&self) -> &Option<DateTime>
pub fn get_end_at(&self) -> &Option<DateTime>
The time at which the schedule stops running, exclusive.
Sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
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.com service principal to assume it, and needs permissions to read the catalog (glue:GetCatalog, glue:GetDatabase, glue:GetTable, glue:SearchTables, and glue:GetPartitions), read and create rulesets (glue:GetDataQualityRuleset and glue:CreateDataQualityRuleset), start evaluations (glue:StartDataQualityRulesetEvaluationRun, glue:PublishDataQuality, and iam:PassRole on 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 needs s3tables:ListTableBuckets and s3tables:ListTables. If you use Lake Formation, the role needs the DESCRIBE permission on the tables.
Sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
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.com service principal to assume it, and needs permissions to read the catalog (glue:GetCatalog, glue:GetDatabase, glue:GetTable, glue:SearchTables, and glue:GetPartitions), read and create rulesets (glue:GetDataQualityRuleset and glue:CreateDataQualityRuleset), start evaluations (glue:StartDataQualityRulesetEvaluationRun, glue:PublishDataQuality, and iam:PassRole on 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 needs s3tables:ListTableBuckets and s3tables:ListTables. If you use Lake Formation, the role needs the DESCRIBE permission on the tables.
Sourcepub fn get_role(&self) -> &Option<String>
pub fn get_role(&self) -> &Option<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.com service principal to assume it, and needs permissions to read the catalog (glue:GetCatalog, glue:GetDatabase, glue:GetTable, glue:SearchTables, and glue:GetPartitions), read and create rulesets (glue:GetDataQualityRuleset and glue:CreateDataQualityRuleset), start evaluations (glue:StartDataQualityRulesetEvaluationRun, glue:PublishDataQuality, and iam:PassRole on 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 needs s3tables:ListTableBuckets and s3tables:ListTables. If you use Lake Formation, the role needs the DESCRIBE permission on the tables.
Sourcepub fn number_of_workers(self, input: i32) -> Self
pub fn number_of_workers(self, input: i32) -> Self
The number of G.1X workers to be used in the run. The default is 5.
Sourcepub fn set_number_of_workers(self, input: Option<i32>) -> Self
pub fn set_number_of_workers(self, input: Option<i32>) -> Self
The number of G.1X workers to be used in the run. The default is 5.
Sourcepub fn get_number_of_workers(&self) -> &Option<i32>
pub fn get_number_of_workers(&self) -> &Option<i32>
The number of G.1X workers to be used in the run. The default is 5.
Sourcepub fn timeout(self, input: i32) -> Self
pub fn timeout(self, input: i32) -> Self
The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).
Sourcepub fn set_timeout(self, input: Option<i32>) -> Self
pub fn set_timeout(self, input: Option<i32>) -> Self
The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).
Sourcepub fn get_timeout(&self) -> &Option<i32>
pub fn get_timeout(&self) -> &Option<i32>
The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).
Sourcepub fn additional_run_options(
self,
input: DataQualityEvaluationConfigAdditionalRunOptions,
) -> Self
pub fn additional_run_options( self, input: DataQualityEvaluationConfigAdditionalRunOptions, ) -> Self
Additional run options you can specify for an evaluation run.
Sourcepub fn set_additional_run_options(
self,
input: Option<DataQualityEvaluationConfigAdditionalRunOptions>,
) -> Self
pub fn set_additional_run_options( self, input: Option<DataQualityEvaluationConfigAdditionalRunOptions>, ) -> Self
Additional run options you can specify for an evaluation run.
Sourcepub fn get_additional_run_options(
&self,
) -> &Option<DataQualityEvaluationConfigAdditionalRunOptions>
pub fn get_additional_run_options( &self, ) -> &Option<DataQualityEvaluationConfigAdditionalRunOptions>
Additional run options you can specify for an evaluation run.
Sourcepub fn additional_data_sources(
self,
k: impl Into<String>,
v: DataSource,
) -> Self
pub fn additional_data_sources( self, k: impl Into<String>, v: DataSource, ) -> Self
Adds a key-value pair to additional_data_sources.
To override the contents of this collection use set_additional_data_sources.
A map of reference strings to additional data sources you can specify for an evaluation run.
Sourcepub fn set_additional_data_sources(
self,
input: Option<HashMap<String, DataSource>>,
) -> Self
pub fn set_additional_data_sources( self, input: Option<HashMap<String, DataSource>>, ) -> Self
A map of reference strings to additional data sources you can specify for an evaluation run.
Sourcepub fn get_additional_data_sources(
&self,
) -> &Option<HashMap<String, DataSource>>
pub fn get_additional_data_sources( &self, ) -> &Option<HashMap<String, DataSource>>
A map of reference strings to additional data sources you can specify for an evaluation run.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
A list of tags applied to the data quality evaluation configuration.
A list of tags applied to the data quality evaluation configuration.
A list of tags applied to the data quality evaluation configuration.
Sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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.
Sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
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.
Sourcepub fn build(self) -> Result<CreateDataQualityEvaluationConfigInput, BuildError>
pub fn build(self) -> Result<CreateDataQualityEvaluationConfigInput, BuildError>
Consumes the builder and constructs a CreateDataQualityEvaluationConfigInput.
Source§impl CreateDataQualityEvaluationConfigInputBuilder
impl CreateDataQualityEvaluationConfigInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateDataQualityEvaluationConfigOutput, SdkError<CreateDataQualityEvaluationConfigError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateDataQualityEvaluationConfigOutput, SdkError<CreateDataQualityEvaluationConfigError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for CreateDataQualityEvaluationConfigInputBuilder
impl Clone for CreateDataQualityEvaluationConfigInputBuilder
Source§fn clone(&self) -> CreateDataQualityEvaluationConfigInputBuilder
fn clone(&self) -> CreateDataQualityEvaluationConfigInputBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CreateDataQualityEvaluationConfigInputBuilder
impl Default for CreateDataQualityEvaluationConfigInputBuilder
Source§fn default() -> CreateDataQualityEvaluationConfigInputBuilder
fn default() -> CreateDataQualityEvaluationConfigInputBuilder
impl StructuralPartialEq for CreateDataQualityEvaluationConfigInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDataQualityEvaluationConfigInputBuilder
impl RefUnwindSafe for CreateDataQualityEvaluationConfigInputBuilder
impl Send for CreateDataQualityEvaluationConfigInputBuilder
impl Sync for CreateDataQualityEvaluationConfigInputBuilder
impl Unpin for CreateDataQualityEvaluationConfigInputBuilder
impl UnsafeUnpin for CreateDataQualityEvaluationConfigInputBuilder
impl UnwindSafe for CreateDataQualityEvaluationConfigInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more