Table

class Table : KotlinCustomResource

Provides a Timestream table resource.

Example Usage

Basic usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.timestreamwrite.Table;
import com.pulumi.aws.timestreamwrite.TableArgs;
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()
.databaseName(aws_timestreamwrite_database.example().database_name())
.tableName("example")
.build());
}
}

Full usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.timestreamwrite.Table;
import com.pulumi.aws.timestreamwrite.TableArgs;
import com.pulumi.aws.timestreamwrite.inputs.TableRetentionPropertiesArgs;
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()
.databaseName(aws_timestreamwrite_database.example().database_name())
.tableName("example")
.retentionProperties(TableRetentionPropertiesArgs.builder()
.magneticStoreRetentionPeriodInDays(30)
.memoryStoreRetentionPeriodInHours(8)
.build())
.tags(Map.of("Name", "example-timestream-table"))
.build());
}
}

Import

Timestream tables can be imported using the table_name and database_name separate by a colon (:), e.g.,

$ pulumi import aws:timestreamwrite/table:Table example ExampleTable:ExampleDatabase

Properties

Link copied to clipboard
val arn: Output<String>

The ARN that uniquely identifies this table.

Link copied to clipboard
val databaseName: Output<String>

The name of the Timestream database.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Contains properties to set on the table when enabling magnetic store writes. See Magnetic Store Write Properties below for more details.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The retention duration for the memory store and magnetic store. See Retention Properties below for more details. If not provided, magnetic_store_retention_period_in_days default to 73000 and memory_store_retention_period_in_hours defaults to 6.

Link copied to clipboard
val tableName: Output<String>

The name of the Timestream table.

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

Map of tags to assign to this 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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>