Package com.pulumi.aws.keyspaces
Class Table
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.keyspaces.Table
-
public class Table extends com.pulumi.resources.CustomResource
Provides a Keyspaces Table. More information about Keyspaces tables can be found in the [Keyspaces Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-tables.html). ## Example Usage <!--Start PulumiCodeChooser -->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()); } }
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<TableCapacitySpecification>
capacitySpecification()
com.pulumi.core.Output<java.util.Optional<TableClientSideTimestamps>>
clientSideTimestamps()
com.pulumi.core.Output<TableComment>
comment()
com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>
defaultTimeToLive()
com.pulumi.core.Output<TableEncryptionSpecification>
encryptionSpecification()
static Table
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TableState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
keyspaceName()
com.pulumi.core.Output<TablePointInTimeRecovery>
pointInTimeRecovery()
com.pulumi.core.Output<TableSchemaDefinition>
schemaDefinition()
com.pulumi.core.Output<java.lang.String>
tableName()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
tagsAll()
com.pulumi.core.Output<java.util.Optional<TableTtl>>
ttl()
-
-
-
Constructor Detail
-
Table
public Table(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
Table
public Table(java.lang.String name, TableArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
Table
public Table(java.lang.String name, TableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The ARN of the table.
-
capacitySpecification
public com.pulumi.core.Output<TableCapacitySpecification> capacitySpecification()
- Returns:
- Specifies the read/write throughput capacity mode for the table.
-
clientSideTimestamps
public com.pulumi.core.Output<java.util.Optional<TableClientSideTimestamps>> clientSideTimestamps()
- Returns:
- Enables client-side timestamps for the table. By default, the setting is disabled.
-
comment
public com.pulumi.core.Output<TableComment> comment()
- Returns:
- A description of the table.
-
defaultTimeToLive
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> defaultTimeToLive()
- Returns:
- The default Time to Live setting in seconds for the table. More information can be found in the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL-how-it-works.html#ttl-howitworks_default_ttl).
-
encryptionSpecification
public com.pulumi.core.Output<TableEncryptionSpecification> encryptionSpecification()
- Returns:
- Specifies how the encryption key for encryption at rest is managed for the table. More information can be found in the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html).
-
keyspaceName
public com.pulumi.core.Output<java.lang.String> keyspaceName()
- Returns:
- The name of the keyspace that the table is going to be created in.
-
pointInTimeRecovery
public com.pulumi.core.Output<TablePointInTimeRecovery> pointInTimeRecovery()
- Returns:
- Specifies if point-in-time recovery is enabled or disabled for the table. More information can be found in the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery.html).
-
schemaDefinition
public com.pulumi.core.Output<TableSchemaDefinition> schemaDefinition()
- Returns:
- Describes the schema of the table.
-
tableName
public com.pulumi.core.Output<java.lang.String> tableName()
- Returns:
- The name of the table. The following arguments are optional:
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
ttl
public com.pulumi.core.Output<java.util.Optional<TableTtl>> ttl()
- Returns:
- Enables Time to Live custom settings for the table. More information can be found in the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL.html).
-
get
public static Table get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TableState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-