Struct aws_sdk_keyspaces::input::UpdateTableInput
source · #[non_exhaustive]pub struct UpdateTableInput { /* private fields */ }
Implementations§
source§impl UpdateTableInput
impl UpdateTableInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateTable, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateTable, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateTable
>
Examples found in repository?
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateTable,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateTableError>,
> {
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::UpdateTableOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTableError>,
> {
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 UpdateTableInput
.
source§impl UpdateTableInput
impl UpdateTableInput
sourcepub fn keyspace_name(&self) -> Option<&str>
pub fn keyspace_name(&self) -> Option<&str>
The name of the keyspace the specified table is stored in.
sourcepub fn table_name(&self) -> Option<&str>
pub fn table_name(&self) -> Option<&str>
The name of the table.
sourcepub fn add_columns(&self) -> Option<&[ColumnDefinition]>
pub fn add_columns(&self) -> Option<&[ColumnDefinition]>
For each column to be added to the specified table:
• name
- The name of the column.
• type
- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
sourcepub fn capacity_specification(&self) -> Option<&CapacitySpecification>
pub fn capacity_specification(&self) -> Option<&CapacitySpecification>
Modifies the read/write throughput capacity mode for the table. The options are:
• throughputMode:PAY_PER_REQUEST
and
• 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(&self) -> Option<&EncryptionSpecification>
pub fn encryption_specification(&self) -> Option<&EncryptionSpecification>
Modifies the encryption settings of the 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 AWS_OWNED_KMS_KEY
.
For more information, see Encryption at rest in the Amazon Keyspaces Developer Guide.
sourcepub fn point_in_time_recovery(&self) -> Option<&PointInTimeRecovery>
pub fn point_in_time_recovery(&self) -> Option<&PointInTimeRecovery>
Modifies the pointInTimeRecovery
settings of the 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 ttl(&self) -> Option<&TimeToLive>
pub fn ttl(&self) -> Option<&TimeToLive>
Modifies Time to Live custom settings for the table. The options are:
• status:enabled
• status:disabled
The default is status:disabled
. After ttl
is enabled, you can't disable it for the table.
For more information, see Expiring data by using Amazon Keyspaces Time to Live (TTL) in the Amazon Keyspaces Developer Guide.
sourcepub fn default_time_to_live(&self) -> Option<i32>
pub fn default_time_to_live(&self) -> Option<i32>
The default Time to Live setting in seconds for the table.
For more information, see Setting the default TTL value for a table in the Amazon Keyspaces Developer Guide.
Trait Implementations§
source§impl Clone for UpdateTableInput
impl Clone for UpdateTableInput
source§fn clone(&self) -> UpdateTableInput
fn clone(&self) -> UpdateTableInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more