1#[derive(Debug)]
3pub(crate) struct Handle {
4 pub(crate) conf: crate::Config,
5 #[allow(dead_code)] pub(crate) runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
7}
8
9#[derive(::std::clone::Clone, ::std::fmt::Debug)]
92pub struct Client {
93 handle: ::std::sync::Arc<Handle>,
94}
95
96impl Client {
97 #[track_caller]
109 pub fn from_conf(conf: crate::Config) -> Self {
110 let handle = Handle {
111 conf: conf.clone(),
112 runtime_plugins: crate::config::base_client_runtime_plugins(conf),
113 };
114 if let Err(err) = Self::validate_config(&handle) {
115 panic!("Invalid client configuration: {err}");
116 }
117 Self {
118 handle: ::std::sync::Arc::new(handle),
119 }
120 }
121
122 pub fn config(&self) -> &crate::Config {
124 &self.handle.conf
125 }
126
127 fn validate_config(handle: &Handle) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
128 let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
129 handle
130 .runtime_plugins
131 .apply_client_configuration(&mut cfg)?
132 .validate_base_client_config(&cfg)?;
133 Ok(())
134 }
135}
136
137pub trait Waiters {
143 fn wait_until_db_cluster_available(&self) -> crate::waiters::db_cluster_available::DbClusterAvailableFluentBuilder;
145 fn wait_until_db_cluster_deleted(&self) -> crate::waiters::db_cluster_deleted::DbClusterDeletedFluentBuilder;
147 fn wait_until_db_cluster_snapshot_available(&self) -> crate::waiters::db_cluster_snapshot_available::DbClusterSnapshotAvailableFluentBuilder;
149 fn wait_until_db_cluster_snapshot_deleted(&self) -> crate::waiters::db_cluster_snapshot_deleted::DbClusterSnapshotDeletedFluentBuilder;
151 fn wait_until_db_instance_available(&self) -> crate::waiters::db_instance_available::DbInstanceAvailableFluentBuilder;
153 fn wait_until_db_instance_deleted(&self) -> crate::waiters::db_instance_deleted::DbInstanceDeletedFluentBuilder;
155 fn wait_until_db_snapshot_available(&self) -> crate::waiters::db_snapshot_available::DbSnapshotAvailableFluentBuilder;
157 fn wait_until_db_snapshot_deleted(&self) -> crate::waiters::db_snapshot_deleted::DbSnapshotDeletedFluentBuilder;
159 fn wait_until_tenant_database_available(&self) -> crate::waiters::tenant_database_available::TenantDatabaseAvailableFluentBuilder;
161 fn wait_until_tenant_database_deleted(&self) -> crate::waiters::tenant_database_deleted::TenantDatabaseDeletedFluentBuilder;
163}
164impl Waiters for Client {
165 fn wait_until_db_cluster_available(&self) -> crate::waiters::db_cluster_available::DbClusterAvailableFluentBuilder {
166 crate::waiters::db_cluster_available::DbClusterAvailableFluentBuilder::new(self.handle.clone())
167 }
168 fn wait_until_db_cluster_deleted(&self) -> crate::waiters::db_cluster_deleted::DbClusterDeletedFluentBuilder {
169 crate::waiters::db_cluster_deleted::DbClusterDeletedFluentBuilder::new(self.handle.clone())
170 }
171 fn wait_until_db_cluster_snapshot_available(&self) -> crate::waiters::db_cluster_snapshot_available::DbClusterSnapshotAvailableFluentBuilder {
172 crate::waiters::db_cluster_snapshot_available::DbClusterSnapshotAvailableFluentBuilder::new(self.handle.clone())
173 }
174 fn wait_until_db_cluster_snapshot_deleted(&self) -> crate::waiters::db_cluster_snapshot_deleted::DbClusterSnapshotDeletedFluentBuilder {
175 crate::waiters::db_cluster_snapshot_deleted::DbClusterSnapshotDeletedFluentBuilder::new(self.handle.clone())
176 }
177 fn wait_until_db_instance_available(&self) -> crate::waiters::db_instance_available::DbInstanceAvailableFluentBuilder {
178 crate::waiters::db_instance_available::DbInstanceAvailableFluentBuilder::new(self.handle.clone())
179 }
180 fn wait_until_db_instance_deleted(&self) -> crate::waiters::db_instance_deleted::DbInstanceDeletedFluentBuilder {
181 crate::waiters::db_instance_deleted::DbInstanceDeletedFluentBuilder::new(self.handle.clone())
182 }
183 fn wait_until_db_snapshot_available(&self) -> crate::waiters::db_snapshot_available::DbSnapshotAvailableFluentBuilder {
184 crate::waiters::db_snapshot_available::DbSnapshotAvailableFluentBuilder::new(self.handle.clone())
185 }
186 fn wait_until_db_snapshot_deleted(&self) -> crate::waiters::db_snapshot_deleted::DbSnapshotDeletedFluentBuilder {
187 crate::waiters::db_snapshot_deleted::DbSnapshotDeletedFluentBuilder::new(self.handle.clone())
188 }
189 fn wait_until_tenant_database_available(&self) -> crate::waiters::tenant_database_available::TenantDatabaseAvailableFluentBuilder {
190 crate::waiters::tenant_database_available::TenantDatabaseAvailableFluentBuilder::new(self.handle.clone())
191 }
192 fn wait_until_tenant_database_deleted(&self) -> crate::waiters::tenant_database_deleted::TenantDatabaseDeletedFluentBuilder {
193 crate::waiters::tenant_database_deleted::TenantDatabaseDeletedFluentBuilder::new(self.handle.clone())
194 }
195}
196
197impl Client {
198 #[track_caller]
208 pub fn new(sdk_config: &::aws_types::sdk_config::SdkConfig) -> Self {
209 Self::from_conf(sdk_config.into())
210 }
211}
212
213mod add_role_to_db_cluster;
214
215mod add_role_to_db_instance;
216
217mod add_source_identifier_to_subscription;
218
219mod add_tags_to_resource;
220
221mod apply_pending_maintenance_action;
222
223mod authorize_db_security_group_ingress;
224
225mod backtrack_db_cluster;
226
227mod cancel_export_task;
228
229mod copy_db_cluster_parameter_group;
230
231mod copy_db_cluster_snapshot;
232
233mod copy_db_parameter_group;
234
235mod copy_db_snapshot;
236
237mod copy_option_group;
238
239mod create_blue_green_deployment;
240
241mod create_custom_db_engine_version;
242
243mod create_db_cluster;
244
245mod create_db_cluster_endpoint;
246
247mod create_db_cluster_parameter_group;
248
249mod create_db_cluster_snapshot;
250
251mod create_db_instance;
252
253mod create_db_instance_read_replica;
254
255mod create_db_parameter_group;
256
257mod create_db_proxy;
258
259mod create_db_proxy_endpoint;
260
261mod create_db_security_group;
262
263mod create_db_shard_group;
264
265mod create_db_snapshot;
266
267mod create_db_subnet_group;
268
269mod create_event_subscription;
270
271mod create_global_cluster;
272
273mod create_integration;
274
275mod create_option_group;
276
277mod create_tenant_database;
278
279pub mod customize;
305
306mod delete_blue_green_deployment;
307
308mod delete_custom_db_engine_version;
309
310mod delete_db_cluster;
311
312mod delete_db_cluster_automated_backup;
313
314mod delete_db_cluster_endpoint;
315
316mod delete_db_cluster_parameter_group;
317
318mod delete_db_cluster_snapshot;
319
320mod delete_db_instance;
321
322mod delete_db_instance_automated_backup;
323
324mod delete_db_parameter_group;
325
326mod delete_db_proxy;
327
328mod delete_db_proxy_endpoint;
329
330mod delete_db_security_group;
331
332mod delete_db_shard_group;
333
334mod delete_db_snapshot;
335
336mod delete_db_subnet_group;
337
338mod delete_event_subscription;
339
340mod delete_global_cluster;
341
342mod delete_integration;
343
344mod delete_option_group;
345
346mod delete_tenant_database;
347
348mod deregister_db_proxy_targets;
349
350mod describe_account_attributes;
351
352mod describe_blue_green_deployments;
353
354mod describe_certificates;
355
356mod describe_db_cluster_automated_backups;
357
358mod describe_db_cluster_backtracks;
359
360mod describe_db_cluster_endpoints;
361
362mod describe_db_cluster_parameter_groups;
363
364mod describe_db_cluster_parameters;
365
366mod describe_db_cluster_snapshot_attributes;
367
368mod describe_db_cluster_snapshots;
369
370mod describe_db_clusters;
371
372mod describe_db_engine_versions;
373
374mod describe_db_instance_automated_backups;
375
376mod describe_db_instances;
377
378mod describe_db_log_files;
379
380mod describe_db_major_engine_versions;
381
382mod describe_db_parameter_groups;
383
384mod describe_db_parameters;
385
386mod describe_db_proxies;
387
388mod describe_db_proxy_endpoints;
389
390mod describe_db_proxy_target_groups;
391
392mod describe_db_proxy_targets;
393
394mod describe_db_recommendations;
395
396mod describe_db_security_groups;
397
398mod describe_db_shard_groups;
399
400mod describe_db_snapshot_attributes;
401
402mod describe_db_snapshot_tenant_databases;
403
404mod describe_db_snapshots;
405
406mod describe_db_subnet_groups;
407
408mod describe_engine_default_cluster_parameters;
409
410mod describe_engine_default_parameters;
411
412mod describe_event_categories;
413
414mod describe_event_subscriptions;
415
416mod describe_events;
417
418mod describe_export_tasks;
419
420mod describe_global_clusters;
421
422mod describe_integrations;
423
424mod describe_option_group_options;
425
426mod describe_option_groups;
427
428mod describe_orderable_db_instance_options;
429
430mod describe_pending_maintenance_actions;
431
432mod describe_reserved_db_instances;
433
434mod describe_reserved_db_instances_offerings;
435
436mod describe_source_regions;
437
438mod describe_tenant_databases;
439
440mod describe_valid_db_instance_modifications;
441
442mod disable_http_endpoint;
443
444mod download_db_log_file_portion;
445
446mod enable_http_endpoint;
447
448mod failover_db_cluster;
449
450mod failover_global_cluster;
451
452mod list_tags_for_resource;
453
454mod modify_activity_stream;
455
456mod modify_certificates;
457
458mod modify_current_db_cluster_capacity;
459
460mod modify_custom_db_engine_version;
461
462mod modify_db_cluster;
463
464mod modify_db_cluster_endpoint;
465
466mod modify_db_cluster_parameter_group;
467
468mod modify_db_cluster_snapshot_attribute;
469
470mod modify_db_instance;
471
472mod modify_db_parameter_group;
473
474mod modify_db_proxy;
475
476mod modify_db_proxy_endpoint;
477
478mod modify_db_proxy_target_group;
479
480mod modify_db_recommendation;
481
482mod modify_db_shard_group;
483
484mod modify_db_snapshot;
485
486mod modify_db_snapshot_attribute;
487
488mod modify_db_subnet_group;
489
490mod modify_event_subscription;
491
492mod modify_global_cluster;
493
494mod modify_integration;
495
496mod modify_option_group;
497
498mod modify_tenant_database;
499
500mod promote_read_replica;
501
502mod promote_read_replica_db_cluster;
503
504mod purchase_reserved_db_instances_offering;
505
506mod reboot_db_cluster;
507
508mod reboot_db_instance;
509
510mod reboot_db_shard_group;
511
512mod register_db_proxy_targets;
513
514mod remove_from_global_cluster;
515
516mod remove_role_from_db_cluster;
517
518mod remove_role_from_db_instance;
519
520mod remove_source_identifier_from_subscription;
521
522mod remove_tags_from_resource;
523
524mod reset_db_cluster_parameter_group;
525
526mod reset_db_parameter_group;
527
528mod restore_db_cluster_from_s3;
529
530mod restore_db_cluster_from_snapshot;
531
532mod restore_db_cluster_to_point_in_time;
533
534mod restore_db_instance_from_db_snapshot;
535
536mod restore_db_instance_from_s3;
537
538mod restore_db_instance_to_point_in_time;
539
540mod revoke_db_security_group_ingress;
541
542mod start_activity_stream;
543
544mod start_db_cluster;
545
546mod start_db_instance;
547
548mod start_db_instance_automated_backups_replication;
549
550mod start_export_task;
551
552mod stop_activity_stream;
553
554mod stop_db_cluster;
555
556mod stop_db_instance;
557
558mod stop_db_instance_automated_backups_replication;
559
560mod switchover_blue_green_deployment;
561
562mod switchover_global_cluster;
563
564mod switchover_read_replica;