aws_sdk_athena/client/get_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 [`GetDataCatalog`](crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder::set_name):<br>required: **true**<br><p>The name of the data catalog to return.</p><br>
7 /// - [`work_group(impl Into<String>)`](crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder::work_group) / [`set_work_group(Option<String>)`](crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder::set_work_group):<br>required: **false**<br><p>The name of the workgroup. Required if making an IAM Identity Center request.</p><br>
8 /// - On success, responds with [`GetDataCatalogOutput`](crate::operation::get_data_catalog::GetDataCatalogOutput) with field(s):
9 /// - [`data_catalog(Option<DataCatalog>)`](crate::operation::get_data_catalog::GetDataCatalogOutput::data_catalog): <p>The data catalog returned.</p>
10 /// - On failure, responds with [`SdkError<GetDataCatalogError>`](crate::operation::get_data_catalog::GetDataCatalogError)
11 pub fn get_data_catalog(&self) -> crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder {
12 crate::operation::get_data_catalog::builders::GetDataCatalogFluentBuilder::new(self.handle.clone())
13 }
14}