// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CopyClusterSnapshot`](crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`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>
/// - [`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>
/// - [`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>
/// - [`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>
/// - On success, responds with [`CopyClusterSnapshotOutput`](crate::operation::copy_cluster_snapshot::CopyClusterSnapshotOutput) with field(s):
/// - [`snapshot(Option<Snapshot>)`](crate::operation::copy_cluster_snapshot::CopyClusterSnapshotOutput::snapshot): <p>Describes a snapshot.</p>
/// - On failure, responds with [`SdkError<CopyClusterSnapshotError>`](crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError)
pub fn copy_cluster_snapshot(&self) -> crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder {
crate::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotFluentBuilder::new(self.handle.clone())
}
}