Struct aws_sdk_timestreamwrite::types::Schema
source · #[non_exhaustive]pub struct Schema {
pub composite_partition_key: Option<Vec<PartitionKey>>,
}
Expand description
A Schema specifies the expected data model of the table.
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.composite_partition_key: Option<Vec<PartitionKey>>
A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
Implementations§
source§impl Schema
impl Schema
sourcepub fn composite_partition_key(&self) -> &[PartitionKey]
pub fn composite_partition_key(&self) -> &[PartitionKey]
A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .composite_partition_key.is_none()
.