aws-sdk-redshiftserverless 1.106.0

AWS SDK for Redshift Serverless
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSnapshotCopyConfiguration`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`namespace_name(impl Into<String>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::namespace_name) / [`set_namespace_name(Option<String>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::set_namespace_name):<br>required: **true**<br><p>The name of the namespace to copy snapshots from.</p><br>
    ///   - [`destination_region(impl Into<String>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::destination_region) / [`set_destination_region(Option<String>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::set_destination_region):<br>required: **true**<br><p>The destination Amazon Web Services Region that you want to copy snapshots to.</p><br>
    ///   - [`snapshot_retention_period(i32)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::snapshot_retention_period) / [`set_snapshot_retention_period(Option<i32>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::set_snapshot_retention_period):<br>required: **false**<br><p>The retention period of the snapshots that you copy to the destination Amazon Web Services Region.</p><br>
    ///   - [`destination_kms_key_id(impl Into<String>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::destination_kms_key_id) / [`set_destination_kms_key_id(Option<String>)`](crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::set_destination_kms_key_id):<br>required: **false**<br><p>The KMS key to use to encrypt your snapshots in the destination Amazon Web Services Region.</p><br>
    /// - On success, responds with [`CreateSnapshotCopyConfigurationOutput`](crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationOutput) with field(s):
    ///   - [`snapshot_copy_configuration(Option<SnapshotCopyConfiguration>)`](crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationOutput::snapshot_copy_configuration): <p>The snapshot copy configuration object that is returned.</p>
    /// - On failure, responds with [`SdkError<CreateSnapshotCopyConfigurationError>`](crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError)
    pub fn create_snapshot_copy_configuration(
        &self,
    ) -> crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder {
        crate::operation::create_snapshot_copy_configuration::builders::CreateSnapshotCopyConfigurationFluentBuilder::new(self.handle.clone())
    }
}