pub struct DeleteDBClusterFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteDBCluster.
The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified DB cluster are not deleted.
If you're deleting a Multi-AZ DB cluster with read replicas, all cluster members are terminated and read replicas are promoted to standalone instances.
For more information on Amazon Aurora, see What is Amazon Aurora? in the Amazon Aurora User Guide.
For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide.
Implementations§
source§impl DeleteDBClusterFluentBuilder
impl DeleteDBClusterFluentBuilder
sourcepub fn as_input(&self) -> &DeleteDbClusterInputBuilder
pub fn as_input(&self) -> &DeleteDbClusterInputBuilder
Access the DeleteDBCluster as a reference.
sourcepub async fn send(
self
) -> Result<DeleteDbClusterOutput, SdkError<DeleteDBClusterError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteDbClusterOutput, SdkError<DeleteDBClusterError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<DeleteDbClusterOutput, DeleteDBClusterError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteDbClusterOutput, DeleteDBClusterError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
Constraints:
-
Must match an existing DBClusterIdentifier.
sourcepub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
Constraints:
-
Must match an existing DBClusterIdentifier.
sourcepub fn get_db_cluster_identifier(&self) -> &Option<String>
pub fn get_db_cluster_identifier(&self) -> &Option<String>
The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
Constraints:
-
Must match an existing DBClusterIdentifier.
sourcepub fn skip_final_snapshot(self, input: bool) -> Self
pub fn skip_final_snapshot(self, input: bool) -> Self
Specifies whether to skip the creation of a final DB cluster snapshot before the DB cluster is deleted. If skip is specified, no DB cluster snapshot is created. If skip isn't specified, a DB cluster snapshot is created before the DB cluster is deleted. By default, skip isn't specified, and the DB cluster snapshot is created. By default, this parameter is disabled.
You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is disabled.
sourcepub fn set_skip_final_snapshot(self, input: Option<bool>) -> Self
pub fn set_skip_final_snapshot(self, input: Option<bool>) -> Self
Specifies whether to skip the creation of a final DB cluster snapshot before the DB cluster is deleted. If skip is specified, no DB cluster snapshot is created. If skip isn't specified, a DB cluster snapshot is created before the DB cluster is deleted. By default, skip isn't specified, and the DB cluster snapshot is created. By default, this parameter is disabled.
You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is disabled.
sourcepub fn get_skip_final_snapshot(&self) -> &Option<bool>
pub fn get_skip_final_snapshot(&self) -> &Option<bool>
Specifies whether to skip the creation of a final DB cluster snapshot before the DB cluster is deleted. If skip is specified, no DB cluster snapshot is created. If skip isn't specified, a DB cluster snapshot is created before the DB cluster is deleted. By default, skip isn't specified, and the DB cluster snapshot is created. By default, this parameter is disabled.
You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is disabled.
sourcepub fn final_db_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn final_db_snapshot_identifier(self, input: impl Into<String>) -> Self
The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is disabled.
Specifying this parameter and also skipping the creation of a final DB cluster snapshot with the SkipFinalShapshot parameter results in an error.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
sourcepub fn set_final_db_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_final_db_snapshot_identifier(self, input: Option<String>) -> Self
The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is disabled.
Specifying this parameter and also skipping the creation of a final DB cluster snapshot with the SkipFinalShapshot parameter results in an error.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
sourcepub fn get_final_db_snapshot_identifier(&self) -> &Option<String>
pub fn get_final_db_snapshot_identifier(&self) -> &Option<String>
The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is disabled.
Specifying this parameter and also skipping the creation of a final DB cluster snapshot with the SkipFinalShapshot parameter results in an error.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
sourcepub fn delete_automated_backups(self, input: bool) -> Self
pub fn delete_automated_backups(self, input: bool) -> Self
Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted.
sourcepub fn set_delete_automated_backups(self, input: Option<bool>) -> Self
pub fn set_delete_automated_backups(self, input: Option<bool>) -> Self
Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted.
sourcepub fn get_delete_automated_backups(&self) -> &Option<bool>
pub fn get_delete_automated_backups(&self) -> &Option<bool>
Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted.
Trait Implementations§
source§impl Clone for DeleteDBClusterFluentBuilder
impl Clone for DeleteDBClusterFluentBuilder
source§fn clone(&self) -> DeleteDBClusterFluentBuilder
fn clone(&self) -> DeleteDBClusterFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more