Table Args
data class TableArgs(val databaseName: Output<String>? = null, val magneticStoreWriteProperties: Output<TableMagneticStoreWritePropertiesArgs>? = null, val retentionProperties: Output<TableRetentionPropertiesArgs>? = null, val tableName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<TableArgs>
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());
}
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(databaseName: Output<String>? = null, magneticStoreWriteProperties: Output<TableMagneticStoreWritePropertiesArgs>? = null, retentionProperties: Output<TableRetentionPropertiesArgs>? = null, tableName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The name of the Timestream database.
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
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.