# StorageType

The storage type of the DocDB cluster.

- Source: [`aws-docdb/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-docdb/lib/cluster.ts#L50)
- Type last changed: v2.156.0 · 6 Sep 2024

## Example

```ts
declare const vpc: ec2.Vpc;

const cluster = new docdb.DatabaseCluster(this, 'Database', {
  masterUser: {
    username: 'myuser',
  },
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
  vpc,
  storageType: docdb.StorageType.IOPT1, // Default is StorageType.STANDARD
});
```

## Members

| Member | Description |
| --- | --- |
| `STANDARD` | Standard storage. |
| `IOPT1` | I/O-optimized storage. |

## Referenced by

- [`DatabaseClusterProps`](/v2/docs/aws-cdk-lib.aws_docdb.DatabaseClusterProps).storageType
