Skip to content
v2.274.0

Experimental

@aws-cdk/aws-redshift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TableDistStyle Enum ​

The data distribution style of a table.

Example ​

ts
new Table(this, 'Table', {
  tableColumns: [
    { name: 'col1', dataType: 'varchar(4)', distKey: true },
    { name: 'col2', dataType: 'float' },
  ],
  cluster: cluster,
  databaseName: 'databaseName',
  distStyle: TableDistStyle.KEY,
});

Members ​

MemberDescription
AUTOAmazon Redshift assigns an optimal distribution style based on the table data.
EVENThe data in the table is spread evenly across the nodes in a cluster in a round-robin distribution.
KEYThe data is distributed by the values in the DISTKEY column.
ALLA copy of the entire table is distributed to every node.

Referenced by ​

  • TableProps.distStyledist_styledistStyleDistStyleDistStyle