aws_sdk_rds/client/
create_db_cluster_snapshot.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDBClusterSnapshot`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`db_cluster_snapshot_identifier(impl Into<String>)`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::db_cluster_snapshot_identifier) / [`set_db_cluster_snapshot_identifier(Option<String>)`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::set_db_cluster_snapshot_identifier):<br>required: **true**<br><p>The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.</p> <p>Constraints:</p> <ul>  <li>   <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>  <li>   <p>First character must be a letter.</p></li>  <li>   <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li> </ul> <p>Example: <code>my-cluster1-snapshot1</code></p><br>
    ///   - [`db_cluster_identifier(impl Into<String>)`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::db_cluster_identifier) / [`set_db_cluster_identifier(Option<String>)`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::set_db_cluster_identifier):<br>required: **true**<br><p>The identifier of the DB cluster to create a snapshot for. This parameter isn't case-sensitive.</p> <p>Constraints:</p> <ul>  <li>   <p>Must match the identifier of an existing DBCluster.</p></li> </ul> <p>Example: <code>my-cluster1</code></p><br>
    ///   - [`tags(Tag)`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to be assigned to the DB cluster snapshot.</p><br>
    /// - On success, responds with [`CreateDbClusterSnapshotOutput`](crate::operation::create_db_cluster_snapshot::CreateDbClusterSnapshotOutput) with field(s):
    ///   - [`db_cluster_snapshot(Option<DbClusterSnapshot>)`](crate::operation::create_db_cluster_snapshot::CreateDbClusterSnapshotOutput::db_cluster_snapshot): <p>Contains the details for an Amazon RDS DB cluster snapshot</p> <p>This data type is used as a response element in the <code>DescribeDBClusterSnapshots</code> action.</p>
    /// - On failure, responds with [`SdkError<CreateDBClusterSnapshotError>`](crate::operation::create_db_cluster_snapshot::CreateDBClusterSnapshotError)
    pub fn create_db_cluster_snapshot(&self) -> crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder {
        crate::operation::create_db_cluster_snapshot::builders::CreateDBClusterSnapshotFluentBuilder::new(self.handle.clone())
    }
}