@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:45.891Z")
public interface TableAttributes
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);
Modifier and Type | Interface and Description |
---|---|
static class |
TableAttributes.Builder
A builder for
TableAttributes |
static class |
TableAttributes.Jsii$Proxy
An implementation for
TableAttributes |
Modifier and Type | Method and Description |
---|---|
static TableAttributes.Builder |
builder() |
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.
|
ICluster getCluster()
java.lang.String getDatabaseName()
java.util.List<Column> getTableColumns()
java.lang.String getTableName()
static TableAttributes.Builder builder()
TableAttributes.Builder
of TableAttributes