Struct aws_sdk_keyspaces::input::restore_table_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RestoreTableInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn source_keyspace_name(self, input: impl Into<String>) -> Self
pub fn source_keyspace_name(self, input: impl Into<String>) -> Self
The keyspace name of the source table.
sourcepub fn set_source_keyspace_name(self, input: Option<String>) -> Self
pub fn set_source_keyspace_name(self, input: Option<String>) -> Self
The keyspace name of the source table.
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.
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.
sourcepub fn target_keyspace_name(self, input: impl Into<String>) -> Self
pub fn target_keyspace_name(self, input: impl Into<String>) -> Self
The name of the target keyspace.
sourcepub fn set_target_keyspace_name(self, input: Option<String>) -> Self
pub fn set_target_keyspace_name(self, input: Option<String>) -> Self
The name of the target keyspace.
sourcepub fn target_table_name(self, input: impl Into<String>) -> Self
pub fn target_table_name(self, input: impl Into<String>) -> Self
The name of the target table.
sourcepub fn set_target_table_name(self, input: Option<String>) -> Self
pub fn set_target_table_name(self, input: Option<String>) -> Self
The name of the target table.
sourcepub fn restore_timestamp(self, input: DateTime) -> Self
pub fn restore_timestamp(self, input: DateTime) -> Self
The restore timestamp in ISO 8601 format.
sourcepub fn set_restore_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_restore_timestamp(self, input: Option<DateTime>) -> Self
The restore timestamp in ISO 8601 format.
sourcepub fn capacity_specification_override(
self,
input: CapacitySpecification
) -> Self
pub fn capacity_specification_override(
self,
input: CapacitySpecification
) -> Self
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 set_capacity_specification_override(
self,
input: Option<CapacitySpecification>
) -> Self
pub fn set_capacity_specification_override(
self,
input: Option<CapacitySpecification>
) -> Self
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,
input: EncryptionSpecification
) -> Self
pub fn encryption_specification_override(
self,
input: EncryptionSpecification
) -> Self
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 set_encryption_specification_override(
self,
input: Option<EncryptionSpecification>
) -> Self
pub fn set_encryption_specification_override(
self,
input: Option<EncryptionSpecification>
) -> Self
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, input: PointInTimeRecovery) -> Self
pub fn point_in_time_recovery_override(self, input: PointInTimeRecovery) -> Self
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.
sourcepub fn set_point_in_time_recovery_override(
self,
input: Option<PointInTimeRecovery>
) -> Self
pub fn set_point_in_time_recovery_override(
self,
input: Option<PointInTimeRecovery>
) -> Self
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.
Appends an item to tags_override
.
To override the contents of this collection use set_tags_override
.
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.
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.
sourcepub fn build(self) -> Result<RestoreTableInput, BuildError>
pub fn build(self) -> Result<RestoreTableInput, BuildError>
Consumes the builder and constructs a RestoreTableInput
.
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
}