Skip to main content

aws_sdk_redshiftserverless/client/
restore_from_recovery_point.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 [`RestoreFromRecoveryPoint`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`recovery_point_id(impl Into<String>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::recovery_point_id) / [`set_recovery_point_id(Option<String>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::set_recovery_point_id):<br>required: **true**<br><p>The unique identifier of the recovery point to restore from.</p><br>
7    ///   - [`namespace_name(impl Into<String>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::namespace_name) / [`set_namespace_name(Option<String>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::set_namespace_name):<br>required: **true**<br><p>The name of the namespace to restore data into.</p><br>
8    ///   - [`workgroup_name(impl Into<String>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::workgroup_name) / [`set_workgroup_name(Option<String>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::set_workgroup_name):<br>required: **true**<br><p>The name of the workgroup used to restore data.</p><br>
9    ///   - [`maintain_integration(bool)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::maintain_integration) / [`set_maintain_integration(Option<bool>)`](crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::set_maintain_integration):<br>required: **false**<br><p>If <code>true</code>, maintain existing data sharing, zero-ETL and S3 event integrations when restoring. Otherwise, integrations will not be maintained after the restore operation. Integrations are only maintained when restored to the same serverless namespace.</p> <p>Default: true</p><br>
10    /// - On success, responds with [`RestoreFromRecoveryPointOutput`](crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointOutput) with field(s):
11    ///   - [`recovery_point_id(Option<String>)`](crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointOutput::recovery_point_id): <p>The unique identifier of the recovery point used for the restore.</p>
12    ///   - [`namespace(Option<Namespace>)`](crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointOutput::namespace): <p>The namespace that data was restored into.</p>
13    /// - On failure, responds with [`SdkError<RestoreFromRecoveryPointError>`](crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError)
14    pub fn restore_from_recovery_point(&self) -> crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder {
15        crate::operation::restore_from_recovery_point::builders::RestoreFromRecoveryPointFluentBuilder::new(self.handle.clone())
16    }
17}