aws_sdk_docdbelastic/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    ///   - [`cluster_arn(impl Into<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::cluster_arn) / [`set_cluster_arn(Option<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::set_cluster_arn):<br>required: **true**<br><p>The ARN identifier of the elastic cluster of which you want to create a snapshot.</p><br>
7    ///   - [`snapshot_name(impl Into<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::set_snapshot_name):<br>required: **true**<br><p>The name of the new elastic cluster snapshot.</p><br>
8    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to be assigned to the new elastic cluster snapshot.</p><br>
9    /// - On success, responds with [`CreateClusterSnapshotOutput`](crate::operation::create_cluster_snapshot::CreateClusterSnapshotOutput) with field(s):
10    ///   - [`snapshot(Option<ClusterSnapshot>)`](crate::operation::create_cluster_snapshot::CreateClusterSnapshotOutput::snapshot): <p>Returns information about the new elastic cluster snapshot.</p>
11    /// - On failure, responds with [`SdkError<CreateClusterSnapshotError>`](crate::operation::create_cluster_snapshot::CreateClusterSnapshotError)
12    pub fn create_cluster_snapshot(&self) -> crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder {
13        crate::operation::create_cluster_snapshot::builders::CreateClusterSnapshotFluentBuilder::new(self.handle.clone())
14    }
15}