Resource schema for AWS::Cassandra::Table
resource "awscc_cassandra_keyspace" "awscc_cassandra_keyspace_example" {
keyspace_name = "awscc_cassandra_keyspace_example"
}
resource "awscc_cassandra_table" "awscc_cassandra_table_example" {
keyspace_name = awscc_cassandra_keyspace.awscc_cassandra_keyspace_example.id
partition_key_columns = [{
column_name = "Message"
column_type = "ascii"
}]
}
resource "awscc_cassandra_keyspace" "awscc_cassandra_keyspace_example" {
keyspace_name = "awscc_cassandra_keyspace_example"
}
resource "awscc_cassandra_table" "awscc_cassandra_table_example" {
keyspace_name = awscc_cassandra_keyspace.awscc_cassandra_keyspace_example.id
table_name = "awscc_cassandra_table_example"
partition_key_columns = [{
column_name = "Message"
column_type = "ascii"
}]
regular_columns = [{
column_name = "name"
column_type = "TEXT"
}, {
column_name = "region"
column_type = "TEXT"
}, {
column_name = "role"
column_type = "TEXT"
}, {
column_name = "vacation_hrs"
column_type = "FLOAT"
}
]
}
resource "awscc_cassandra_keyspace" "awscc_cassandra_keyspace_example" {
keyspace_name = "awscc_cassandra_keyspace_example"
}
resource "awscc_cassandra_table" "awscc_cassandra_table_example" {
keyspace_name = awscc_cassandra_keyspace.awscc_cassandra_keyspace_example.id
table_name = "awscc_cassandra_table_example"
partition_key_columns = [{
column_name = "Message"
column_type = "ascii"
}]
regular_columns = [{
column_name = "name"
column_type = "TEXT"
}, {
column_name = "region"
column_type = "TEXT"
}, {
column_name = "role"
column_type = "TEXT"
}, {
column_name = "vacation_hrs"
column_type = "FLOAT"
}
]
tags = [{
"key" = "Name"
"value" = "awscc"
},
{
"key" = "Components"
"value" = "Cassandra"
}]
}
keyspace_name
(String) Name for Cassandra keyspacepartition_key_columns
(Attributes List) Partition key columns of the table (see below for nested schema)auto_scaling_specifications
(Attributes) Represents the read and write settings used for AutoScaling. (see below for nested schema)billing_mode
(Attributes) (see below for nested schema)client_side_timestamps_enabled
(Boolean) Indicates whether client side timestamps are enabled (true) or disabled (false) on the table. False by default, once it is enabled it cannot be disabled again.clustering_key_columns
(Attributes List) Clustering key columns of the table (see below for nested schema)default_time_to_live
(Number) Default TTL (Time To Live) in seconds, where zero is disabled. If the value is greater than zero, TTL is enabled for the entire table and an expiration timestamp is added to each column.encryption_specification
(Attributes) Represents the settings used to enable server-side encryption (see below for nested schema)point_in_time_recovery_enabled
(Boolean) Indicates whether point in time recovery is enabled (true) or disabled (false) on the tableregular_columns
(Attributes Set) Non-key columns of the table (see below for nested schema)replica_specifications
(Attributes List) (see below for nested schema)table_name
(String) Name for Cassandra tabletags
(Attributes List) An array of key-value pairs to apply to this resource (see below for nested schema)id
(String) Uniquely identifies the resource.partition_key_columns
Required:
column_name
(String)column_type
(String)auto_scaling_specifications
Optional:
read_capacity_auto_scaling
(Attributes) Represents configuration for auto scaling. (see below for nested schema)write_capacity_auto_scaling
(Attributes) Represents configuration for auto scaling. (see below for nested schema)auto_scaling_specifications.read_capacity_auto_scaling
Optional:
auto_scaling_disabled
(Boolean)maximum_units
(Number)minimum_units
(Number)scaling_policy
(Attributes) Represents scaling policy. (see below for nested schema)auto_scaling_specifications.read_capacity_auto_scaling.scaling_policy
Optional:
target_tracking_scaling_policy_configuration
(Attributes) Represents configuration for target tracking scaling policy. (see below for nested schema)auto_scaling_specifications.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration
Required:
target_value
(Number)Optional:
disable_scale_in
(Boolean)scale_in_cooldown
(Number)scale_out_cooldown
(Number)auto_scaling_specifications.write_capacity_auto_scaling
Optional:
auto_scaling_disabled
(Boolean)maximum_units
(Number)minimum_units
(Number)scaling_policy
(Attributes) Represents scaling policy. (see below for nested schema)auto_scaling_specifications.write_capacity_auto_scaling.scaling_policy
Optional:
target_tracking_scaling_policy_configuration
(Attributes) Represents configuration for target tracking scaling policy. (see below for nested schema)auto_scaling_specifications.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration
Required:
target_value
(Number)Optional:
disable_scale_in
(Boolean)scale_in_cooldown
(Number)scale_out_cooldown
(Number)billing_mode
Optional:
mode
(String) Capacity mode for the specified tableprovisioned_throughput
(Attributes) Throughput for the specified table, which consists of values for ReadCapacityUnits and WriteCapacityUnits (see below for nested schema)billing_mode.provisioned_throughput
Required:
read_capacity_units
(Number)write_capacity_units
(Number)clustering_key_columns
Required:
column
(Attributes) (see below for nested schema)Optional:
order_by
(String)clustering_key_columns.column
Required:
column_name
(String)column_type
(String)encryption_specification
Optional:
encryption_type
(String) Server-side encryption typekms_key_identifier
(String) The AWS KMS customer master key (CMK) that should be used for the AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN.regular_columns
Required:
column_name
(String)column_type
(String)replica_specifications
Required:
region
(String)Optional:
read_capacity_auto_scaling
(Attributes) Represents configuration for auto scaling. (see below for nested schema)read_capacity_units
(Number)replica_specifications.read_capacity_auto_scaling
Optional:
auto_scaling_disabled
(Boolean)maximum_units
(Number)minimum_units
(Number)scaling_policy
(Attributes) Represents scaling policy. (see below for nested schema)replica_specifications.read_capacity_auto_scaling.scaling_policy
Optional:
target_tracking_scaling_policy_configuration
(Attributes) Represents configuration for target tracking scaling policy. (see below for nested schema)replica_specifications.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration
Required:
target_value
(Number)Optional:
disable_scale_in
(Boolean)scale_in_cooldown
(Number)scale_out_cooldown
(Number)tags
Required:
key
(String)value
(String)Import is supported using the following syntax:
$ terraform import awscc_cassandra_table.example <resource ID>