aws_sdk_glue/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_id(impl Into<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::catalog_id) / [`set_catalog_id(Option<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::set_catalog_id):<br>required: **false**<br><p>The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_database::builders::GetDatabaseFluentBuilder::set_name):<br>required: **true**<br><p>The name of the database to retrieve. For Hive compatibility, this should be all lowercase.</p><br>
8    /// - On success, responds with [`GetDatabaseOutput`](crate::operation::get_database::GetDatabaseOutput) with field(s):
9    ///   - [`database(Option<Database>)`](crate::operation::get_database::GetDatabaseOutput::database): <p>The definition of the specified database in the Data Catalog.</p>
10    /// - On failure, responds with [`SdkError<GetDatabaseError>`](crate::operation::get_database::GetDatabaseError)
11    pub fn get_database(&self) -> crate::operation::get_database::builders::GetDatabaseFluentBuilder {
12        crate::operation::get_database::builders::GetDatabaseFluentBuilder::new(self.handle.clone())
13    }
14}