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.CustomResourceProvides 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
## Import Using `pulumi import`, import a table using the `keyspaceName` and `tableName` separated by `/`. For example: ```sh $ pulumi import aws:keyspaces/table:Table example my_keyspace/my_table ```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 com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionColumnArgs; import com.pulumi.aws.keyspaces.inputs.TableSchemaDefinitionPartitionKeyArgs; import java.util.ArrayList; import java.util.Arrays; 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() .schemaDefinition(TableSchemaDefinitionArgs.builder() .columns(TableSchemaDefinitionColumnArgs.builder() .name("Message") .type("ASCII") .build()) .partitionKeys(TableSchemaDefinitionPartitionKeyArgs.builder() .name("Message") .build()) .build()) .keyspaceName(exampleAwsKeyspacesKeyspace.name()) .tableName("my_table") .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 Tableget(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<java.lang.String>region()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:
- ARN of the table.
-
capacitySpecification
public com.pulumi.core.Output<TableCapacitySpecification> capacitySpecification()
- Returns:
- Read/write throughput capacity mode for the table. See `capacitySpecification` below.
-
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. See `clientSideTimestamps` below.
-
comment
public com.pulumi.core.Output<TableComment> comment()
- Returns:
- Description of the table. See `comment` below.
-
defaultTimeToLive
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> defaultTimeToLive()
- Returns:
- 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:
- Encryption key management for encryption at rest for the table. More information can be found in the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html). See `encryptionSpecification` below.
-
keyspaceName
public com.pulumi.core.Output<java.lang.String> keyspaceName()
- Returns:
- Name of the keyspace that the table is going to be created in.
-
pointInTimeRecovery
public com.pulumi.core.Output<TablePointInTimeRecovery> pointInTimeRecovery()
- Returns:
- Enables or disables point-in-time recovery for the table. More information can be found in the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery.html). See `pointInTimeRecovery` below.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
schemaDefinition
public com.pulumi.core.Output<TableSchemaDefinition> schemaDefinition()
- Returns:
- Schema of the table. See `schemaDefinition` below.
-
tableName
public com.pulumi.core.Output<java.lang.String> tableName()
- Returns:
- 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:
- Map of tags to assign to the resource. If configured with a provider `defaultTags` 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:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` 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). See `ttl` below.
-
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.
-
-