aws_sdk_athena/client/delete_data_catalog.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DeleteDataCatalog`](crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder::set_name):<br>required: **true**<br><p>The name of the data catalog to delete.</p><br>
7 /// - [`delete_catalog_only(bool)`](crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder::delete_catalog_only) / [`set_delete_catalog_only(Option<bool>)`](crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder::set_delete_catalog_only):<br>required: **false**<br><p>Deletes the Athena Data Catalog. You can only use this with the <code>FEDERATED</code> catalogs. You usually perform this before registering the connector with Glue Data Catalog. After deletion, you will have to manage the Glue Connection and Lambda function.</p><br>
8 /// - On success, responds with [`DeleteDataCatalogOutput`](crate::operation::delete_data_catalog::DeleteDataCatalogOutput) with field(s):
9 /// - [`data_catalog(Option<DataCatalog>)`](crate::operation::delete_data_catalog::DeleteDataCatalogOutput::data_catalog): <p>Contains information about a data catalog in an Amazon Web Services account.</p><note> <p>In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> page under the <b>Data source name</b> column.</p> </note>
10 /// - On failure, responds with [`SdkError<DeleteDataCatalogError>`](crate::operation::delete_data_catalog::DeleteDataCatalogError)
11 pub fn delete_data_catalog(&self) -> crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder {
12 crate::operation::delete_data_catalog::builders::DeleteDataCatalogFluentBuilder::new(self.handle.clone())
13 }
14}