aws_sdk_redshiftserverless/client/update_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 [`UpdateSnapshot`](crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`snapshot_name(impl Into<String>)`](crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder::set_snapshot_name):<br>required: **true**<br><p>The name of the snapshot.</p><br>
7 /// - [`retention_period(i32)`](crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder::retention_period) / [`set_retention_period(Option<i32>)`](crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder::set_retention_period):<br>required: **false**<br><p>The new retention period of the snapshot.</p><br>
8 /// - On success, responds with [`UpdateSnapshotOutput`](crate::operation::update_snapshot::UpdateSnapshotOutput) with field(s):
9 /// - [`snapshot(Option<Snapshot>)`](crate::operation::update_snapshot::UpdateSnapshotOutput::snapshot): <p>The updated snapshot object.</p>
10 /// - On failure, responds with [`SdkError<UpdateSnapshotError>`](crate::operation::update_snapshot::UpdateSnapshotError)
11 pub fn update_snapshot(&self) -> crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder {
12 crate::operation::update_snapshot::builders::UpdateSnapshotFluentBuilder::new(self.handle.clone())
13 }
14}