# ClusterInstanceType

The type of Aurora Cluster Instance.

Can be either serverless v2
or provisioned

Obtainable from: ClusterInstanceType.provisioned, ClusterInstanceType.serverlessV2

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

## Example

TypeScript:

```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);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rds as rds

cluster_instance_type = rds.ClusterInstanceType("instanceType", rds.InstanceType.PROVISIONED)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;

ClusterInstanceType clusterInstanceType = new ClusterInstanceType("instanceType", InstanceType.PROVISIONED);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RDS;

var clusterInstanceType = new ClusterInstanceType("instanceType", InstanceType.PROVISIONED);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

clusterInstanceType := awscdk.Aws_rds.NewClusterInstanceType(jsii.String("instanceType"), awscdk.Aws_rds.InstanceType_PROVISIONED)
```

## Initializer

TypeScript:

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

Python:

```python
ClusterInstanceType(instance_type: str, type: InstanceType)
```

Java:

```java
new ClusterInstanceType(String instanceType, InstanceType type)
```

C# / .NET:

```csharp
new ClusterInstanceType(string instanceType, InstanceType type)
```

Golang:

```go
NewClusterInstanceType(InstanceType *string, Type InstanceType)
```

## Properties

- `type`: [InstanceType](https://docs.aws.amazon.com/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.
