Skip to main content

CreateDataQualityEvaluationConfigInputBuilder

Struct CreateDataQualityEvaluationConfigInputBuilder 

Source
#[non_exhaustive]
pub struct CreateDataQualityEvaluationConfigInputBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl CreateDataQualityEvaluationConfigInputBuilder

Source

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.
Source

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.

Source

pub fn get_name(&self) -> &Option<String>

A name for the data quality evaluation configuration. The name must be unique within your account.

Source

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.

This field is required.
Source

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.

Source

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.

Source

pub fn data_source(self, input: DataQualityEvaluationConfigDataSource) -> Self

The catalog, database, or table that the configuration applies to, as specified by Level.

This field is required.
Source

pub fn set_data_source( self, input: Option<DataQualityEvaluationConfigDataSource>, ) -> Self

The catalog, database, or table that the configuration applies to, as specified by Level.

Source

pub fn get_data_source(&self) -> &Option<DataQualityEvaluationConfigDataSource>

The catalog, database, or table that the configuration applies to, as specified by Level.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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 optional StartAt and EndAt times.

METADATA_CHANGE

Evaluates a table whenever its Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.

Source

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 optional StartAt and EndAt times.

METADATA_CHANGE

Evaluates a table whenever its Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.

Source

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 optional StartAt and EndAt times.

METADATA_CHANGE

Evaluates a table whenever its Glue Data Catalog metadata changes, such as a schema change or an Apache Iceberg commit.

Source

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.

Source

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.

Source

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.

Source

pub fn start_at(self, input: DateTime) -> Self

The time from which the schedule runs, inclusive.

Source

pub fn set_start_at(self, input: Option<DateTime>) -> Self

The time from which the schedule runs, inclusive.

Source

pub fn get_start_at(&self) -> &Option<DateTime>

The time from which the schedule runs, inclusive.

Source

pub fn end_at(self, input: DateTime) -> Self

The time at which the schedule stops running, exclusive.

Source

pub fn set_end_at(self, input: Option<DateTime>) -> Self

The time at which the schedule stops running, exclusive.

Source

pub fn get_end_at(&self) -> &Option<DateTime>

The time at which the schedule stops running, exclusive.

Source

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.

This field is required.
Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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).

Source

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).

Source

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).

Source

pub fn additional_run_options( self, input: DataQualityEvaluationConfigAdditionalRunOptions, ) -> Self

Additional run options you can specify for an evaluation run.

Source

pub fn set_additional_run_options( self, input: Option<DataQualityEvaluationConfigAdditionalRunOptions>, ) -> Self

Additional run options you can specify for an evaluation run.

Source

pub fn get_additional_run_options( &self, ) -> &Option<DataQualityEvaluationConfigAdditionalRunOptions>

Additional run options you can specify for an evaluation run.

Source

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.

Source

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.

Source

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.

Source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

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.

Source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

A list of tags applied to the data quality evaluation configuration.

Source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

A list of tags applied to the data quality evaluation configuration.

Source

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.

Source

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.

Source

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.

Source

pub fn build(self) -> Result<CreateDataQualityEvaluationConfigInput, BuildError>

Consumes the builder and constructs a CreateDataQualityEvaluationConfigInput.

Source§

impl CreateDataQualityEvaluationConfigInputBuilder

Source

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

Source§

fn clone(&self) -> CreateDataQualityEvaluationConfigInputBuilder

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CreateDataQualityEvaluationConfigInputBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CreateDataQualityEvaluationConfigInputBuilder

Source§

fn default() -> CreateDataQualityEvaluationConfigInputBuilder

Returns the “default value” for a type. Read more
Source§

impl PartialEq for CreateDataQualityEvaluationConfigInputBuilder

Source§

fn eq(&self, other: &CreateDataQualityEvaluationConfigInputBuilder) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CreateDataQualityEvaluationConfigInputBuilder

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more