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

Properties for a new database cluster.

Extends: ClusterProps
Used as props by: Cluster

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts#L396)
- Type last changed: v2.273.0-alpha.0 · 9 Oct 2026

## Example

```ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as iam from 'aws-cdk-lib/aws-iam';
declare const vpc: ec2.Vpc;

const defaultRole = new iam.Role(this, 'DefaultRole', {
  assumedBy: new iam.ServicePrincipal('redshift.amazonaws.com'),
},
);

new Cluster(this, 'Redshift', {
    masterUser: {
      masterUsername: 'admin',
    },
    vpc,
    roles: [defaultRole],
    defaultRole: defaultRole,
});
```

## Properties

- `availabilityZoneRelocation`: boolean = false — Whether to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster is created.

- `classicResizing`: boolean — If this flag is set, the cluster resizing type will be set to classic.

  **Default:** Elastic resize type

  When resizing a cluster, classic resizing will always provision a new cluster and transfer the data there.

  Classic resize takes more time to complete, but it can be useful in cases where the change in node count or
  the node type to migrate to doesn't fall within the bounds for elastic resize.

- `clusterName`: string — An optional identifier for the cluster.

  **Default:** A name is automatically generated.

- `clusterType`: [ClusterType](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.ClusterType.html) = `ClusterType.MULTI_NODE` — Settings for the individual instances that are launched.

- `defaultDatabaseName`: string = default_db — Name of a database which is automatically created inside the cluster.

- `defaultRole`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — A single AWS Identity and Access Management (IAM) role to be used as the default role for the cluster.

  **Default:** No default role is specified for the cluster.

  The default role must be included in the roles list.

- `elasticIp`: string — The Elastic IP (EIP) address for the cluster.

  **Default:** No Elastic IP

- `encrypted`: boolean = true — Whether to enable encryption of data at rest in the cluster.

- `encryptionKey`: [IKeyRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_kms.IKeyRef.html) — The KMS key to use for encryption of data at rest.

  **Default:** AWS-managed key, if encryption at rest is enabled

- `enhancedVpcRouting`: boolean = false — If this flag is set, Amazon Redshift forces all COPY and UNLOAD traffic between your cluster and your data repositories through your virtual private cloud (VPC).

- `logging`: [ClusterLogging](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.ClusterLogging.html) — Logging configuration for the cluster.

  **Default:** no logging

- `maintenanceTrackName`: [MaintenanceTrackName](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.MaintenanceTrackName.html) — The maintenance track name for the cluster.

  **Default:** undefined - Redshift default is current

- `masterUser`: [Login](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.Login.html) (required) — Username and password for the administrative user.

- `multiAz`: boolean = false — Indicating whether Amazon Redshift should deploy the cluster in two Availability Zones.

- `nodeType`: [NodeType](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.NodeType.html) = `NodeType.RA3_LARGE` — The node type to be provisioned for the cluster.

- `numberOfNodes`: number — Number of compute nodes in the cluster. Only specify this property for multi-node clusters.

  **Default:** 2 if `clusterType` is ClusterType.MULTI_NODE, undefined otherwise

  Value must be at least 2 and no more than 100.

- `parameterGroup`: [IClusterParameterGroup](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.IClusterParameterGroup.html) — Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html.

  **Default:** No parameter group.

- `port`: number — What port to listen on.

  **Default:** The default for the engine is used.

- `preferredMaintenanceWindow`: string — A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC).

  **Default:** 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

  Example: 'Sun:23:45-Mon:00:15'

- `publiclyAccessible`: boolean = false — Whether to make cluster publicly accessible.

- `rebootForParameterChanges`: boolean = false — If this flag is set, the cluster will be rebooted when changes to the cluster's parameter group that require a restart to apply.

- `removalPolicy`: [RemovalPolicy](/cdk/api/v2/docs/aws-cdk-lib.RemovalPolicy.html) = RemovalPolicy.RETAIN — The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.

- `resourceAction`: [ResourceAction](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.ResourceAction.html) — The Amazon Redshift operation to be performed.

  **Default:** no operation

- `roles`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html)[] — A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.

  **Default:** No role is attached to the cluster.

  The maximum number of roles to attach to a cluster is subject to a quota.

- `securityGroups`: [ISecurityGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html)[] — Security group.

  **Default:** a new security group is created.

- `subnetGroup`: [IClusterSubnetGroup](/cdk/api/v2/docs/@aws-cdk_aws-redshift-alpha.IClusterSubnetGroup.html) — A cluster subnet group to use with this cluster.

  **Default:** a new subnet group will be created.

- `vpc`: [IVpc](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpc.html) (required) — The VPC to place the cluster in.

- `vpcSubnets`: [SubnetSelection](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.SubnetSelection.html) — Where to place the instances within the VPC.

  **Default:** private subnets
