# ClusterInstanceType

The type of Aurora Cluster Instance.

Can be either serverless v2
or provisioned

- Source: [`aws-rds/lib/aurora-cluster-instance.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-rds/lib/aurora-cluster-instance.ts#L75)
- Type last changed: v2.82.0 · 2 Jun 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const clusterInstanceType = new rds.ClusterInstanceType('instanceType', rds.InstanceType.PROVISIONED);
```

## Initializer

```ts
new ClusterInstanceType(instanceType: string, type: InstanceType)
```

## Properties

- `type`: [InstanceType](/cdk/api/v2/docs/aws-cdk-lib.aws_rds.InstanceType.html)

## Methods

- `provisioned(instanceType?: InstanceType): ClusterInstanceType // chainable` (static) — Aurora Provisioned instance type.

- `serverlessV2(): ClusterInstanceType // chainable` (static) — Aurora Serverless V2 instance type.

- `toString(): string` — String representation of the instance type that can be used in the CloudFormation resource.
