Interface TableAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TableAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.854Z")
@Stability(Experimental)
public interface TableAttributes
extends software.amazon.jsii.JsiiSerializable
(experimental) A full specification of a Redshift table that can be used to import it fluently into the CDK application.
Example:
String databaseName = "databaseName"; String username = "myuser"; String tableName = "mytable"; IUser user = User.fromUserAttributes(this, "User", UserAttributes.builder() .username(username) .password(SecretValue.unsafePlainText("NOT_FOR_PRODUCTION")) .cluster(cluster) .databaseName(databaseName) .build()); ITable table = Table.fromTableAttributes(this, "Table", TableAttributes.builder() .tableName(tableName) .tableColumns(List.of(Column.builder().name("col1").dataType("varchar(4)").build(), Column.builder().name("col2").dataType("float").build())) .cluster(cluster) .databaseName("databaseName") .build()); table.grant(user, TableAction.INSERT);
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forTableAttributes
static final class
An implementation forTableAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic TableAttributes.Builder
builder()
(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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCluster
(experimental) The cluster where the table is located. -
getDatabaseName
(experimental) The name of the database where the table is located. -
getTableColumns
(experimental) The columns of the table. -
getTableName
(experimental) Name of the table. -
builder
- Returns:
- a
TableAttributes.Builder
ofTableAttributes
-