aws_sdk_athena/client/
get_database.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 [`GetDatabase`](crate::operation::get_database::builders::GetDatabaseFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`catalog_name(impl Into<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::catalog_name) / [`set_catalog_name(Option<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::set_catalog_name):<br>required: **true**<br><p>The name of the data catalog that contains the database to return.</p><br>
7    ///   - [`database_name(impl Into<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::database_name) / [`set_database_name(Option<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::set_database_name):<br>required: **true**<br><p>The name of the database to return.</p><br>
8    ///   - [`work_group(impl Into<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::work_group) / [`set_work_group(Option<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::set_work_group):<br>required: **false**<br><p>The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center enabled Glue Data Catalog.</p><br>
9    /// - On success, responds with [`GetDatabaseOutput`](crate::operation::get_database::GetDatabaseOutput) with field(s):
10    ///   - [`database(Option<Database>)`](crate::operation::get_database::GetDatabaseOutput::database): <p>The database returned.</p>
11    /// - On failure, responds with [`SdkError<GetDatabaseError>`](crate::operation::get_database::GetDatabaseError)
12    pub fn get_database(&self) -> crate::operation::get_database::builders::GetDatabaseFluentBuilder {
13        crate::operation::get_database::builders::GetDatabaseFluentBuilder::new(self.handle.clone())
14    }
15}