1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ModifyClusterSnapshot`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`snapshot_identifier(impl ::std::convert::Into<String>)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::snapshot_identifier) / [`set_snapshot_identifier(Option<String>)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::set_snapshot_identifier): <p>The identifier of the snapshot whose setting you want to modify.</p>
    ///   - [`manual_snapshot_retention_period(i32)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::manual_snapshot_retention_period) / [`set_manual_snapshot_retention_period(Option<i32>)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::set_manual_snapshot_retention_period): <p>The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.</p>  <p>If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.</p>  <p>The value must be either -1 or an integer between 1 and 3,653.</p>
    ///   - [`force(bool)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::force) / [`set_force(bool)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::set_force): <p>A Boolean option to override an exception if the retention period has already passed.</p>
    /// - On success, responds with [`ModifyClusterSnapshotOutput`](crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotOutput) with field(s):
    ///   - [`snapshot(Option<Snapshot>)`](crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotOutput::snapshot): <p>Describes a snapshot.</p>
    /// - On failure, responds with [`SdkError<ModifyClusterSnapshotError>`](crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError)
    pub fn modify_cluster_snapshot(
        &self,
    ) -> crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder
    {
        crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::new(
            self.handle.clone(),
        )
    }
}