The AWS::Timestream::Table resource creates a Timestream Table.
Create a Timestream table in a database named "MyTimestreamDB"
resource "awscc_timestream_table" "this" {
database_name = "MyTimestreamDB"
table_name = "MyTimestreamTable"
tags = [{
key = "Managed By"
value = "AWSCC"
}]
}
database_name
(String) The name for the database which the table to be created belongs to.magnetic_store_write_properties
(Attributes) The properties that determine whether magnetic store writes are enabled. (see below for nested schema)retention_properties
(Attributes) The retention duration of the memory store and the magnetic store. (see below for nested schema)schema
(Attributes) A Schema specifies the expected data model of the table. (see below for nested schema)table_name
(String) The name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name.tags
(Attributes List) An array of key-value pairs to apply to this resource. (see below for nested schema)arn
(String)id
(String) Uniquely identifies the resource.name
(String) The table name exposed as a read-only attribute.magnetic_store_write_properties
Required:
enable_magnetic_store_writes
(Boolean) Boolean flag indicating whether magnetic store writes are enabled.Optional:
magnetic_store_rejected_data_location
(Attributes) Location to store information about records that were asynchronously rejected during magnetic store writes. (see below for nested schema)magnetic_store_write_properties.magnetic_store_rejected_data_location
Optional:
s3_configuration
(Attributes) S3 configuration for location to store rejections from magnetic store writes (see below for nested schema)magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration
Required:
bucket_name
(String) The bucket name used to store the data.encryption_option
(String) Either SSE_KMS or SSE_S3.Optional:
kms_key_id
(String) Must be provided if SSE_KMS is specified as the encryption optionobject_key_prefix
(String) String used to prefix all data in the bucket.retention_properties
Optional:
magnetic_store_retention_period_in_days
(String) The duration for which data must be stored in the magnetic store.memory_store_retention_period_in_hours
(String) The duration for which data must be stored in the memory store.schema
Optional:
composite_partition_key
(Attributes List) A 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. (see below for nested schema)schema.composite_partition_key
Required:
type
(String) The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).Optional:
enforcement_in_record
(String) The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).name
(String) The name of the attribute used for a dimension key.tags
Optional:
key
(String)value
(String)Import is supported using the following syntax:
$ terraform import awscc_timestream_table.example <resource ID>