Modifier and Type | Method and Description |
---|---|
Table.Builder |
adminUser(ISecret adminUser)
(experimental) The secret containing credentials to a Redshift user with administrator privileges.
|
Table |
build() |
Table.Builder |
cluster(ICluster cluster)
(experimental) The cluster containing the database.
|
static Table.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
Table.Builder |
databaseName(java.lang.String databaseName)
(experimental) The name of the database.
|
Table.Builder |
distStyle(TableDistStyle distStyle)
(experimental) The distribution style of the table.
|
Table.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) The policy to apply when this resource is removed from the application.
|
Table.Builder |
sortStyle(TableSortStyle sortStyle)
(experimental) The sort style of the table.
|
Table.Builder |
tableColumns(java.util.List<? extends Column> tableColumns)
(experimental) The columns of the table.
|
Table.Builder |
tableName(java.lang.String tableName)
(experimental) The name of the table.
|
public static Table.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.Table.Builder
.public Table.Builder cluster(ICluster cluster)
cluster
- The cluster containing the database. This parameter is required.this
public Table.Builder databaseName(java.lang.String databaseName)
databaseName
- The name of the database. This parameter is required.this
public Table.Builder adminUser(ISecret adminUser)
Secret JSON schema: { username: string; password: string }
.
Default: - the admin secret is taken from the cluster
adminUser
- The secret containing credentials to a Redshift user with administrator privileges. This parameter is required.this
public Table.Builder tableColumns(java.util.List<? extends Column> tableColumns)
tableColumns
- The columns of the table. This parameter is required.this
public Table.Builder distStyle(TableDistStyle distStyle)
Default: TableDistStyle.AUTO
distStyle
- The distribution style of the table. This parameter is required.this
public Table.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: cdk.RemovalPolicy.Retain
removalPolicy
- The policy to apply when this resource is removed from the application. This parameter is required.this
public Table.Builder sortStyle(TableSortStyle sortStyle)
Default: TableSortStyle.AUTO if no sort key is specified, TableSortStyle.COMPOUND if a sort key is specified
sortStyle
- The sort style of the table. This parameter is required.this
public Table.Builder tableName(java.lang.String tableName)
Default: - a name is generated
tableName
- The name of the table. This parameter is required.this
public Table build()