@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:07.746Z") @Stability(value=Experimental) public interface TableProps extends software.amazon.jsii.JsiiSerializable
Database myDatabase;
Table.Builder.create(this, "MyTable")
.database(myDatabase)
.tableName("my_table")
.columns(List.of(Column.builder()
.name("col1")
.type(Schema.STRING)
.build()))
.partitionKeys(List.of(Column.builder()
.name("year")
.type(Schema.SMALL_INT)
.build(), Column.builder()
.name("month")
.type(Schema.SMALL_INT)
.build()))
.dataFormat(DataFormat.JSON)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TableProps.Builder
A builder for
TableProps |
static class |
TableProps.Jsii$Proxy
An implementation for
TableProps |
| Modifier and Type | Method and Description |
|---|---|
static TableProps.Builder |
builder() |
default IBucket |
getBucket()
(experimental) S3 bucket in which to store data.
|
List<Column> |
getColumns()
(experimental) Columns of the table.
|
default Boolean |
getCompressed()
(experimental) Indicates whether the table's data is compressed or not.
|
IDatabase |
getDatabase()
(experimental) Database in which to store the table.
|
DataFormat |
getDataFormat()
(experimental) Storage type of the table's data.
|
default String |
getDescription()
(experimental) Description of the table.
|
default TableEncryption |
getEncryption()
(experimental) The kind of encryption to secure the data with.
|
default IKey |
getEncryptionKey()
(experimental) External KMS key to use for bucket encryption.
|
default List<PartitionIndex> |
getPartitionIndexes()
(experimental) Partition indexes on the table.
|
default List<Column> |
getPartitionKeys()
(experimental) Partition columns of the table.
|
default String |
getS3Prefix()
(experimental) S3 prefix under which table objects are stored.
|
default Boolean |
getStoredAsSubDirectories()
(experimental) Indicates whether the table data is stored in subdirectories.
|
String |
getTableName()
(experimental) Name of the table.
|
@Stability(value=Experimental) @NotNull List<Column> getColumns()
@Stability(value=Experimental) @NotNull IDatabase getDatabase()
@Stability(value=Experimental) @NotNull DataFormat getDataFormat()
@Stability(value=Experimental) @NotNull String getTableName()
@Stability(value=Experimental) @Nullable default IBucket getBucket()
Default: one is created for you
@Stability(value=Experimental) @Nullable default Boolean getCompressed()
Default: false
@Stability(value=Experimental) @Nullable default String getDescription()
Default: generated
@Stability(value=Experimental) @Nullable default TableEncryption getEncryption()
You can only provide this option if you are not explicitly passing in a bucket.
If you choose SSE-KMS, you can provide an un-managed KMS key with encryptionKey.
If you choose CSE-KMS, you must provide an un-managed KMS key with encryptionKey.
Default: Unencrypted
@Stability(value=Experimental) @Nullable default IKey getEncryptionKey()
The encryption property must be SSE-KMS or CSE-KMS.
Default: key is managed by KMS.
@Stability(value=Experimental) @Nullable default List<PartitionIndex> getPartitionIndexes()
A maximum of 3 indexes are allowed on a table. Keys in the index must be part of the table's partition keys.
Default: table has no partition indexes
@Stability(value=Experimental) @Nullable default List<Column> getPartitionKeys()
Default: table is not partitioned
@Stability(value=Experimental) @Nullable default String getS3Prefix()
Default: - No prefix. The data will be stored under the root of the bucket.
@Stability(value=Experimental) @Nullable default Boolean getStoredAsSubDirectories()
Default: false
@Stability(value=Experimental) static TableProps.Builder builder()
TableProps.Builder of TablePropsCopyright © 2022. All rights reserved.