aws_sdk_redshift/client/create_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 [`CreateClusterSnapshot`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`snapshot_identifier(impl Into<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::snapshot_identifier) / [`set_snapshot_identifier(Option<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::set_snapshot_identifier):<br>required: **true**<br><p>A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.</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> </ul> <p>Example: <code>my-snapshot-id</code></p><br>
7 /// - [`cluster_identifier(impl Into<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::set_cluster_identifier):<br>required: **true**<br><p>The cluster identifier for which you want a snapshot.</p><br>
8 /// - [`manual_snapshot_retention_period(i32)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::manual_snapshot_retention_period) / [`set_manual_snapshot_retention_period(Option<i32>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::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>
9 /// - [`tags(Tag)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tag instances.</p><br>
10 /// - On success, responds with [`CreateClusterSnapshotOutput`](crate::operation::create_cluster_snapshot::CreateClusterSnapshotOutput) with field(s):
11 /// - [`snapshot(Option<Snapshot>)`](crate::operation::create_cluster_snapshot::CreateClusterSnapshotOutput::snapshot): <p>Describes a snapshot.</p>
12 /// - On failure, responds with [`SdkError<CreateClusterSnapshotError>`](crate::operation::create_cluster_snapshot::CreateClusterSnapshotError)
13 pub fn create_cluster_snapshot(&self) -> crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder {
14 crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::new(self.handle.clone())
15 }
16}