> **Experimental**
>
> `@aws-cdk/aws-redshift-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# TableDistStyle

The data distribution style of a table.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/table.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-redshift-alpha/lib/table.ts#L365)

## 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

| Member | Description |
| --- | --- |
| `AUTO` | Amazon Redshift assigns an optimal distribution style based on the table data. |
| `EVEN` | The data in the table is spread evenly across the nodes in a cluster in a round-robin distribution. |
| `KEY` | The data is distributed by the values in the DISTKEY column. |
| `ALL` | A copy of the entire table is distributed to every node. |

## Referenced by

- [`TableProps`](/v2/docs/@aws-cdk_aws-redshift-alpha.TableProps).distStyle
