Class Table
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.redshift.alpha.Table
- All Implemented Interfaces:
ITable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.687Z")
@Stability(Experimental)
public class Table
extends software.constructs.Construct
implements ITable
(experimental) A table in a Redshift cluster.
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
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.alpha.ITable
ITable.Jsii$Default, ITable.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTable(software.amazon.jsii.JsiiObjectRef objRef) Table(software.constructs.Construct scope, String id, TableProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRemovalPolicy(RemovalPolicy policy) (experimental) Apply the given removal policy to this resource.static ITablefromTableAttributes(software.constructs.Construct scope, String id, TableAttributes attrs) (experimental) Specify a Redshift table using a table name and schema that already exists.(experimental) The cluster where the table is located.(experimental) The name of the database where the table is located.(experimental) The columns of the table.(experimental) Name of the table.voidgrant(IUser user, TableAction... actions) (experimental) Grant a user privilege to access this table.Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Table
protected Table(software.amazon.jsii.JsiiObjectRef objRef) -
Table
protected Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Table
@Stability(Experimental) public Table(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TableProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromTableAttributes
@Stability(Experimental) @NotNull public static ITable fromTableAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TableAttributes attrs) (experimental) Specify a Redshift table using a table name and schema that already exists.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
applyRemovalPolicy
(experimental) Apply the given removal policy to this resource.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.
- Parameters:
policy- This parameter is required.
-
grant
(experimental) Grant a user privilege to access this table. -
getCluster
(experimental) The cluster where the table is located.- Specified by:
getClusterin interfaceITable
-
getDatabaseName
(experimental) The name of the database where the table is located.- Specified by:
getDatabaseNamein interfaceITable
-
getTableColumns
(experimental) The columns of the table.- Specified by:
getTableColumnsin interfaceITable
-
getTableName
(experimental) Name of the table.- Specified by:
getTableNamein interfaceITable
-