aws_sdk_redshift/client/copy_cluster_snapshot.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CopyClusterSnapshot`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`source_snapshot_identifier(impl Into<String>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::source_snapshot_identifier) / [`set_source_snapshot_identifier(Option<String>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::set_source_snapshot_identifier):<br>required: **true**<br><p>The identifier for the source snapshot.</p> <p>Constraints:</p> <ul> <li> <p>Must be the identifier for a valid automated snapshot whose state is <code>available</code>.</p></li> </ul><br>
7 /// - [`source_snapshot_cluster_identifier(impl Into<String>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::source_snapshot_cluster_identifier) / [`set_source_snapshot_cluster_identifier(Option<String>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::set_source_snapshot_cluster_identifier):<br>required: **false**<br><p>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.</p> <p>Constraints:</p> <ul> <li> <p>Must be the identifier for a valid cluster.</p></li> </ul><br>
8 /// - [`target_snapshot_identifier(impl Into<String>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::target_snapshot_identifier) / [`set_target_snapshot_identifier(Option<String>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::set_target_snapshot_identifier):<br>required: **true**<br><p>The identifier given to the new manual snapshot.</p> <p>Constraints:</p> <ul> <li> <p>Cannot be null, empty, or blank.</p></li> <li> <p>Must contain from 1 to 255 alphanumeric characters or hyphens.</p></li> <li> <p>First character must be a letter.</p></li> <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p></li> <li> <p>Must be unique for the Amazon Web Services account that is making the request.</p></li> </ul><br>
9 /// - [`manual_snapshot_retention_period(i32)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::manual_snapshot_retention_period) / [`set_manual_snapshot_retention_period(Option<i32>)`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::set_manual_snapshot_retention_period):<br>required: **false**<br><p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p> <p>The value must be either -1 or an integer between 1 and 3,653.</p> <p>The default value is -1.</p><br>
10 /// - On success, responds with [`CopyClusterSnapshotOutput`](crate::operation::copy_cluster_snapshot::CopyClusterSnapshotOutput) with field(s):
11 /// - [`snapshot(Option<Snapshot>)`](crate::operation::copy_cluster_snapshot::CopyClusterSnapshotOutput::snapshot): <p>Describes a snapshot.</p>
12 /// - On failure, responds with [`SdkError<CopyClusterSnapshotError>`](crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError)
13 pub fn copy_cluster_snapshot(&self) -> crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder {
14 crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::new(self.handle.clone())
15 }
16}