1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RestoreTable`](crate::operation::restore_table::builders::RestoreTableFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`source_keyspace_name(impl ::std::convert::Into<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::source_keyspace_name) / [`set_source_keyspace_name(Option<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_source_keyspace_name): <p>The keyspace name of the source table.</p>
    ///   - [`source_table_name(impl ::std::convert::Into<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::source_table_name) / [`set_source_table_name(Option<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_source_table_name): <p>The name of the source table.</p>
    ///   - [`target_keyspace_name(impl ::std::convert::Into<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::target_keyspace_name) / [`set_target_keyspace_name(Option<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_target_keyspace_name): <p>The name of the target keyspace.</p>
    ///   - [`target_table_name(impl ::std::convert::Into<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::target_table_name) / [`set_target_table_name(Option<String>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_target_table_name): <p>The name of the target table.</p>
    ///   - [`restore_timestamp(DateTime)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::restore_timestamp) / [`set_restore_timestamp(Option<DateTime>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_restore_timestamp): <p>The restore timestamp in ISO 8601 format.</p>
    ///   - [`capacity_specification_override(CapacitySpecification)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::capacity_specification_override) / [`set_capacity_specification_override(Option<CapacitySpecification>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_capacity_specification_override): <p>Specifies the read/write throughput capacity mode for the target table. The options are:</p>  <ul>   <li> <p> <code>throughputMode:PAY_PER_REQUEST</code> </p> </li>   <li> <p> <code>throughputMode:PROVISIONED</code> - Provisioned capacity mode requires <code>readCapacityUnits</code> and <code>writeCapacityUnits</code> as input.</p> </li>  </ul>  <p>The default is <code>throughput_mode:PAY_PER_REQUEST</code>.</p>  <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html">Read/write capacity modes</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
    ///   - [`encryption_specification_override(EncryptionSpecification)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::encryption_specification_override) / [`set_encryption_specification_override(Option<EncryptionSpecification>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_encryption_specification_override): <p>Specifies the encryption settings for the target table. You can choose one of the following KMS key (KMS key):</p>  <ul>   <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li>   <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li>  </ul>  <p>The default is <code>type:AWS_OWNED_KMS_KEY</code>.</p>  <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
    ///   - [`point_in_time_recovery_override(PointInTimeRecovery)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::point_in_time_recovery_override) / [`set_point_in_time_recovery_override(Option<PointInTimeRecovery>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_point_in_time_recovery_override): <p>Specifies the <code>pointInTimeRecovery</code> settings for the target table. The options are:</p>  <ul>   <li> <p> <code>status=ENABLED</code> </p> </li>   <li> <p> <code>status=DISABLED</code> </p> </li>  </ul>  <p>If it's not specified, the default is <code>status=DISABLED</code>.</p>  <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery.html">Point-in-time recovery</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
    ///   - [`tags_override(Vec<Tag>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::tags_override) / [`set_tags_override(Option<Vec<Tag>>)`](crate::operation::restore_table::builders::RestoreTableFluentBuilder::set_tags_override): <p>A list of key-value pair tags to be attached to the restored table. </p>  <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html">Adding tags and labels to Amazon Keyspaces resources</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
    /// - On success, responds with [`RestoreTableOutput`](crate::operation::restore_table::RestoreTableOutput) with field(s):
    ///   - [`restored_table_arn(Option<String>)`](crate::operation::restore_table::RestoreTableOutput::restored_table_arn): <p>The Amazon Resource Name (ARN) of the restored table.</p>
    /// - On failure, responds with [`SdkError<RestoreTableError>`](crate::operation::restore_table::RestoreTableError)
    pub fn restore_table(
        &self,
    ) -> crate::operation::restore_table::builders::RestoreTableFluentBuilder {
        crate::operation::restore_table::builders::RestoreTableFluentBuilder::new(
            self.handle.clone(),
        )
    }
}