pub struct RestoreTableFromClusterSnapshot { /* private fields */ }
Expand description
Fluent builder constructing a request to RestoreTableFromClusterSnapshot
.
Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.
You cannot use RestoreTableFromClusterSnapshot
to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call RestoreTableFromClusterSnapshot
. When you have renamed your original table, then you can pass the original name of the table as the NewTableName
parameter value in the call to RestoreTableFromClusterSnapshot
. This way, you can replace the original table with the table created from the snapshot.
Implementations
sourceimpl RestoreTableFromClusterSnapshot
impl RestoreTableFromClusterSnapshot
sourcepub async fn send(
self
) -> Result<RestoreTableFromClusterSnapshotOutput, SdkError<RestoreTableFromClusterSnapshotError>>
pub async fn send(
self
) -> Result<RestoreTableFromClusterSnapshotOutput, SdkError<RestoreTableFromClusterSnapshotError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the Amazon Redshift cluster to restore the table to.
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the Amazon Redshift cluster to restore the table to.
sourcepub fn snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the ClusterIdentifier
parameter.
sourcepub fn set_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_identifier(self, input: Option<String>) -> Self
The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the ClusterIdentifier
parameter.
sourcepub fn source_database_name(self, input: impl Into<String>) -> Self
pub fn source_database_name(self, input: impl Into<String>) -> Self
The name of the source database that contains the table to restore from.
sourcepub fn set_source_database_name(self, input: Option<String>) -> Self
pub fn set_source_database_name(self, input: Option<String>) -> Self
The name of the source database that contains the table to restore from.
sourcepub fn source_schema_name(self, input: impl Into<String>) -> Self
pub fn source_schema_name(self, input: impl Into<String>) -> Self
The name of the source schema that contains the table to restore from. If you do not specify a SourceSchemaName
value, the default is public
.
sourcepub fn set_source_schema_name(self, input: Option<String>) -> Self
pub fn set_source_schema_name(self, input: Option<String>) -> Self
The name of the source schema that contains the table to restore from. If you do not specify a SourceSchemaName
value, the default is public
.
sourcepub fn source_table_name(self, input: impl Into<String>) -> Self
pub fn source_table_name(self, input: impl Into<String>) -> Self
The name of the source table to restore from.
sourcepub fn set_source_table_name(self, input: Option<String>) -> Self
pub fn set_source_table_name(self, input: Option<String>) -> Self
The name of the source table to restore from.
sourcepub fn target_database_name(self, input: impl Into<String>) -> Self
pub fn target_database_name(self, input: impl Into<String>) -> Self
The name of the database to restore the table to.
sourcepub fn set_target_database_name(self, input: Option<String>) -> Self
pub fn set_target_database_name(self, input: Option<String>) -> Self
The name of the database to restore the table to.
sourcepub fn target_schema_name(self, input: impl Into<String>) -> Self
pub fn target_schema_name(self, input: impl Into<String>) -> Self
The name of the schema to restore the table to.
sourcepub fn set_target_schema_name(self, input: Option<String>) -> Self
pub fn set_target_schema_name(self, input: Option<String>) -> Self
The name of the schema to restore the table to.
sourcepub fn new_table_name(self, input: impl Into<String>) -> Self
pub fn new_table_name(self, input: impl Into<String>) -> Self
The name of the table to create as a result of the current request.
sourcepub fn set_new_table_name(self, input: Option<String>) -> Self
pub fn set_new_table_name(self, input: Option<String>) -> Self
The name of the table to create as a result of the current request.
sourcepub fn enable_case_sensitive_identifier(self, input: bool) -> Self
pub fn enable_case_sensitive_identifier(self, input: bool) -> Self
Indicates whether name identifiers for database, schema, and table are case sensitive. If true
, the names are case sensitive. If false
(default), the names are not case sensitive.
sourcepub fn set_enable_case_sensitive_identifier(self, input: Option<bool>) -> Self
pub fn set_enable_case_sensitive_identifier(self, input: Option<bool>) -> Self
Indicates whether name identifiers for database, schema, and table are case sensitive. If true
, the names are case sensitive. If false
(default), the names are not case sensitive.
Trait Implementations
sourceimpl Clone for RestoreTableFromClusterSnapshot
impl Clone for RestoreTableFromClusterSnapshot
sourcefn clone(&self) -> RestoreTableFromClusterSnapshot
fn clone(&self) -> RestoreTableFromClusterSnapshot
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RestoreTableFromClusterSnapshot
impl Send for RestoreTableFromClusterSnapshot
impl Sync for RestoreTableFromClusterSnapshot
impl Unpin for RestoreTableFromClusterSnapshot
impl !UnwindSafe for RestoreTableFromClusterSnapshot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more