aws_sdk_redshiftserverless/client/
restore_table_from_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 [`RestoreTableFromSnapshot`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`namespace_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::namespace_name) / [`set_namespace_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_namespace_name):<br>required: **true**<br><p>The namespace of the snapshot to restore from.</p><br>
7    ///   - [`workgroup_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::workgroup_name) / [`set_workgroup_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_workgroup_name):<br>required: **true**<br><p>The workgroup to restore the table to.</p><br>
8    ///   - [`snapshot_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_snapshot_name):<br>required: **true**<br><p>The name of the snapshot to restore the table from.</p><br>
9    ///   - [`source_database_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::source_database_name) / [`set_source_database_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_source_database_name):<br>required: **true**<br><p>The name of the source database that contains the table being restored.</p><br>
10    ///   - [`source_schema_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::source_schema_name) / [`set_source_schema_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_source_schema_name):<br>required: **false**<br><p>The name of the source schema that contains the table being restored.</p><br>
11    ///   - [`source_table_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::source_table_name) / [`set_source_table_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_source_table_name):<br>required: **true**<br><p>The name of the source table being restored.</p><br>
12    ///   - [`target_database_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::target_database_name) / [`set_target_database_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_target_database_name):<br>required: **false**<br><p>The name of the database to restore the table to.</p><br>
13    ///   - [`target_schema_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::target_schema_name) / [`set_target_schema_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_target_schema_name):<br>required: **false**<br><p>The name of the schema to restore the table to.</p><br>
14    ///   - [`new_table_name(impl Into<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::new_table_name) / [`set_new_table_name(Option<String>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_new_table_name):<br>required: **true**<br><p>The name of the table to create from the restore operation.</p><br>
15    ///   - [`activate_case_sensitive_identifier(bool)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::activate_case_sensitive_identifier) / [`set_activate_case_sensitive_identifier(Option<bool>)`](crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::set_activate_case_sensitive_identifier):<br>required: **false**<br><p>Indicates whether name identifiers for database, schema, and table are case sensitive. If true, the names are case sensitive. If false, the names are not case sensitive. The default is false.</p><br>
16    /// - On success, responds with [`RestoreTableFromSnapshotOutput`](crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotOutput) with field(s):
17    ///   - [`table_restore_status(Option<TableRestoreStatus>)`](crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotOutput::table_restore_status): <p>The TableRestoreStatus object that contains the status of the restore operation.</p>
18    /// - On failure, responds with [`SdkError<RestoreTableFromSnapshotError>`](crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError)
19    pub fn restore_table_from_snapshot(&self) -> crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder {
20        crate::operation::restore_table_from_snapshot::builders::RestoreTableFromSnapshotFluentBuilder::new(self.handle.clone())
21    }
22}