Struct aws_sdk_keyspaces::input::UpdateTableInput
source · [−]#[non_exhaustive]pub struct UpdateTableInput {
pub keyspace_name: Option<String>,
pub table_name: Option<String>,
pub add_columns: Option<Vec<ColumnDefinition>>,
pub capacity_specification: Option<CapacitySpecification>,
pub encryption_specification: Option<EncryptionSpecification>,
pub point_in_time_recovery: Option<PointInTimeRecovery>,
pub ttl: Option<TimeToLive>,
pub default_time_to_live: Option<i32>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.keyspace_name: Option<String>
The name of the keyspace the specified table is stored in.
table_name: Option<String>
The name of the table.
add_columns: Option<Vec<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.
capacity_specification: 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.
encryption_specification: 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.
point_in_time_recovery: 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.
ttl: 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.
default_time_to_live: 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.
Implementations
sourceimpl UpdateTableInput
impl UpdateTableInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateTable, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateTable, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateTable
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateTableInput
sourceimpl 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
sourceimpl Clone for UpdateTableInput
impl Clone for UpdateTableInput
sourcefn clone(&self) -> UpdateTableInput
fn clone(&self) -> UpdateTableInput
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
sourceimpl Debug for UpdateTableInput
impl Debug for UpdateTableInput
sourceimpl PartialEq<UpdateTableInput> for UpdateTableInput
impl PartialEq<UpdateTableInput> for UpdateTableInput
sourcefn eq(&self, other: &UpdateTableInput) -> bool
fn eq(&self, other: &UpdateTableInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateTableInput) -> bool
fn ne(&self, other: &UpdateTableInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpdateTableInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateTableInput
impl Send for UpdateTableInput
impl Sync for UpdateTableInput
impl Unpin for UpdateTableInput
impl UnwindSafe for UpdateTableInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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> 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