aws.keyspaces.Table
Explore with Pulumi AI
Provides a Keyspaces Table.
More information about Keyspaces tables can be found in the Keyspaces Developer Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.keyspaces.Table("example", {
keyspaceName: exampleAwsKeyspacesKeyspace.name,
tableName: "my_table",
schemaDefinition: {
columns: [{
name: "Message",
type: "ASCII",
}],
partitionKeys: [{
name: "Message",
}],
},
});
import pulumi
import pulumi_aws as aws
example = aws.keyspaces.Table("example",
keyspace_name=example_aws_keyspaces_keyspace["name"],
table_name="my_table",
schema_definition={
"columns": [{
"name": "Message",
"type": "ASCII",
}],
"partition_keys": [{
"name": "Message",
}],
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/keyspaces"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := keyspaces.NewTable(ctx, "example", &keyspaces.TableArgs{
KeyspaceName: pulumi.Any(exampleAwsKeyspacesKeyspace.Name),
TableName: pulumi.String("my_table"),
SchemaDefinition: &keyspaces.TableSchemaDefinitionArgs{
Columns: keyspaces.TableSchemaDefinitionColumnArray{
&keyspaces.TableSchemaDefinitionColumnArgs{
Name: pulumi.String("Message"),
Type: pulumi.String("ASCII"),
},
},
PartitionKeys: keyspaces.TableSchemaDefinitionPartitionKeyArray{
&keyspaces.TableSchemaDefinitionPartitionKeyArgs{
Name: pulumi.String("Message"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Keyspaces.Table("example", new()
{
KeyspaceName = exampleAwsKeyspacesKeyspace.Name,
TableName = "my_table",
SchemaDefinition = new Aws.Keyspaces.Inputs.TableSchemaDefinitionArgs
{
Columns = new[]
{
new Aws.Keyspaces.Inputs.TableSchemaDefinitionColumnArgs
{
Name = "Message",
Type = "ASCII",
},
},
PartitionKeys = new[]
{
new Aws.Keyspaces.Inputs.TableSchemaDefinitionPartitionKeyArgs
{
Name = "Message",
},
},
},
});
});
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(exampleAwsKeyspacesKeyspace.name())
.tableName("my_table")
.schemaDefinition(TableSchemaDefinitionArgs.builder()
.columns(TableSchemaDefinitionColumnArgs.builder()
.name("Message")
.type("ASCII")
.build())
.partitionKeys(TableSchemaDefinitionPartitionKeyArgs.builder()
.name("Message")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:keyspaces:Table
properties:
keyspaceName: ${exampleAwsKeyspacesKeyspace.name}
tableName: my_table
schemaDefinition:
columns:
- name: Message
type: ASCII
partitionKeys:
- name: Message
Create Table Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Table(name: string, args: TableArgs, opts?: CustomResourceOptions);
@overload
def Table(resource_name: str,
args: TableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Table(resource_name: str,
opts: Optional[ResourceOptions] = None,
keyspace_name: Optional[str] = None,
schema_definition: Optional[TableSchemaDefinitionArgs] = None,
table_name: Optional[str] = None,
capacity_specification: Optional[TableCapacitySpecificationArgs] = None,
client_side_timestamps: Optional[TableClientSideTimestampsArgs] = None,
comment: Optional[TableCommentArgs] = None,
default_time_to_live: Optional[int] = None,
encryption_specification: Optional[TableEncryptionSpecificationArgs] = None,
point_in_time_recovery: Optional[TablePointInTimeRecoveryArgs] = None,
tags: Optional[Mapping[str, str]] = None,
ttl: Optional[TableTtlArgs] = None)
func NewTable(ctx *Context, name string, args TableArgs, opts ...ResourceOption) (*Table, error)
public Table(string name, TableArgs args, CustomResourceOptions? opts = null)
type: aws:keyspaces:Table
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsTableResource = new Aws.Keyspaces.Table("awsTableResource", new()
{
KeyspaceName = "string",
SchemaDefinition = new Aws.Keyspaces.Inputs.TableSchemaDefinitionArgs
{
Columns = new[]
{
new Aws.Keyspaces.Inputs.TableSchemaDefinitionColumnArgs
{
Name = "string",
Type = "string",
},
},
PartitionKeys = new[]
{
new Aws.Keyspaces.Inputs.TableSchemaDefinitionPartitionKeyArgs
{
Name = "string",
},
},
ClusteringKeys = new[]
{
new Aws.Keyspaces.Inputs.TableSchemaDefinitionClusteringKeyArgs
{
Name = "string",
OrderBy = "string",
},
},
StaticColumns = new[]
{
new Aws.Keyspaces.Inputs.TableSchemaDefinitionStaticColumnArgs
{
Name = "string",
},
},
},
TableName = "string",
CapacitySpecification = new Aws.Keyspaces.Inputs.TableCapacitySpecificationArgs
{
ReadCapacityUnits = 0,
ThroughputMode = "string",
WriteCapacityUnits = 0,
},
ClientSideTimestamps = new Aws.Keyspaces.Inputs.TableClientSideTimestampsArgs
{
Status = "string",
},
Comment = new Aws.Keyspaces.Inputs.TableCommentArgs
{
Message = "string",
},
DefaultTimeToLive = 0,
EncryptionSpecification = new Aws.Keyspaces.Inputs.TableEncryptionSpecificationArgs
{
KmsKeyIdentifier = "string",
Type = "string",
},
PointInTimeRecovery = new Aws.Keyspaces.Inputs.TablePointInTimeRecoveryArgs
{
Status = "string",
},
Tags =
{
{ "string", "string" },
},
Ttl = new Aws.Keyspaces.Inputs.TableTtlArgs
{
Status = "string",
},
});
example, err := keyspaces.NewTable(ctx, "awsTableResource", &keyspaces.TableArgs{
KeyspaceName: pulumi.String("string"),
SchemaDefinition: &keyspaces.TableSchemaDefinitionArgs{
Columns: keyspaces.TableSchemaDefinitionColumnArray{
&keyspaces.TableSchemaDefinitionColumnArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
PartitionKeys: keyspaces.TableSchemaDefinitionPartitionKeyArray{
&keyspaces.TableSchemaDefinitionPartitionKeyArgs{
Name: pulumi.String("string"),
},
},
ClusteringKeys: keyspaces.TableSchemaDefinitionClusteringKeyArray{
&keyspaces.TableSchemaDefinitionClusteringKeyArgs{
Name: pulumi.String("string"),
OrderBy: pulumi.String("string"),
},
},
StaticColumns: keyspaces.TableSchemaDefinitionStaticColumnArray{
&keyspaces.TableSchemaDefinitionStaticColumnArgs{
Name: pulumi.String("string"),
},
},
},
TableName: pulumi.String("string"),
CapacitySpecification: &keyspaces.TableCapacitySpecificationArgs{
ReadCapacityUnits: pulumi.Int(0),
ThroughputMode: pulumi.String("string"),
WriteCapacityUnits: pulumi.Int(0),
},
ClientSideTimestamps: &keyspaces.TableClientSideTimestampsArgs{
Status: pulumi.String("string"),
},
Comment: &keyspaces.TableCommentArgs{
Message: pulumi.String("string"),
},
DefaultTimeToLive: pulumi.Int(0),
EncryptionSpecification: &keyspaces.TableEncryptionSpecificationArgs{
KmsKeyIdentifier: pulumi.String("string"),
Type: pulumi.String("string"),
},
PointInTimeRecovery: &keyspaces.TablePointInTimeRecoveryArgs{
Status: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Ttl: &keyspaces.TableTtlArgs{
Status: pulumi.String("string"),
},
})
var awsTableResource = new Table("awsTableResource", TableArgs.builder()
.keyspaceName("string")
.schemaDefinition(TableSchemaDefinitionArgs.builder()
.columns(TableSchemaDefinitionColumnArgs.builder()
.name("string")
.type("string")
.build())
.partitionKeys(TableSchemaDefinitionPartitionKeyArgs.builder()
.name("string")
.build())
.clusteringKeys(TableSchemaDefinitionClusteringKeyArgs.builder()
.name("string")
.orderBy("string")
.build())
.staticColumns(TableSchemaDefinitionStaticColumnArgs.builder()
.name("string")
.build())
.build())
.tableName("string")
.capacitySpecification(TableCapacitySpecificationArgs.builder()
.readCapacityUnits(0)
.throughputMode("string")
.writeCapacityUnits(0)
.build())
.clientSideTimestamps(TableClientSideTimestampsArgs.builder()
.status("string")
.build())
.comment(TableCommentArgs.builder()
.message("string")
.build())
.defaultTimeToLive(0)
.encryptionSpecification(TableEncryptionSpecificationArgs.builder()
.kmsKeyIdentifier("string")
.type("string")
.build())
.pointInTimeRecovery(TablePointInTimeRecoveryArgs.builder()
.status("string")
.build())
.tags(Map.of("string", "string"))
.ttl(TableTtlArgs.builder()
.status("string")
.build())
.build());
aws_table_resource = aws.keyspaces.Table("awsTableResource",
keyspace_name="string",
schema_definition={
"columns": [{
"name": "string",
"type": "string",
}],
"partition_keys": [{
"name": "string",
}],
"clustering_keys": [{
"name": "string",
"order_by": "string",
}],
"static_columns": [{
"name": "string",
}],
},
table_name="string",
capacity_specification={
"read_capacity_units": 0,
"throughput_mode": "string",
"write_capacity_units": 0,
},
client_side_timestamps={
"status": "string",
},
comment={
"message": "string",
},
default_time_to_live=0,
encryption_specification={
"kms_key_identifier": "string",
"type": "string",
},
point_in_time_recovery={
"status": "string",
},
tags={
"string": "string",
},
ttl={
"status": "string",
})
const awsTableResource = new aws.keyspaces.Table("awsTableResource", {
keyspaceName: "string",
schemaDefinition: {
columns: [{
name: "string",
type: "string",
}],
partitionKeys: [{
name: "string",
}],
clusteringKeys: [{
name: "string",
orderBy: "string",
}],
staticColumns: [{
name: "string",
}],
},
tableName: "string",
capacitySpecification: {
readCapacityUnits: 0,
throughputMode: "string",
writeCapacityUnits: 0,
},
clientSideTimestamps: {
status: "string",
},
comment: {
message: "string",
},
defaultTimeToLive: 0,
encryptionSpecification: {
kmsKeyIdentifier: "string",
type: "string",
},
pointInTimeRecovery: {
status: "string",
},
tags: {
string: "string",
},
ttl: {
status: "string",
},
});
type: aws:keyspaces:Table
properties:
capacitySpecification:
readCapacityUnits: 0
throughputMode: string
writeCapacityUnits: 0
clientSideTimestamps:
status: string
comment:
message: string
defaultTimeToLive: 0
encryptionSpecification:
kmsKeyIdentifier: string
type: string
keyspaceName: string
pointInTimeRecovery:
status: string
schemaDefinition:
clusteringKeys:
- name: string
orderBy: string
columns:
- name: string
type: string
partitionKeys:
- name: string
staticColumns:
- name: string
tableName: string
tags:
string: string
ttl:
status: string
Table Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Table resource accepts the following input properties:
- Keyspace
Name string - The name of the keyspace that the table is going to be created in.
- Schema
Definition TableSchema Definition - Describes the schema of the table.
- Table
Name string The name of the table.
The following arguments are optional:
- Capacity
Specification TableCapacity Specification - Specifies the read/write throughput capacity mode for the table.
- Client
Side TableTimestamps Client Side Timestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- Comment
Table
Comment - A description of the table.
- Default
Time intTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- Encryption
Specification TableEncryption Specification - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- Point
In TableTime Recovery Point In Time Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- Dictionary<string, string>
- 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. - Ttl
Table
Ttl - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- Keyspace
Name string - The name of the keyspace that the table is going to be created in.
- Schema
Definition TableSchema Definition Args - Describes the schema of the table.
- Table
Name string The name of the table.
The following arguments are optional:
- Capacity
Specification TableCapacity Specification Args - Specifies the read/write throughput capacity mode for the table.
- Client
Side TableTimestamps Client Side Timestamps Args - Enables client-side timestamps for the table. By default, the setting is disabled.
- Comment
Table
Comment Args - A description of the table.
- Default
Time intTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- Encryption
Specification TableEncryption Specification Args - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- Point
In TableTime Recovery Point In Time Recovery Args - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- map[string]string
- 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. - Ttl
Table
Ttl Args - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- keyspace
Name String - The name of the keyspace that the table is going to be created in.
- schema
Definition TableSchema Definition - Describes the schema of the table.
- table
Name String The name of the table.
The following arguments are optional:
- capacity
Specification TableCapacity Specification - Specifies the read/write throughput capacity mode for the table.
- client
Side TableTimestamps Client Side Timestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment
Table
Comment - A description of the table.
- default
Time IntegerTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption
Specification TableEncryption Specification - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- point
In TableTime Recovery Point In Time Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- Map<String,String>
- 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. - ttl
Table
Ttl - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- keyspace
Name string - The name of the keyspace that the table is going to be created in.
- schema
Definition TableSchema Definition - Describes the schema of the table.
- table
Name string The name of the table.
The following arguments are optional:
- capacity
Specification TableCapacity Specification - Specifies the read/write throughput capacity mode for the table.
- client
Side TableTimestamps Client Side Timestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment
Table
Comment - A description of the table.
- default
Time numberTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption
Specification TableEncryption Specification - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- point
In TableTime Recovery Point In Time Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- {[key: string]: string}
- 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. - ttl
Table
Ttl - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- keyspace_
name str - The name of the keyspace that the table is going to be created in.
- schema_
definition TableSchema Definition Args - Describes the schema of the table.
- table_
name str The name of the table.
The following arguments are optional:
- capacity_
specification TableCapacity Specification Args - Specifies the read/write throughput capacity mode for the table.
- client_
side_ Tabletimestamps Client Side Timestamps Args - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment
Table
Comment Args - A description of the table.
- default_
time_ intto_ live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption_
specification TableEncryption Specification Args - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- point_
in_ Tabletime_ recovery Point In Time Recovery Args - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- Mapping[str, str]
- 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. - ttl
Table
Ttl Args - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- keyspace
Name String - The name of the keyspace that the table is going to be created in.
- schema
Definition Property Map - Describes the schema of the table.
- table
Name String The name of the table.
The following arguments are optional:
- capacity
Specification Property Map - Specifies the read/write throughput capacity mode for the table.
- client
Side Property MapTimestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment Property Map
- A description of the table.
- default
Time NumberTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption
Specification Property Map - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- point
In Property MapTime Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- Map<String>
- 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. - ttl Property Map
- Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
Outputs
All input properties are implicitly available as output properties. Additionally, the Table resource produces the following output properties:
Look up Existing Table Resource
Get an existing Table resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TableState, opts?: CustomResourceOptions): Table
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
capacity_specification: Optional[TableCapacitySpecificationArgs] = None,
client_side_timestamps: Optional[TableClientSideTimestampsArgs] = None,
comment: Optional[TableCommentArgs] = None,
default_time_to_live: Optional[int] = None,
encryption_specification: Optional[TableEncryptionSpecificationArgs] = None,
keyspace_name: Optional[str] = None,
point_in_time_recovery: Optional[TablePointInTimeRecoveryArgs] = None,
schema_definition: Optional[TableSchemaDefinitionArgs] = None,
table_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
ttl: Optional[TableTtlArgs] = None) -> Table
func GetTable(ctx *Context, name string, id IDInput, state *TableState, opts ...ResourceOption) (*Table, error)
public static Table Get(string name, Input<string> id, TableState? state, CustomResourceOptions? opts = null)
public static Table get(String name, Output<String> id, TableState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The ARN of the table.
- Capacity
Specification TableCapacity Specification - Specifies the read/write throughput capacity mode for the table.
- Client
Side TableTimestamps Client Side Timestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- Comment
Table
Comment - A description of the table.
- Default
Time intTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- Encryption
Specification TableEncryption Specification - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- Keyspace
Name string - The name of the keyspace that the table is going to be created in.
- Point
In TableTime Recovery Point In Time Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- Schema
Definition TableSchema Definition - Describes the schema of the table.
- Table
Name string The name of the table.
The following arguments are optional:
- Dictionary<string, string>
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Ttl
Table
Ttl - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- Arn string
- The ARN of the table.
- Capacity
Specification TableCapacity Specification Args - Specifies the read/write throughput capacity mode for the table.
- Client
Side TableTimestamps Client Side Timestamps Args - Enables client-side timestamps for the table. By default, the setting is disabled.
- Comment
Table
Comment Args - A description of the table.
- Default
Time intTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- Encryption
Specification TableEncryption Specification Args - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- Keyspace
Name string - The name of the keyspace that the table is going to be created in.
- Point
In TableTime Recovery Point In Time Recovery Args - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- Schema
Definition TableSchema Definition Args - Describes the schema of the table.
- Table
Name string The name of the table.
The following arguments are optional:
- map[string]string
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Ttl
Table
Ttl Args - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- arn String
- The ARN of the table.
- capacity
Specification TableCapacity Specification - Specifies the read/write throughput capacity mode for the table.
- client
Side TableTimestamps Client Side Timestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment
Table
Comment - A description of the table.
- default
Time IntegerTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption
Specification TableEncryption Specification - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- keyspace
Name String - The name of the keyspace that the table is going to be created in.
- point
In TableTime Recovery Point In Time Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- schema
Definition TableSchema Definition - Describes the schema of the table.
- table
Name String The name of the table.
The following arguments are optional:
- Map<String,String>
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - ttl
Table
Ttl - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- arn string
- The ARN of the table.
- capacity
Specification TableCapacity Specification - Specifies the read/write throughput capacity mode for the table.
- client
Side TableTimestamps Client Side Timestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment
Table
Comment - A description of the table.
- default
Time numberTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption
Specification TableEncryption Specification - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- keyspace
Name string - The name of the keyspace that the table is going to be created in.
- point
In TableTime Recovery Point In Time Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- schema
Definition TableSchema Definition - Describes the schema of the table.
- table
Name string The name of the table.
The following arguments are optional:
- {[key: string]: string}
- 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - ttl
Table
Ttl - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- arn str
- The ARN of the table.
- capacity_
specification TableCapacity Specification Args - Specifies the read/write throughput capacity mode for the table.
- client_
side_ Tabletimestamps Client Side Timestamps Args - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment
Table
Comment Args - A description of the table.
- default_
time_ intto_ live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption_
specification TableEncryption Specification Args - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- keyspace_
name str - The name of the keyspace that the table is going to be created in.
- point_
in_ Tabletime_ recovery Point In Time Recovery Args - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- schema_
definition TableSchema Definition Args - Describes the schema of the table.
- table_
name str The name of the table.
The following arguments are optional:
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - ttl
Table
Ttl Args - Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
- arn String
- The ARN of the table.
- capacity
Specification Property Map - Specifies the read/write throughput capacity mode for the table.
- client
Side Property MapTimestamps - Enables client-side timestamps for the table. By default, the setting is disabled.
- comment Property Map
- A description of the table.
- default
Time NumberTo Live - The default Time to Live setting in seconds for the table. More information can be found in the Developer Guide.
- encryption
Specification Property Map - Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the Developer Guide.
- keyspace
Name String - The name of the keyspace that the table is going to be created in.
- point
In Property MapTime Recovery - Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the Developer Guide.
- schema
Definition Property Map - Describes the schema of the table.
- table
Name String The name of the table.
The following arguments are optional:
- Map<String>
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - ttl Property Map
- Enables Time to Live custom settings for the table. More information can be found in the Developer Guide.
Supporting Types
TableCapacitySpecification, TableCapacitySpecificationArgs
- Read
Capacity intUnits - The throughput capacity specified for read operations defined in read capacity units (RCUs).
- Throughput
Mode string - The read/write throughput capacity mode for a table. Valid values:
PAY_PER_REQUEST
,PROVISIONED
. The default value isPAY_PER_REQUEST
. - Write
Capacity intUnits - The throughput capacity specified for write operations defined in write capacity units (WCUs).
- Read
Capacity intUnits - The throughput capacity specified for read operations defined in read capacity units (RCUs).
- Throughput
Mode string - The read/write throughput capacity mode for a table. Valid values:
PAY_PER_REQUEST
,PROVISIONED
. The default value isPAY_PER_REQUEST
. - Write
Capacity intUnits - The throughput capacity specified for write operations defined in write capacity units (WCUs).
- read
Capacity IntegerUnits - The throughput capacity specified for read operations defined in read capacity units (RCUs).
- throughput
Mode String - The read/write throughput capacity mode for a table. Valid values:
PAY_PER_REQUEST
,PROVISIONED
. The default value isPAY_PER_REQUEST
. - write
Capacity IntegerUnits - The throughput capacity specified for write operations defined in write capacity units (WCUs).
- read
Capacity numberUnits - The throughput capacity specified for read operations defined in read capacity units (RCUs).
- throughput
Mode string - The read/write throughput capacity mode for a table. Valid values:
PAY_PER_REQUEST
,PROVISIONED
. The default value isPAY_PER_REQUEST
. - write
Capacity numberUnits - The throughput capacity specified for write operations defined in write capacity units (WCUs).
- read_
capacity_ intunits - The throughput capacity specified for read operations defined in read capacity units (RCUs).
- throughput_
mode str - The read/write throughput capacity mode for a table. Valid values:
PAY_PER_REQUEST
,PROVISIONED
. The default value isPAY_PER_REQUEST
. - write_
capacity_ intunits - The throughput capacity specified for write operations defined in write capacity units (WCUs).
- read
Capacity NumberUnits - The throughput capacity specified for read operations defined in read capacity units (RCUs).
- throughput
Mode String - The read/write throughput capacity mode for a table. Valid values:
PAY_PER_REQUEST
,PROVISIONED
. The default value isPAY_PER_REQUEST
. - write
Capacity NumberUnits - The throughput capacity specified for write operations defined in write capacity units (WCUs).
TableClientSideTimestamps, TableClientSideTimestampsArgs
- Status string
- Shows how to enable client-side timestamps settings for the specified table. Valid values:
ENABLED
.
- Status string
- Shows how to enable client-side timestamps settings for the specified table. Valid values:
ENABLED
.
- status String
- Shows how to enable client-side timestamps settings for the specified table. Valid values:
ENABLED
.
- status string
- Shows how to enable client-side timestamps settings for the specified table. Valid values:
ENABLED
.
- status str
- Shows how to enable client-side timestamps settings for the specified table. Valid values:
ENABLED
.
- status String
- Shows how to enable client-side timestamps settings for the specified table. Valid values:
ENABLED
.
TableComment, TableCommentArgs
- Message string
- A description of the table.
- Message string
- A description of the table.
- message String
- A description of the table.
- message string
- A description of the table.
- message str
- A description of the table.
- message String
- A description of the table.
TableEncryptionSpecification, TableEncryptionSpecificationArgs
- Kms
Key stringIdentifier - The Amazon Resource Name (ARN) of the customer managed KMS key.
- Type string
- The encryption option specified for the table. Valid values:
AWS_OWNED_KMS_KEY
,CUSTOMER_MANAGED_KMS_KEY
. The default value isAWS_OWNED_KMS_KEY
.
- Kms
Key stringIdentifier - The Amazon Resource Name (ARN) of the customer managed KMS key.
- Type string
- The encryption option specified for the table. Valid values:
AWS_OWNED_KMS_KEY
,CUSTOMER_MANAGED_KMS_KEY
. The default value isAWS_OWNED_KMS_KEY
.
- kms
Key StringIdentifier - The Amazon Resource Name (ARN) of the customer managed KMS key.
- type String
- The encryption option specified for the table. Valid values:
AWS_OWNED_KMS_KEY
,CUSTOMER_MANAGED_KMS_KEY
. The default value isAWS_OWNED_KMS_KEY
.
- kms
Key stringIdentifier - The Amazon Resource Name (ARN) of the customer managed KMS key.
- type string
- The encryption option specified for the table. Valid values:
AWS_OWNED_KMS_KEY
,CUSTOMER_MANAGED_KMS_KEY
. The default value isAWS_OWNED_KMS_KEY
.
- kms_
key_ stridentifier - The Amazon Resource Name (ARN) of the customer managed KMS key.
- type str
- The encryption option specified for the table. Valid values:
AWS_OWNED_KMS_KEY
,CUSTOMER_MANAGED_KMS_KEY
. The default value isAWS_OWNED_KMS_KEY
.
- kms
Key StringIdentifier - The Amazon Resource Name (ARN) of the customer managed KMS key.
- type String
- The encryption option specified for the table. Valid values:
AWS_OWNED_KMS_KEY
,CUSTOMER_MANAGED_KMS_KEY
. The default value isAWS_OWNED_KMS_KEY
.
TablePointInTimeRecovery, TablePointInTimeRecoveryArgs
- Status string
- Valid values:
ENABLED
,DISABLED
. The default value isDISABLED
.
- Status string
- Valid values:
ENABLED
,DISABLED
. The default value isDISABLED
.
- status String
- Valid values:
ENABLED
,DISABLED
. The default value isDISABLED
.
- status string
- Valid values:
ENABLED
,DISABLED
. The default value isDISABLED
.
- status str
- Valid values:
ENABLED
,DISABLED
. The default value isDISABLED
.
- status String
- Valid values:
ENABLED
,DISABLED
. The default value isDISABLED
.
TableSchemaDefinition, TableSchemaDefinitionArgs
- Columns
List<Table
Schema Definition Column> - The regular columns of the table.
- Partition
Keys List<TableSchema Definition Partition Key> - The columns that are part of the partition key of the table .
- Clustering
Keys List<TableSchema Definition Clustering Key> - The columns that are part of the clustering key of the table.
- Static
Columns List<TableSchema Definition Static Column> - The columns that have been defined as
STATIC
. Static columns store values that are shared by all rows in the same partition.
- Columns
[]Table
Schema Definition Column - The regular columns of the table.
- Partition
Keys []TableSchema Definition Partition Key - The columns that are part of the partition key of the table .
- Clustering
Keys []TableSchema Definition Clustering Key - The columns that are part of the clustering key of the table.
- Static
Columns []TableSchema Definition Static Column - The columns that have been defined as
STATIC
. Static columns store values that are shared by all rows in the same partition.
- columns
List<Table
Schema Definition Column> - The regular columns of the table.
- partition
Keys List<TableSchema Definition Partition Key> - The columns that are part of the partition key of the table .
- clustering
Keys List<TableSchema Definition Clustering Key> - The columns that are part of the clustering key of the table.
- static
Columns List<TableSchema Definition Static Column> - The columns that have been defined as
STATIC
. Static columns store values that are shared by all rows in the same partition.
- columns
Table
Schema Definition Column[] - The regular columns of the table.
- partition
Keys TableSchema Definition Partition Key[] - The columns that are part of the partition key of the table .
- clustering
Keys TableSchema Definition Clustering Key[] - The columns that are part of the clustering key of the table.
- static
Columns TableSchema Definition Static Column[] - The columns that have been defined as
STATIC
. Static columns store values that are shared by all rows in the same partition.
- columns
Sequence[Table
Schema Definition Column] - The regular columns of the table.
- partition_
keys Sequence[TableSchema Definition Partition Key] - The columns that are part of the partition key of the table .
- clustering_
keys Sequence[TableSchema Definition Clustering Key] - The columns that are part of the clustering key of the table.
- static_
columns Sequence[TableSchema Definition Static Column] - The columns that have been defined as
STATIC
. Static columns store values that are shared by all rows in the same partition.
- columns List<Property Map>
- The regular columns of the table.
- partition
Keys List<Property Map> - The columns that are part of the partition key of the table .
- clustering
Keys List<Property Map> - The columns that are part of the clustering key of the table.
- static
Columns List<Property Map> - The columns that have been defined as
STATIC
. Static columns store values that are shared by all rows in the same partition.
TableSchemaDefinitionClusteringKey, TableSchemaDefinitionClusteringKeyArgs
TableSchemaDefinitionColumn, TableSchemaDefinitionColumnArgs
- Name string
- The name of the column.
- Type string
- The data type of the column. See the Developer Guide for a list of available data types.
- Name string
- The name of the column.
- Type string
- The data type of the column. See the Developer Guide for a list of available data types.
- name String
- The name of the column.
- type String
- The data type of the column. See the Developer Guide for a list of available data types.
- name string
- The name of the column.
- type string
- The data type of the column. See the Developer Guide for a list of available data types.
- name str
- The name of the column.
- type str
- The data type of the column. See the Developer Guide for a list of available data types.
- name String
- The name of the column.
- type String
- The data type of the column. See the Developer Guide for a list of available data types.
TableSchemaDefinitionPartitionKey, TableSchemaDefinitionPartitionKeyArgs
- Name string
- The name of the partition key column.
- Name string
- The name of the partition key column.
- name String
- The name of the partition key column.
- name string
- The name of the partition key column.
- name str
- The name of the partition key column.
- name String
- The name of the partition key column.
TableSchemaDefinitionStaticColumn, TableSchemaDefinitionStaticColumnArgs
- Name string
- The name of the static column.
- Name string
- The name of the static column.
- name String
- The name of the static column.
- name string
- The name of the static column.
- name str
- The name of the static column.
- name String
- The name of the static column.
TableTtl, TableTtlArgs
- Status string
- Valid values:
ENABLED
.
- Status string
- Valid values:
ENABLED
.
- status String
- Valid values:
ENABLED
.
- status string
- Valid values:
ENABLED
.
- status str
- Valid values:
ENABLED
.
- status String
- Valid values:
ENABLED
.
Import
Using pulumi import
, import a table using the keyspace_name
and table_name
separated by /
. For example:
$ pulumi import aws:keyspaces/table:Table example my_keyspace/my_table
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.