Interface ExternalTableProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, TableBaseProps
All Known Implementing Classes:
ExternalTableProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-17T14:54:05.046Z") @Stability(Stable) public interface ExternalTableProps extends software.amazon.jsii.JsiiSerializable, TableBaseProps
Example:

 Connection myConnection;
 Database myDatabase;
 ExternalTable.Builder.create(this, "MyTable")
         .connection(myConnection)
         .externalDataLocation("default_db_public_example") // A table in Redshift
         // ...
         .database(myDatabase)
         .columns(List.of(Column.builder()
                 .name("col1")
                 .type(Schema.STRING)
                 .build()))
         .dataFormat(DataFormat.JSON)
         .build();
 
  • Method Details

    • getConnection

      @Stability(Stable) @NotNull IConnection getConnection()
      The connection the table will use when performing reads and writes.
    • getExternalDataLocation

      @Stability(Stable) @NotNull String getExternalDataLocation()
      The data source location of the glue table, (e.g. default_db_public_example for Redshift).

      This overrides both bucket and s3Prefix.

    • builder

      @Stability(Stable) static ExternalTableProps.Builder builder()
      Returns:
      a ExternalTableProps.Builder of ExternalTableProps