@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:31.556Z") public class Table extends Construct implements ITable
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();
Modifier and Type | Class and Description |
---|---|
static class |
Table.Builder
(experimental) A fluent builder for
Table . |
ITable.Jsii$Default, ITable.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Table(software.amazon.jsii.JsiiObjectRef objRef) |
|
Table(software.constructs.Construct scope,
java.lang.String id,
TableProps props) |
Modifier and Type | Method and Description |
---|---|
void |
applyRemovalPolicy(RemovalPolicy policy)
(experimental) Apply the given removal policy to this resource.
|
static ITable |
fromTableAttributes(software.constructs.Construct scope,
java.lang.String id,
TableAttributes attrs)
(experimental) Specify a Redshift table using a table name and schema that already exists.
|
ICluster |
getCluster()
(experimental) The cluster where the table is located.
|
java.lang.String |
getDatabaseName()
(experimental) The name of the database where the table is located.
|
java.util.List<Column> |
getTableColumns()
(experimental) The columns of the table.
|
java.lang.String |
getTableName()
(experimental) Name of the table.
|
void |
grant(IUser user,
TableAction... actions)
(experimental) Grant a user privilege to access this table.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected Table(software.amazon.jsii.JsiiObjectRef objRef)
protected Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Table(software.constructs.Construct scope, java.lang.String id, TableProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static ITable fromTableAttributes(software.constructs.Construct scope, java.lang.String id, TableAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be destroyed (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
This resource is retained by default.
policy
- This parameter is required.public void grant(IUser user, TableAction... actions)
public ICluster getCluster()
getCluster
in interface ITable
public java.lang.String getDatabaseName()
getDatabaseName
in interface ITable
public java.util.List<Column> getTableColumns()
getTableColumns
in interface ITable
public java.lang.String getTableName()
getTableName
in interface ITable