pub struct CopyClusterSnapshot { /* private fields */ }
Expand description
Fluent builder constructing a request to CopyClusterSnapshot
.
Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.
When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.
Implementations§
source§impl CopyClusterSnapshot
impl CopyClusterSnapshot
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CopyClusterSnapshot, AwsResponseRetryClassifier>, SdkError<CopyClusterSnapshotError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CopyClusterSnapshot, AwsResponseRetryClassifier>, SdkError<CopyClusterSnapshotError>>
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<CopyClusterSnapshotOutput, SdkError<CopyClusterSnapshotError>>
pub async fn send(
self
) -> Result<CopyClusterSnapshotOutput, SdkError<CopyClusterSnapshotError>>
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 source_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn source_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
sourcepub fn set_source_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_source_snapshot_identifier(self, input: Option<String>) -> Self
The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
sourcepub fn source_snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn source_snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster the source 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 identifier for a valid cluster.
sourcepub fn set_source_snapshot_cluster_identifier(
self,
input: Option<String>
) -> Self
pub fn set_source_snapshot_cluster_identifier(
self,
input: Option<String>
) -> Self
The identifier of the cluster the source 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 identifier for a valid cluster.
sourcepub fn target_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn target_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
sourcepub fn set_target_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_target_snapshot_identifier(self, input: Option<String>) -> Self
The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
sourcepub fn manual_snapshot_retention_period(self, input: i32) -> Self
pub fn manual_snapshot_retention_period(self, input: i32) -> Self
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
sourcepub fn set_manual_snapshot_retention_period(self, input: Option<i32>) -> Self
pub fn set_manual_snapshot_retention_period(self, input: Option<i32>) -> Self
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
Trait Implementations§
source§impl Clone for CopyClusterSnapshot
impl Clone for CopyClusterSnapshot
source§fn clone(&self) -> CopyClusterSnapshot
fn clone(&self) -> CopyClusterSnapshot
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more