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);
 
  • Method Details

    • getCluster

      @Stability(Experimental) @NotNull ICluster getCluster()
      (experimental) The cluster where the table is located.
    • getDatabaseName

      @Stability(Experimental) @NotNull String getDatabaseName()
      (experimental) The name of the database where the table is located.
    • getTableColumns

      @Stability(Experimental) @NotNull List<Column> getTableColumns()
      (experimental) The columns of the table.
    • getTableName

      @Stability(Experimental) @NotNull String getTableName()
      (experimental) Name of the table.
    • builder

      @Stability(Experimental) static TableAttributes.Builder builder()
      Returns:
      a TableAttributes.Builder of TableAttributes