Class Table.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.Table.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Table>
- Enclosing class:
- Table
@Stability(Experimental)
public static final class Table.Builder
extends Object
implements software.amazon.jsii.Builder<Table>
(experimental) A fluent builder for
Table
.-
Method Summary
Modifier and TypeMethodDescription(experimental) The secret containing credentials to a Redshift user with administrator privileges.build()
(experimental) The cluster containing the database.static Table.Builder
databaseName
(String databaseName) (experimental) The name of the database.distStyle
(TableDistStyle distStyle) (experimental) The distribution style of the table.removalPolicy
(RemovalPolicy removalPolicy) (experimental) The policy to apply when this resource is removed from the application.sortStyle
(TableSortStyle sortStyle) (experimental) The sort style of the table.tableColumns
(List<? extends Column> tableColumns) (experimental) The columns of the table.(experimental) The name of the table.
-
Method Details
-
create
@Stability(Experimental) public static Table.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Table.Builder
.
-
cluster
(experimental) The cluster containing the database.- Parameters:
cluster
- The cluster containing the database. This parameter is required.- Returns:
this
-
databaseName
(experimental) The name of the database.- Parameters:
databaseName
- The name of the database. This parameter is required.- Returns:
this
-
adminUser
(experimental) The secret containing credentials to a Redshift user with administrator privileges.Secret JSON schema:
{ username: string; password: string }
.Default: - the admin secret is taken from the cluster
- Parameters:
adminUser
- The secret containing credentials to a Redshift user with administrator privileges. This parameter is required.- Returns:
this
-
tableColumns
(experimental) The columns of the table.- Parameters:
tableColumns
- The columns of the table. This parameter is required.- Returns:
this
-
distStyle
(experimental) The distribution style of the table.Default: TableDistStyle.AUTO
- Parameters:
distStyle
- The distribution style of the table. This parameter is required.- Returns:
this
-
removalPolicy
(experimental) The policy to apply when this resource is removed from the application.Default: cdk.RemovalPolicy.Retain
- Parameters:
removalPolicy
- The policy to apply when this resource is removed from the application. This parameter is required.- Returns:
this
-
sortStyle
(experimental) The sort style of the table.Default: TableSortStyle.AUTO if no sort key is specified, TableSortStyle.COMPOUND if a sort key is specified
- Parameters:
sortStyle
- The sort style of the table. This parameter is required.- Returns:
this
-
tableName
(experimental) The name of the table.Default: - a name is generated
- Parameters:
tableName
- The name of the table. This parameter is required.- Returns:
this
-
build
-