Struct aws_sdk_keyspaces::input::RestoreTableInput
source · #[non_exhaustive]pub struct RestoreTableInput { /* private fields */ }
Implementations§
source§impl RestoreTableInput
impl RestoreTableInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreTable, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreTable, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreTable
>
Examples found in repository?
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreTable,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreTableError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::RestoreTableOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreTableError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RestoreTableInput
.
source§impl RestoreTableInput
impl RestoreTableInput
sourcepub fn source_keyspace_name(&self) -> Option<&str>
pub fn source_keyspace_name(&self) -> Option<&str>
The keyspace name of the source table.
sourcepub fn source_table_name(&self) -> Option<&str>
pub fn source_table_name(&self) -> Option<&str>
The name of the source table.
sourcepub fn target_keyspace_name(&self) -> Option<&str>
pub fn target_keyspace_name(&self) -> Option<&str>
The name of the target keyspace.
sourcepub fn target_table_name(&self) -> Option<&str>
pub fn target_table_name(&self) -> Option<&str>
The name of the target table.
sourcepub fn restore_timestamp(&self) -> Option<&DateTime>
pub fn restore_timestamp(&self) -> Option<&DateTime>
The restore timestamp in ISO 8601 format.
sourcepub fn capacity_specification_override(&self) -> Option<&CapacitySpecification>
pub fn capacity_specification_override(&self) -> Option<&CapacitySpecification>
Specifies the read/write throughput capacity mode for the target table. The options are:
• throughputMode:PAY_PER_REQUEST
• throughputMode:PROVISIONED
- Provisioned capacity mode requires readCapacityUnits
and writeCapacityUnits
as input.
The default is throughput_mode:PAY_PER_REQUEST
.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
sourcepub fn encryption_specification_override(
&self
) -> Option<&EncryptionSpecification>
pub fn encryption_specification_override(
&self
) -> Option<&EncryptionSpecification>
Specifies the encryption settings for the target table. You can choose one of the following KMS key (KMS key):
• type:AWS_OWNED_KMS_KEY
- This key is owned by Amazon Keyspaces.
• type:CUSTOMER_MANAGED_KMS_KEY
- This key is stored in your account and is created, owned, and managed by you. This option requires the kms_key_identifier
of the KMS key in Amazon Resource Name (ARN) format as input.
The default is type:AWS_OWNED_KMS_KEY
.
For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
sourcepub fn point_in_time_recovery_override(&self) -> Option<&PointInTimeRecovery>
pub fn point_in_time_recovery_override(&self) -> Option<&PointInTimeRecovery>
Specifies the pointInTimeRecovery
settings for the target table. The options are:
• ENABLED
• DISABLED
If it's not specified, the default is DISABLED
.
For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.
A list of key-value pair tags to be attached to the restored table.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
Trait Implementations§
source§impl Clone for RestoreTableInput
impl Clone for RestoreTableInput
source§fn clone(&self) -> RestoreTableInput
fn clone(&self) -> RestoreTableInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more