pub struct DeleteDBClusterFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteDBCluster
.
Deletes a previously provisioned cluster. When you delete a cluster, all automated backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified cluster are not deleted.
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 cluster identifier for the 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 cluster identifier for the 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 cluster identifier for the 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
Determines whether a final cluster snapshot is created before the cluster is deleted. If true
is specified, no cluster snapshot is created. If false
is specified, a cluster snapshot is created before the DB cluster is deleted.
If SkipFinalSnapshot
is false
, you must specify a FinalDBSnapshotIdentifier
parameter.
Default: false
sourcepub fn set_skip_final_snapshot(self, input: Option<bool>) -> Self
pub fn set_skip_final_snapshot(self, input: Option<bool>) -> Self
Determines whether a final cluster snapshot is created before the cluster is deleted. If true
is specified, no cluster snapshot is created. If false
is specified, a cluster snapshot is created before the DB cluster is deleted.
If SkipFinalSnapshot
is false
, you must specify a FinalDBSnapshotIdentifier
parameter.
Default: false
sourcepub fn get_skip_final_snapshot(&self) -> &Option<bool>
pub fn get_skip_final_snapshot(&self) -> &Option<bool>
Determines whether a final cluster snapshot is created before the cluster is deleted. If true
is specified, no cluster snapshot is created. If false
is specified, a cluster snapshot is created before the DB cluster is deleted.
If SkipFinalSnapshot
is false
, you must specify a FinalDBSnapshotIdentifier
parameter.
Default: false
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 cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot
is set to false
.
Specifying this parameter and also setting the SkipFinalShapshot
parameter to true
results in an error.
Constraints:
-
Must be from 1 to 255 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Cannot 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 cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot
is set to false
.
Specifying this parameter and also setting the SkipFinalShapshot
parameter to true
results in an error.
Constraints:
-
Must be from 1 to 255 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Cannot 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 cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot
is set to false
.
Specifying this parameter and also setting the SkipFinalShapshot
parameter to true
results in an error.
Constraints:
-
Must be from 1 to 255 letters, numbers, or hyphens.
-
The first character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
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