Struct aws_sdk_keyspaces::input::CreateTableInput
source · #[non_exhaustive]pub struct CreateTableInput { /* private fields */ }
Implementations§
source§impl CreateTableInput
impl CreateTableInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTable, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTable, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateTable
>
Examples found in repository?
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTable,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateTableError>,
> {
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::CreateTableOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTableError>,
> {
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 CreateTableInput
.
source§impl CreateTableInput
impl CreateTableInput
sourcepub fn keyspace_name(&self) -> Option<&str>
pub fn keyspace_name(&self) -> Option<&str>
The name of the keyspace that the table is going to be created in.
sourcepub fn table_name(&self) -> Option<&str>
pub fn table_name(&self) -> Option<&str>
The name of the table.
sourcepub fn schema_definition(&self) -> Option<&SchemaDefinition>
pub fn schema_definition(&self) -> Option<&SchemaDefinition>
The schemaDefinition
consists of the following parameters.
For each column to be created:
• name
- The name of the column.
• type
- An Amazon Keyspaces data type. For more information, see Data types in the Amazon Keyspaces Developer Guide.
The primary key of the table consists of the following columns:
• partitionKeys
- The partition key can be a single column, or it can be a compound value composed of two or more columns. The partition key portion of the primary key is required and determines how Amazon Keyspaces stores your data.
• name
- The name of each partition key column.
• clusteringKeys
- The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition.
• name
- The name of the clustering column.
• orderBy
- Sets the ascendant (ASC
) or descendant (DESC
) order modifier.
To define a column as static use staticColumns
- Static columns store values that are shared by all rows in the same partition:
• name
- The name of the column.
• type
- An Amazon Keyspaces data type.
sourcepub fn comment(&self) -> Option<&Comment>
pub fn comment(&self) -> Option<&Comment>
This parameter allows to enter a description of the table.
sourcepub fn capacity_specification(&self) -> Option<&CapacitySpecification>
pub fn capacity_specification(&self) -> Option<&CapacitySpecification>
Specifies 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>
Specifies how the encryption key for encryption at rest is managed for 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 type: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>
Specifies if pointInTimeRecovery
is enabled or disabled for 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>
Enables 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.
A list of key-value pair tags to be attached to the resource.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
Trait Implementations§
source§impl Clone for CreateTableInput
impl Clone for CreateTableInput
source§fn clone(&self) -> CreateTableInput
fn clone(&self) -> CreateTableInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more