TableArgs

data class TableArgs(val capacitySpecification: Output<TableCapacitySpecificationArgs>? = null, val comment: Output<TableCommentArgs>? = null, val defaultTimeToLive: Output<Int>? = null, val encryptionSpecification: Output<TableEncryptionSpecificationArgs>? = null, val keyspaceName: Output<String>? = null, val pointInTimeRecovery: Output<TablePointInTimeRecoveryArgs>? = null, val schemaDefinition: Output<TableSchemaDefinitionArgs>? = null, val tableName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val ttl: Output<TableTtlArgs>? = null) : ConvertibleToJava<TableArgs>

Provides a Keyspaces Table. More information about Keyspaces tables can be found in the Keyspaces Developer Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.keyspaces.Table;
import com.pulumi.aws.keyspaces.TableArgs;
import com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Table("example", TableArgs.builder()
.keyspaceName(aws_keyspaces_keyspace.example().name())
.tableName("my_table")
.schemaDefinition(TableSchemaDefinitionArgs.builder()
.columns(TableSchemaDefinitionColumnArgs.builder()
.name("Message")
.type("ASCII")
.build())
.partitionKeys(TableSchemaDefinitionPartitionKeyArgs.builder()
.name("Message")
.build())
.build())
.build());
}
}

Import

Use the keyspace_name and table_name separated by / to import a table. For example

$ pulumi import aws:keyspaces/table:Table example my_keyspace/my_table

Constructors

Link copied to clipboard
constructor(capacitySpecification: Output<TableCapacitySpecificationArgs>? = null, comment: Output<TableCommentArgs>? = null, defaultTimeToLive: Output<Int>? = null, encryptionSpecification: Output<TableEncryptionSpecificationArgs>? = null, keyspaceName: Output<String>? = null, pointInTimeRecovery: Output<TablePointInTimeRecoveryArgs>? = null, schemaDefinition: Output<TableSchemaDefinitionArgs>? = null, tableName: Output<String>? = null, tags: Output<Map<String, String>>? = null, ttl: Output<TableTtlArgs>? = null)

Properties

Link copied to clipboard

Specifies the read/write throughput capacity mode for the table.

Link copied to clipboard
val comment: Output<TableCommentArgs>? = null

A description of the table.

Link copied to clipboard
val defaultTimeToLive: Output<Int>? = null

The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.

Link copied to clipboard

Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.

Link copied to clipboard
val keyspaceName: Output<String>? = null

The name of the keyspace that the table is going to be created in.

Link copied to clipboard

Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.

Link copied to clipboard

Describes the schema of the table.

Link copied to clipboard
val tableName: Output<String>? = null

The name of the table. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val ttl: Output<TableTtlArgs>? = null

Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.

Functions

Link copied to clipboard
open override fun toJava(): TableArgs