#[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) -> ::std::result::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 accept_predictions;
mod accept_subscription_request;
mod add_entity_owner;
mod add_policy_grant;
mod associate_environment_role;
mod associate_governed_terms;
mod batch_get_attributes_metadata;
mod batch_put_attributes_metadata;
mod cancel_metadata_generation_run;
mod cancel_subscription;
mod create_account_pool;
mod create_asset;
mod create_asset_filter;
mod create_asset_revision;
mod create_asset_type;
mod create_connection;
mod create_data_product;
mod create_data_product_revision;
mod create_data_source;
mod create_domain;
mod create_domain_unit;
mod create_environment;
mod create_environment_action;
mod create_environment_blueprint;
mod create_environment_profile;
mod create_form_type;
mod create_glossary;
mod create_glossary_term;
mod create_group_profile;
mod create_listing_change_set;
mod create_project;
mod create_project_membership;
mod create_project_profile;
mod create_rule;
mod create_subscription_grant;
mod create_subscription_request;
mod create_subscription_target;
mod create_user_profile;
pub mod customize;
mod delete_account_pool;
mod delete_asset;
mod delete_asset_filter;
mod delete_asset_type;
mod delete_connection;
mod delete_data_export_configuration;
mod delete_data_product;
mod delete_data_source;
mod delete_domain;
mod delete_domain_unit;
mod delete_environment;
mod delete_environment_action;
mod delete_environment_blueprint;
mod delete_environment_blueprint_configuration;
mod delete_environment_profile;
mod delete_form_type;
mod delete_glossary;
mod delete_glossary_term;
mod delete_listing;
mod delete_project;
mod delete_project_membership;
mod delete_project_profile;
mod delete_rule;
mod delete_subscription_grant;
mod delete_subscription_request;
mod delete_subscription_target;
mod delete_time_series_data_points;
mod disassociate_environment_role;
mod disassociate_governed_terms;
mod get_account_pool;
mod get_asset;
mod get_asset_filter;
mod get_asset_type;
mod get_connection;
mod get_data_export_configuration;
mod get_data_product;
mod get_data_source;
mod get_data_source_run;
mod get_domain;
mod get_domain_unit;
mod get_environment;
mod get_environment_action;
mod get_environment_blueprint;
mod get_environment_blueprint_configuration;
mod get_environment_credentials;
mod get_environment_profile;
mod get_form_type;
mod get_glossary;
mod get_glossary_term;
mod get_group_profile;
mod get_iam_portal_login_url;
mod get_job_run;
mod get_lineage_event;
mod get_lineage_node;
mod get_listing;
mod get_metadata_generation_run;
mod get_notebook_run;
mod get_project;
mod get_project_profile;
mod get_rule;
mod get_subscription;
mod get_subscription_grant;
mod get_subscription_request_details;
mod get_subscription_target;
mod get_time_series_data_point;
mod get_user_profile;
mod list_account_pools;
mod list_accounts_in_account_pool;
mod list_asset_filters;
mod list_asset_revisions;
mod list_connections;
mod list_data_product_revisions;
mod list_data_source_run_activities;
mod list_data_source_runs;
mod list_data_sources;
mod list_domain_units_for_parent;
mod list_domains;
mod list_entity_owners;
mod list_environment_actions;
mod list_environment_blueprint_configurations;
mod list_environment_blueprints;
mod list_environment_profiles;
mod list_environments;
mod list_job_runs;
mod list_lineage_events;
mod list_lineage_node_history;
mod list_metadata_generation_runs;
mod list_notebook_runs;
mod list_notifications;
mod list_policy_grants;
mod list_project_memberships;
mod list_project_profiles;
mod list_projects;
mod list_rules;
mod list_subscription_grants;
mod list_subscription_requests;
mod list_subscription_targets;
mod list_subscriptions;
mod list_tags_for_resource;
mod list_time_series_data_points;
mod post_lineage_event;
mod post_time_series_data_points;
mod put_data_export_configuration;
mod put_environment_blueprint_configuration;
mod query_graph;
mod reject_predictions;
mod reject_subscription_request;
mod remove_entity_owner;
mod remove_policy_grant;
mod revoke_subscription;
mod search;
mod search_group_profiles;
mod search_listings;
mod search_types;
mod search_user_profiles;
mod start_data_source_run;
mod start_metadata_generation_run;
mod start_notebook_run;
mod stop_notebook_run;
mod tag_resource;
mod untag_resource;
mod update_account_pool;
mod update_asset_filter;
mod update_connection;
mod update_data_source;
mod update_domain;
mod update_domain_unit;
mod update_environment;
mod update_environment_action;
mod update_environment_blueprint;
mod update_environment_profile;
mod update_glossary;
mod update_glossary_term;
mod update_group_profile;
mod update_project;
mod update_project_profile;
mod update_root_domain_unit_owner;
mod update_rule;
mod update_subscription_grant_status;
mod update_subscription_request;
mod update_subscription_target;
mod update_user_profile;