#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) conf: crate::Config,
#[allow(dead_code)] pub(crate) runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct Client {
handle: ::std::sync::Arc<Handle>,
}
impl Client {
#[track_caller]
pub fn from_conf(conf: crate::Config) -> Self {
let handle = Handle {
conf: conf.clone(),
runtime_plugins: crate::config::base_client_runtime_plugins(conf),
};
if let Err(err) = Self::validate_config(&handle) {
panic!("Invalid client configuration: {err}");
}
Self {
handle: ::std::sync::Arc::new(handle),
}
}
pub fn config(&self) -> &crate::Config {
&self.handle.conf
}
fn validate_config(handle: &Handle) -> Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
handle
.runtime_plugins
.apply_client_configuration(&mut cfg)?
.validate_base_client_config(&cfg)?;
Ok(())
}
}
impl Client {
#[track_caller]
pub fn new(sdk_config: &::aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
}
mod batch_create_partition;
mod batch_delete_connection;
mod batch_delete_partition;
mod batch_delete_table;
mod batch_delete_table_version;
mod batch_get_blueprints;
mod batch_get_crawlers;
mod batch_get_custom_entity_types;
mod batch_get_data_quality_result;
mod batch_get_dev_endpoints;
mod batch_get_jobs;
mod batch_get_partition;
mod batch_get_table_optimizer;
mod batch_get_triggers;
mod batch_get_workflows;
mod batch_put_data_quality_statistic_annotation;
mod batch_stop_job_run;
mod batch_update_partition;
mod cancel_data_quality_rule_recommendation_run;
mod cancel_data_quality_ruleset_evaluation_run;
mod cancel_ml_task_run;
mod cancel_statement;
mod check_schema_version_validity;
mod create_blueprint;
mod create_classifier;
mod create_connection;
mod create_crawler;
mod create_custom_entity_type;
mod create_data_quality_ruleset;
mod create_database;
mod create_dev_endpoint;
mod create_job;
mod create_ml_transform;
mod create_partition;
mod create_partition_index;
mod create_registry;
mod create_schema;
mod create_script;
mod create_security_configuration;
mod create_session;
mod create_table;
mod create_table_optimizer;
mod create_trigger;
mod create_usage_profile;
mod create_user_defined_function;
mod create_workflow;
pub mod customize;
mod delete_blueprint;
mod delete_classifier;
mod delete_column_statistics_for_partition;
mod delete_column_statistics_for_table;
mod delete_connection;
mod delete_crawler;
mod delete_custom_entity_type;
mod delete_data_quality_ruleset;
mod delete_database;
mod delete_dev_endpoint;
mod delete_job;
mod delete_ml_transform;
mod delete_partition;
mod delete_partition_index;
mod delete_registry;
mod delete_resource_policy;
mod delete_schema;
mod delete_schema_versions;
mod delete_security_configuration;
mod delete_session;
mod delete_table;
mod delete_table_optimizer;
mod delete_table_version;
mod delete_trigger;
mod delete_usage_profile;
mod delete_user_defined_function;
mod delete_workflow;
mod get_blueprint;
mod get_blueprint_run;
mod get_blueprint_runs;
mod get_catalog_import_status;
mod get_classifier;
mod get_classifiers;
mod get_column_statistics_for_partition;
mod get_column_statistics_for_table;
mod get_column_statistics_task_run;
mod get_column_statistics_task_runs;
mod get_connection;
mod get_connections;
mod get_crawler;
mod get_crawler_metrics;
mod get_crawlers;
mod get_custom_entity_type;
mod get_data_catalog_encryption_settings;
mod get_data_quality_model;
mod get_data_quality_model_result;
mod get_data_quality_result;
mod get_data_quality_rule_recommendation_run;
mod get_data_quality_ruleset;
mod get_data_quality_ruleset_evaluation_run;
mod get_database;
mod get_databases;
mod get_dataflow_graph;
mod get_dev_endpoint;
mod get_dev_endpoints;
mod get_job;
mod get_job_bookmark;
mod get_job_run;
mod get_job_runs;
mod get_jobs;
mod get_mapping;
mod get_ml_task_run;
mod get_ml_task_runs;
mod get_ml_transform;
mod get_ml_transforms;
mod get_partition;
mod get_partition_indexes;
mod get_partitions;
mod get_plan;
mod get_registry;
mod get_resource_policies;
mod get_resource_policy;
mod get_schema;
mod get_schema_by_definition;
mod get_schema_version;
mod get_schema_versions_diff;
mod get_security_configuration;
mod get_security_configurations;
mod get_session;
mod get_statement;
mod get_table;
mod get_table_optimizer;
mod get_table_version;
mod get_table_versions;
mod get_tables;
mod get_tags;
mod get_trigger;
mod get_triggers;
mod get_unfiltered_partition_metadata;
mod get_unfiltered_partitions_metadata;
mod get_unfiltered_table_metadata;
mod get_usage_profile;
mod get_user_defined_function;
mod get_user_defined_functions;
mod get_workflow;
mod get_workflow_run;
mod get_workflow_run_properties;
mod get_workflow_runs;
mod import_catalog_to_glue;
mod list_blueprints;
mod list_column_statistics_task_runs;
mod list_crawlers;
mod list_crawls;
mod list_custom_entity_types;
mod list_data_quality_results;
mod list_data_quality_rule_recommendation_runs;
mod list_data_quality_ruleset_evaluation_runs;
mod list_data_quality_rulesets;
mod list_data_quality_statistic_annotations;
mod list_data_quality_statistics;
mod list_dev_endpoints;
mod list_jobs;
mod list_ml_transforms;
mod list_registries;
mod list_schema_versions;
mod list_schemas;
mod list_sessions;
mod list_statements;
mod list_table_optimizer_runs;
mod list_triggers;
mod list_usage_profiles;
mod list_workflows;
mod put_data_catalog_encryption_settings;
mod put_data_quality_profile_annotation;
mod put_resource_policy;
mod put_schema_version_metadata;
mod put_workflow_run_properties;
mod query_schema_version_metadata;
mod register_schema_version;
mod remove_schema_version_metadata;
mod reset_job_bookmark;
mod resume_workflow_run;
mod run_statement;
mod search_tables;
mod start_blueprint_run;
mod start_column_statistics_task_run;
mod start_crawler;
mod start_crawler_schedule;
mod start_data_quality_rule_recommendation_run;
mod start_data_quality_ruleset_evaluation_run;
mod start_export_labels_task_run;
mod start_import_labels_task_run;
mod start_job_run;
mod start_ml_evaluation_task_run;
mod start_ml_labeling_set_generation_task_run;
mod start_trigger;
mod start_workflow_run;
mod stop_column_statistics_task_run;
mod stop_crawler;
mod stop_crawler_schedule;
mod stop_session;
mod stop_trigger;
mod stop_workflow_run;
mod tag_resource;
mod untag_resource;
mod update_blueprint;
mod update_classifier;
mod update_column_statistics_for_partition;
mod update_column_statistics_for_table;
mod update_connection;
mod update_crawler;
mod update_crawler_schedule;
mod update_data_quality_ruleset;
mod update_database;
mod update_dev_endpoint;
mod update_job;
mod update_job_from_source_control;
mod update_ml_transform;
mod update_partition;
mod update_registry;
mod update_schema;
mod update_source_control_from_job;
mod update_table;
mod update_table_optimizer;
mod update_trigger;
mod update_usage_profile;
mod update_user_defined_function;
mod update_workflow;