#[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(())
}
}
pub trait Waiters {
fn wait_until_db_cluster_available(&self) -> crate::waiters::db_cluster_available::DbClusterAvailableFluentBuilder;
fn wait_until_db_cluster_deleted(&self) -> crate::waiters::db_cluster_deleted::DbClusterDeletedFluentBuilder;
fn wait_until_db_cluster_snapshot_available(&self) -> crate::waiters::db_cluster_snapshot_available::DbClusterSnapshotAvailableFluentBuilder;
fn wait_until_db_cluster_snapshot_deleted(&self) -> crate::waiters::db_cluster_snapshot_deleted::DbClusterSnapshotDeletedFluentBuilder;
fn wait_until_db_instance_available(&self) -> crate::waiters::db_instance_available::DbInstanceAvailableFluentBuilder;
fn wait_until_db_instance_deleted(&self) -> crate::waiters::db_instance_deleted::DbInstanceDeletedFluentBuilder;
fn wait_until_db_snapshot_available(&self) -> crate::waiters::db_snapshot_available::DbSnapshotAvailableFluentBuilder;
fn wait_until_db_snapshot_deleted(&self) -> crate::waiters::db_snapshot_deleted::DbSnapshotDeletedFluentBuilder;
fn wait_until_tenant_database_available(&self) -> crate::waiters::tenant_database_available::TenantDatabaseAvailableFluentBuilder;
fn wait_until_tenant_database_deleted(&self) -> crate::waiters::tenant_database_deleted::TenantDatabaseDeletedFluentBuilder;
}
impl Waiters for Client {
fn wait_until_db_cluster_available(&self) -> crate::waiters::db_cluster_available::DbClusterAvailableFluentBuilder {
crate::waiters::db_cluster_available::DbClusterAvailableFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_cluster_deleted(&self) -> crate::waiters::db_cluster_deleted::DbClusterDeletedFluentBuilder {
crate::waiters::db_cluster_deleted::DbClusterDeletedFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_cluster_snapshot_available(&self) -> crate::waiters::db_cluster_snapshot_available::DbClusterSnapshotAvailableFluentBuilder {
crate::waiters::db_cluster_snapshot_available::DbClusterSnapshotAvailableFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_cluster_snapshot_deleted(&self) -> crate::waiters::db_cluster_snapshot_deleted::DbClusterSnapshotDeletedFluentBuilder {
crate::waiters::db_cluster_snapshot_deleted::DbClusterSnapshotDeletedFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_instance_available(&self) -> crate::waiters::db_instance_available::DbInstanceAvailableFluentBuilder {
crate::waiters::db_instance_available::DbInstanceAvailableFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_instance_deleted(&self) -> crate::waiters::db_instance_deleted::DbInstanceDeletedFluentBuilder {
crate::waiters::db_instance_deleted::DbInstanceDeletedFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_snapshot_available(&self) -> crate::waiters::db_snapshot_available::DbSnapshotAvailableFluentBuilder {
crate::waiters::db_snapshot_available::DbSnapshotAvailableFluentBuilder::new(self.handle.clone())
}
fn wait_until_db_snapshot_deleted(&self) -> crate::waiters::db_snapshot_deleted::DbSnapshotDeletedFluentBuilder {
crate::waiters::db_snapshot_deleted::DbSnapshotDeletedFluentBuilder::new(self.handle.clone())
}
fn wait_until_tenant_database_available(&self) -> crate::waiters::tenant_database_available::TenantDatabaseAvailableFluentBuilder {
crate::waiters::tenant_database_available::TenantDatabaseAvailableFluentBuilder::new(self.handle.clone())
}
fn wait_until_tenant_database_deleted(&self) -> crate::waiters::tenant_database_deleted::TenantDatabaseDeletedFluentBuilder {
crate::waiters::tenant_database_deleted::TenantDatabaseDeletedFluentBuilder::new(self.handle.clone())
}
}
impl Client {
#[track_caller]
pub fn new(sdk_config: &::aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
}
mod add_role_to_db_cluster;
mod add_role_to_db_instance;
mod add_source_identifier_to_subscription;
mod add_tags_to_resource;
mod apply_pending_maintenance_action;
mod authorize_db_security_group_ingress;
mod backtrack_db_cluster;
mod cancel_export_task;
mod copy_db_cluster_parameter_group;
mod copy_db_cluster_snapshot;
mod copy_db_parameter_group;
mod copy_db_snapshot;
mod copy_option_group;
mod create_blue_green_deployment;
mod create_custom_db_engine_version;
mod create_db_cluster;
mod create_db_cluster_endpoint;
mod create_db_cluster_parameter_group;
mod create_db_cluster_snapshot;
mod create_db_instance;
mod create_db_instance_read_replica;
mod create_db_parameter_group;
mod create_db_proxy;
mod create_db_proxy_endpoint;
mod create_db_security_group;
mod create_db_shard_group;
mod create_db_snapshot;
mod create_db_subnet_group;
mod create_event_subscription;
mod create_global_cluster;
mod create_integration;
mod create_option_group;
mod create_tenant_database;
pub mod customize;
mod delete_blue_green_deployment;
mod delete_custom_db_engine_version;
mod delete_db_cluster;
mod delete_db_cluster_automated_backup;
mod delete_db_cluster_endpoint;
mod delete_db_cluster_parameter_group;
mod delete_db_cluster_snapshot;
mod delete_db_instance;
mod delete_db_instance_automated_backup;
mod delete_db_parameter_group;
mod delete_db_proxy;
mod delete_db_proxy_endpoint;
mod delete_db_security_group;
mod delete_db_shard_group;
mod delete_db_snapshot;
mod delete_db_subnet_group;
mod delete_event_subscription;
mod delete_global_cluster;
mod delete_integration;
mod delete_option_group;
mod delete_tenant_database;
mod deregister_db_proxy_targets;
mod describe_account_attributes;
mod describe_blue_green_deployments;
mod describe_certificates;
mod describe_db_cluster_automated_backups;
mod describe_db_cluster_backtracks;
mod describe_db_cluster_endpoints;
mod describe_db_cluster_parameter_groups;
mod describe_db_cluster_parameters;
mod describe_db_cluster_snapshot_attributes;
mod describe_db_cluster_snapshots;
mod describe_db_clusters;
mod describe_db_engine_versions;
mod describe_db_instance_automated_backups;
mod describe_db_instances;
mod describe_db_log_files;
mod describe_db_parameter_groups;
mod describe_db_parameters;
mod describe_db_proxies;
mod describe_db_proxy_endpoints;
mod describe_db_proxy_target_groups;
mod describe_db_proxy_targets;
mod describe_db_recommendations;
mod describe_db_security_groups;
mod describe_db_shard_groups;
mod describe_db_snapshot_attributes;
mod describe_db_snapshot_tenant_databases;
mod describe_db_snapshots;
mod describe_db_subnet_groups;
mod describe_engine_default_cluster_parameters;
mod describe_engine_default_parameters;
mod describe_event_categories;
mod describe_event_subscriptions;
mod describe_events;
mod describe_export_tasks;
mod describe_global_clusters;
mod describe_integrations;
mod describe_option_group_options;
mod describe_option_groups;
mod describe_orderable_db_instance_options;
mod describe_pending_maintenance_actions;
mod describe_reserved_db_instances;
mod describe_reserved_db_instances_offerings;
mod describe_source_regions;
mod describe_tenant_databases;
mod describe_valid_db_instance_modifications;
mod disable_http_endpoint;
mod download_db_log_file_portion;
mod enable_http_endpoint;
mod failover_db_cluster;
mod failover_global_cluster;
mod list_tags_for_resource;
mod modify_activity_stream;
mod modify_certificates;
mod modify_current_db_cluster_capacity;
mod modify_custom_db_engine_version;
mod modify_db_cluster;
mod modify_db_cluster_endpoint;
mod modify_db_cluster_parameter_group;
mod modify_db_cluster_snapshot_attribute;
mod modify_db_instance;
mod modify_db_parameter_group;
mod modify_db_proxy;
mod modify_db_proxy_endpoint;
mod modify_db_proxy_target_group;
mod modify_db_recommendation;
mod modify_db_shard_group;
mod modify_db_snapshot;
mod modify_db_snapshot_attribute;
mod modify_db_subnet_group;
mod modify_event_subscription;
mod modify_global_cluster;
mod modify_integration;
mod modify_option_group;
mod modify_tenant_database;
mod promote_read_replica;
mod promote_read_replica_db_cluster;
mod purchase_reserved_db_instances_offering;
mod reboot_db_cluster;
mod reboot_db_instance;
mod reboot_db_shard_group;
mod register_db_proxy_targets;
mod remove_from_global_cluster;
mod remove_role_from_db_cluster;
mod remove_role_from_db_instance;
mod remove_source_identifier_from_subscription;
mod remove_tags_from_resource;
mod reset_db_cluster_parameter_group;
mod reset_db_parameter_group;
mod restore_db_cluster_from_s3;
mod restore_db_cluster_from_snapshot;
mod restore_db_cluster_to_point_in_time;
mod restore_db_instance_from_db_snapshot;
mod restore_db_instance_from_s3;
mod restore_db_instance_to_point_in_time;
mod revoke_db_security_group_ingress;
mod start_activity_stream;
mod start_db_cluster;
mod start_db_instance;
mod start_db_instance_automated_backups_replication;
mod start_export_task;
mod stop_activity_stream;
mod stop_db_cluster;
mod stop_db_instance;
mod stop_db_instance_automated_backups_replication;
mod switchover_blue_green_deployment;
mod switchover_global_cluster;
mod switchover_read_replica;