@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.083Z") @Stability(value=Experimental) public interface TableAttributes extends software.amazon.jsii.JsiiSerializable
Example:
String databaseName = "databaseName";
String username = "myuser";
String tableName = "mytable";
IUser user = User.fromUserAttributes(this, "User", UserAttributes.builder()
.username(username)
.password(SecretValue.plainText("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.
|
String |
getDatabaseName()
(experimental) The name of the database where the table is located.
|
List<Column> |
getTableColumns()
(experimental) The columns of the table.
|
String |
getTableName()
(experimental) Name of the table.
|
@Stability(value=Experimental) @NotNull ICluster getCluster()
@Stability(value=Experimental) @NotNull String getDatabaseName()
@Stability(value=Experimental) @NotNull List<Column> getTableColumns()
@Stability(value=Experimental) @NotNull String getTableName()
@Stability(value=Experimental) static TableAttributes.Builder builder()
TableAttributes.Builder of TableAttributesCopyright © 2022. All rights reserved.