aws_sdk_redshift/client/modify_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 [`ModifyClusterSnapshot`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`snapshot_identifier(impl 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):<br>required: **true**<br><p>The identifier of the snapshot whose setting you want to modify.</p><br>
7 /// - [`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):<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>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><br>
8 /// - [`force(bool)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::set_force):<br>required: **false**<br><p>A Boolean option to override an exception if the retention period has already passed.</p><br>
9 /// - On success, responds with [`ModifyClusterSnapshotOutput`](crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotOutput) with field(s):
10 /// - [`snapshot(Option<Snapshot>)`](crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotOutput::snapshot): <p>Describes a snapshot.</p>
11 /// - On failure, responds with [`SdkError<ModifyClusterSnapshotError>`](crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError)
12 pub fn modify_cluster_snapshot(&self) -> crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder {
13 crate::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotFluentBuilder::new(self.handle.clone())
14 }
15}