Interface TableProps
- All Superinterfaces:
DatabaseOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TableProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.856Z")
@Stability(Experimental)
public interface TableProps
extends software.amazon.jsii.JsiiSerializable, DatabaseOptions
(experimental) Properties for configuring a Redshift table.
Example:
Table.Builder.create(this, "Table") .tableColumns(List.of(Column.builder().name("col1").dataType("varchar(4)").distKey(true).build(), Column.builder().name("col2").dataType("float").build())) .cluster(cluster) .databaseName("databaseName") .distStyle(TableDistStyle.KEY) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forTableProps
static final class
An implementation forTableProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic TableProps.Builder
builder()
default TableDistStyle
(experimental) The distribution style of the table.default RemovalPolicy
(experimental) The policy to apply when this resource is removed from the application.default TableSortStyle
(experimental) The sort style of the table.(experimental) The columns of the table.default String
(experimental) The name of the table.Methods inherited from interface software.amazon.awscdk.services.redshift.DatabaseOptions
getAdminUser, getCluster, getDatabaseName
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTableColumns
(experimental) The columns of the table. -
getDistStyle
(experimental) The distribution style of the table.Default: TableDistStyle.AUTO
-
getRemovalPolicy
(experimental) The policy to apply when this resource is removed from the application.Default: cdk.RemovalPolicy.Retain
-
getSortStyle
(experimental) The sort style of the table.Default: TableSortStyle.AUTO if no sort key is specified, TableSortStyle.COMPOUND if a sort key is specified
-
getTableName
(experimental) The name of the table.Default: - a name is generated
-
builder
- Returns:
- a
TableProps.Builder
ofTableProps
-