aws_sdk_datazone/
client.rs1#[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)]
78pub struct Client {
79 handle: ::std::sync::Arc<Handle>,
80}
81
82impl Client {
83 #[track_caller]
95 pub fn from_conf(conf: crate::Config) -> Self {
96 let handle = Handle {
97 conf: conf.clone(),
98 runtime_plugins: crate::config::base_client_runtime_plugins(conf),
99 };
100 if let Err(err) = Self::validate_config(&handle) {
101 panic!("Invalid client configuration: {err}");
102 }
103 Self {
104 handle: ::std::sync::Arc::new(handle),
105 }
106 }
107
108 pub fn config(&self) -> &crate::Config {
110 &self.handle.conf
111 }
112
113 fn validate_config(handle: &Handle) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
114 let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
115 handle
116 .runtime_plugins
117 .apply_client_configuration(&mut cfg)?
118 .validate_base_client_config(&cfg)?;
119 Ok(())
120 }
121}
122
123impl Client {
124 #[track_caller]
134 pub fn new(sdk_config: &::aws_types::sdk_config::SdkConfig) -> Self {
135 Self::from_conf(sdk_config.into())
136 }
137}
138
139mod accept_predictions;
140
141mod accept_subscription_request;
142
143mod add_entity_owner;
144
145mod add_policy_grant;
146
147mod associate_environment_role;
148
149mod associate_governed_terms;
150
151mod batch_get_attributes_metadata;
152
153mod batch_put_attributes_metadata;
154
155mod cancel_metadata_generation_run;
156
157mod cancel_subscription;
158
159mod create_account_pool;
160
161mod create_asset;
162
163mod create_asset_filter;
164
165mod create_asset_revision;
166
167mod create_asset_type;
168
169mod create_connection;
170
171mod create_data_product;
172
173mod create_data_product_revision;
174
175mod create_data_source;
176
177mod create_domain;
178
179mod create_domain_unit;
180
181mod create_environment;
182
183mod create_environment_action;
184
185mod create_environment_blueprint;
186
187mod create_environment_profile;
188
189mod create_form_type;
190
191mod create_glossary;
192
193mod create_glossary_term;
194
195mod create_group_profile;
196
197mod create_listing_change_set;
198
199mod create_notebook;
200
201mod create_project;
202
203mod create_project_membership;
204
205mod create_project_profile;
206
207mod create_rule;
208
209mod create_subscription_grant;
210
211mod create_subscription_request;
212
213mod create_subscription_target;
214
215mod create_user_profile;
216
217pub mod customize;
243
244mod delete_account_pool;
245
246mod delete_asset;
247
248mod delete_asset_filter;
249
250mod delete_asset_type;
251
252mod delete_connection;
253
254mod delete_data_export_configuration;
255
256mod delete_data_product;
257
258mod delete_data_source;
259
260mod delete_domain;
261
262mod delete_domain_unit;
263
264mod delete_environment;
265
266mod delete_environment_action;
267
268mod delete_environment_blueprint;
269
270mod delete_environment_blueprint_configuration;
271
272mod delete_environment_profile;
273
274mod delete_form_type;
275
276mod delete_glossary;
277
278mod delete_glossary_term;
279
280mod delete_lineage_event;
281
282mod delete_listing;
283
284mod delete_notebook;
285
286mod delete_project;
287
288mod delete_project_membership;
289
290mod delete_project_profile;
291
292mod delete_rule;
293
294mod delete_subscription_grant;
295
296mod delete_subscription_request;
297
298mod delete_subscription_target;
299
300mod delete_time_series_data_points;
301
302mod disassociate_environment_role;
303
304mod disassociate_governed_terms;
305
306mod get_account_pool;
307
308mod get_asset;
309
310mod get_asset_filter;
311
312mod get_asset_type;
313
314mod get_connection;
315
316mod get_data_export_configuration;
317
318mod get_data_product;
319
320mod get_data_source;
321
322mod get_data_source_run;
323
324mod get_domain;
325
326mod get_domain_unit;
327
328mod get_environment;
329
330mod get_environment_action;
331
332mod get_environment_blueprint;
333
334mod get_environment_blueprint_configuration;
335
336mod get_environment_credentials;
337
338mod get_environment_profile;
339
340mod get_form_type;
341
342mod get_glossary;
343
344mod get_glossary_term;
345
346mod get_group_profile;
347
348mod get_iam_portal_login_url;
349
350mod get_job_run;
351
352mod get_lineage_event;
353
354mod get_lineage_node;
355
356mod get_listing;
357
358mod get_metadata_generation_run;
359
360mod get_notebook;
361
362mod get_notebook_export;
363
364mod get_notebook_run;
365
366mod get_project;
367
368mod get_project_profile;
369
370mod get_rule;
371
372mod get_subscription;
373
374mod get_subscription_grant;
375
376mod get_subscription_request_details;
377
378mod get_subscription_target;
379
380mod get_time_series_data_point;
381
382mod get_user_profile;
383
384mod list_account_pools;
385
386mod list_accounts_in_account_pool;
387
388mod list_asset_filters;
389
390mod list_asset_revisions;
391
392mod list_connections;
393
394mod list_data_product_revisions;
395
396mod list_data_source_run_activities;
397
398mod list_data_source_runs;
399
400mod list_data_sources;
401
402mod list_domain_units_for_parent;
403
404mod list_domains;
405
406mod list_entity_owners;
407
408mod list_environment_actions;
409
410mod list_environment_blueprint_configurations;
411
412mod list_environment_blueprints;
413
414mod list_environment_profiles;
415
416mod list_environments;
417
418mod list_job_runs;
419
420mod list_lineage_events;
421
422mod list_lineage_node_history;
423
424mod list_metadata_generation_runs;
425
426mod list_notebook_runs;
427
428mod list_notebooks;
429
430mod list_notifications;
431
432mod list_policy_grants;
433
434mod list_project_memberships;
435
436mod list_project_profiles;
437
438mod list_projects;
439
440mod list_rules;
441
442mod list_subscription_grants;
443
444mod list_subscription_requests;
445
446mod list_subscription_targets;
447
448mod list_subscriptions;
449
450mod list_tags_for_resource;
451
452mod list_time_series_data_points;
453
454mod post_lineage_event;
455
456mod post_time_series_data_points;
457
458mod put_data_export_configuration;
459
460mod put_environment_blueprint_configuration;
461
462mod query_graph;
463
464mod reject_predictions;
465
466mod reject_subscription_request;
467
468mod remove_entity_owner;
469
470mod remove_policy_grant;
471
472mod revoke_subscription;
473
474mod search;
475
476mod search_group_profiles;
477
478mod search_listings;
479
480mod search_types;
481
482mod search_user_profiles;
483
484mod start_data_source_run;
485
486mod start_metadata_generation_run;
487
488mod start_notebook_export;
489
490mod start_notebook_import;
491
492mod start_notebook_run;
493
494mod stop_notebook_run;
495
496mod tag_resource;
497
498mod untag_resource;
499
500mod update_account_pool;
501
502mod update_asset_filter;
503
504mod update_connection;
505
506mod update_data_source;
507
508mod update_domain;
509
510mod update_domain_unit;
511
512mod update_environment;
513
514mod update_environment_action;
515
516mod update_environment_blueprint;
517
518mod update_environment_profile;
519
520mod update_glossary;
521
522mod update_glossary_term;
523
524mod update_group_profile;
525
526mod update_notebook;
527
528mod update_project;
529
530mod update_project_profile;
531
532mod update_root_domain_unit_owner;
533
534mod update_rule;
535
536mod update_subscription_grant_status;
537
538mod update_subscription_request;
539
540mod update_subscription_target;
541
542mod update_user_profile;