#[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 clone_receipt_rule_set;
mod create_configuration_set;
mod create_configuration_set_event_destination;
mod create_configuration_set_tracking_options;
mod create_custom_verification_email_template;
mod create_receipt_filter;
mod create_receipt_rule;
mod create_receipt_rule_set;
mod create_template;
pub mod customize;
mod delete_configuration_set;
mod delete_configuration_set_event_destination;
mod delete_configuration_set_tracking_options;
mod delete_custom_verification_email_template;
mod delete_identity;
mod delete_identity_policy;
mod delete_receipt_filter;
mod delete_receipt_rule;
mod delete_receipt_rule_set;
mod delete_template;
mod delete_verified_email_address;
mod describe_active_receipt_rule_set;
mod describe_configuration_set;
mod describe_receipt_rule;
mod describe_receipt_rule_set;
mod get_account_sending_enabled;
mod get_custom_verification_email_template;
mod get_identity_dkim_attributes;
mod get_identity_mail_from_domain_attributes;
mod get_identity_notification_attributes;
mod get_identity_policies;
mod get_identity_verification_attributes;
mod get_send_quota;
mod get_send_statistics;
mod get_template;
mod list_configuration_sets;
mod list_custom_verification_email_templates;
mod list_identities;
mod list_identity_policies;
mod list_receipt_filters;
mod list_receipt_rule_sets;
mod list_templates;
mod list_verified_email_addresses;
mod put_configuration_set_delivery_options;
mod put_identity_policy;
mod reorder_receipt_rule_set;
mod send_bounce;
mod send_bulk_templated_email;
mod send_custom_verification_email;
mod send_email;
mod send_raw_email;
mod send_templated_email;
mod set_active_receipt_rule_set;
mod set_identity_dkim_enabled;
mod set_identity_feedback_forwarding_enabled;
mod set_identity_headers_in_notifications_enabled;
mod set_identity_mail_from_domain;
mod set_identity_notification_topic;
mod set_receipt_rule_position;
mod test_render_template;
mod update_account_sending_enabled;
mod update_configuration_set_event_destination;
mod update_configuration_set_reputation_metrics_enabled;
mod update_configuration_set_sending_enabled;
mod update_configuration_set_tracking_options;
mod update_custom_verification_email_template;
mod update_receipt_rule;
mod update_template;
mod verify_domain_dkim;
mod verify_domain_identity;
mod verify_email_address;
mod verify_email_identity;