Struct aws_sdk_redshift::operation::delete_cluster_snapshot::builders::DeleteClusterSnapshotFluentBuilder
source · pub struct DeleteClusterSnapshotFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteClusterSnapshot
.
Deletes the specified manual snapshot. The snapshot must be in the available
state, with no other users authorized to access the snapshot.
Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to access the snapshot, you must revoke all of the authorizations before you can delete the snapshot.
Implementations§
source§impl DeleteClusterSnapshotFluentBuilder
impl DeleteClusterSnapshotFluentBuilder
sourcepub fn as_input(&self) -> &DeleteClusterSnapshotInputBuilder
pub fn as_input(&self) -> &DeleteClusterSnapshotInputBuilder
Access the DeleteClusterSnapshot as a reference.
sourcepub async fn send(
self
) -> Result<DeleteClusterSnapshotOutput, SdkError<DeleteClusterSnapshotError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteClusterSnapshotOutput, SdkError<DeleteClusterSnapshotError, 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<DeleteClusterSnapshotOutput, DeleteClusterSnapshotError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteClusterSnapshotOutput, DeleteClusterSnapshotError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier(self, input: impl Into<String>) -> Self
The unique identifier of the manual snapshot to be deleted.
Constraints: Must be the name of an existing snapshot that is in the available
, failed
, or cancelled
state.
sourcepub fn set_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_identifier(self, input: Option<String>) -> Self
The unique identifier of the manual snapshot to be deleted.
Constraints: Must be the name of an existing snapshot that is in the available
, failed
, or cancelled
state.
sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
The unique identifier of the manual snapshot to be deleted.
Constraints: Must be the name of an existing snapshot that is in the available
, failed
, or cancelled
state.
sourcepub fn snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
Constraints: Must be the name of valid cluster.
sourcepub fn set_snapshot_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_cluster_identifier(self, input: Option<String>) -> Self
The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
Constraints: Must be the name of valid cluster.
sourcepub fn get_snapshot_cluster_identifier(&self) -> &Option<String>
pub fn get_snapshot_cluster_identifier(&self) -> &Option<String>
The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
Constraints: Must be the name of valid cluster.
Trait Implementations§
source§impl Clone for DeleteClusterSnapshotFluentBuilder
impl Clone for DeleteClusterSnapshotFluentBuilder
source§fn clone(&self) -> DeleteClusterSnapshotFluentBuilder
fn clone(&self) -> DeleteClusterSnapshotFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more