aws_sdk_redshift/client/
restore_table_from_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 [`RestoreTableFromClusterSnapshot`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster_identifier(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_cluster_identifier):<br>required: **true**<br><p>The identifier of the Amazon Redshift cluster to restore the table to.</p><br>
7    ///   - [`snapshot_identifier(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::snapshot_identifier) / [`set_snapshot_identifier(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_snapshot_identifier):<br>required: **true**<br><p>The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the <code>ClusterIdentifier</code> parameter.</p><br>
8    ///   - [`source_database_name(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::source_database_name) / [`set_source_database_name(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_source_database_name):<br>required: **true**<br><p>The name of the source database that contains the table to restore from.</p><br>
9    ///   - [`source_schema_name(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::source_schema_name) / [`set_source_schema_name(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_source_schema_name):<br>required: **false**<br><p>The name of the source schema that contains the table to restore from. If you do not specify a <code>SourceSchemaName</code> value, the default is <code>public</code>.</p><br>
10    ///   - [`source_table_name(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::source_table_name) / [`set_source_table_name(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_source_table_name):<br>required: **true**<br><p>The name of the source table to restore from.</p><br>
11    ///   - [`target_database_name(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::target_database_name) / [`set_target_database_name(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_target_database_name):<br>required: **false**<br><p>The name of the database to restore the table to.</p><br>
12    ///   - [`target_schema_name(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::target_schema_name) / [`set_target_schema_name(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_target_schema_name):<br>required: **false**<br><p>The name of the schema to restore the table to.</p><br>
13    ///   - [`new_table_name(impl Into<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::new_table_name) / [`set_new_table_name(Option<String>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_new_table_name):<br>required: **true**<br><p>The name of the table to create as a result of the current request.</p><br>
14    ///   - [`enable_case_sensitive_identifier(bool)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::enable_case_sensitive_identifier) / [`set_enable_case_sensitive_identifier(Option<bool>)`](crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::set_enable_case_sensitive_identifier):<br>required: **false**<br><p>Indicates whether name identifiers for database, schema, and table are case sensitive. If <code>true</code>, the names are case sensitive. If <code>false</code> (default), the names are not case sensitive.</p><br>
15    /// - On success, responds with [`RestoreTableFromClusterSnapshotOutput`](crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotOutput) with field(s):
16    ///   - [`table_restore_status(Option<TableRestoreStatus>)`](crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotOutput::table_restore_status): <p>Describes the status of a <code>RestoreTableFromClusterSnapshot</code> operation.</p>
17    /// - On failure, responds with [`SdkError<RestoreTableFromClusterSnapshotError>`](crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError)
18    pub fn restore_table_from_cluster_snapshot(
19        &self,
20    ) -> crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder {
21        crate::operation::restore_table_from_cluster_snapshot::builders::RestoreTableFromClusterSnapshotFluentBuilder::new(self.handle.clone())
22    }
23}