Struct aws_sdk_glue::client::fluent_builders::DeleteDatabase
source · pub struct DeleteDatabase { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteDatabase.
Removes a specified database from a Data Catalog.
After completing this operation, you no longer have access to the tables (and all table versions and partitions that might belong to the tables) and the user-defined functions in the deleted database. Glue deletes these "orphaned" resources asynchronously in a timely manner, at the discretion of the service.
To ensure the immediate deletion of all related resources, before calling DeleteDatabase, use DeleteTableVersion or BatchDeleteTableVersion, DeletePartition or BatchDeletePartition, DeleteUserDefinedFunction, and DeleteTable or BatchDeleteTable, to delete any resources that belong to the database.
Implementations§
source§impl DeleteDatabase
impl DeleteDatabase
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteDatabase, AwsResponseRetryClassifier>, SdkError<DeleteDatabaseError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteDatabase, AwsResponseRetryClassifier>, SdkError<DeleteDatabaseError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteDatabaseOutput, SdkError<DeleteDatabaseError>>
pub async fn send(
self
) -> Result<DeleteDatabaseOutput, SdkError<DeleteDatabaseError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn catalog_id(self, input: impl Into<String>) -> Self
pub fn catalog_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_catalog_id(self, input: Option<String>) -> Self
pub fn set_catalog_id(self, input: Option<String>) -> Self
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.
Trait Implementations§
source§impl Clone for DeleteDatabase
impl Clone for DeleteDatabase
source§fn clone(&self) -> DeleteDatabase
fn clone(&self) -> DeleteDatabase
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more