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

Properties for configuring a Redshift table.

Extends: TableProps
Extends: DatabaseOptions
Used as props by: 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#L114)

## 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,
});
```

## Properties

- `adminUser`: [ISecret](/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager.ISecret.html) — The secret containing credentials to a Redshift user with administrator privileges.

  **Default:** the admin secret is taken from the cluster

  Secret JSON schema: `{ username: string; password: string }`.

- `cluster`: [ICluster](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.ICluster.html) (required) — The cluster containing the database.

- `databaseName`: string (required) — The name of the database.

- `distStyle`: [TableDistStyle](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.TableDistStyle.html) = TableDistStyle.AUTO — The distribution style of the table.

- `removalPolicy`: [RemovalPolicy](/cdk/api/v2/docs/aws-cdk-lib.RemovalPolicy.html) = cdk.RemovalPolicy.Retain — The policy to apply when this resource is removed from the application.

- `sortStyle`: [TableSortStyle](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.TableSortStyle.html) — The sort style of the table.

  **Default:** TableSortStyle.AUTO if no sort key is specified, TableSortStyle.COMPOUND if a sort key is specified

- `tableColumns`: [Column](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.Column.html)[] (required) — The columns of the table.

- `tableComment`: string — A comment to attach to the table.

  **Default:** no comment

- `tableName`: string — The name of the table.

  **Default:** a name is generated

- `timeout`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — Handler timeout duration.

  **Default:** 1 minute

  Valid values are between 1 second and 15 minutes.
