# StorageType

The storage type for the file system.

- Source: [`aws-fsx/lib/file-system.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-fsx/lib/file-system.ts#L9)
- Type last changed: v2.182.0 · 5 Mar 2025

## Example

TypeScript:

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

const fileSystem = new fsx.LustreFileSystem(this, 'FsxLustreFileSystem', {
  lustreConfiguration: { deploymentType: fsx.LustreDeploymentType.PERSISTENT_1 },
  storageCapacityGiB: 1200,
  vpc,
  vpcSubnet: vpc.privateSubnets[0],
  storageType: fsx.StorageType.HDD,
});
```

Python:

```python
# vpc: ec2.Vpc

file_system = fsx.LustreFileSystem(self, "FsxLustreFileSystem",
    lustre_configuration=fsx.LustreConfiguration(deployment_type=fsx.LustreDeploymentType.PERSISTENT_1),
    storage_capacity_gi_b=1200,
    vpc=vpc,
    vpc_subnet=vpc.private_subnets[0],
    storage_type=fsx.StorageType.HDD
)
```

Java:

```java
Vpc vpc;

LustreFileSystem fileSystem = LustreFileSystem.Builder.create(this, "FsxLustreFileSystem")
        .lustreConfiguration(LustreConfiguration.builder().deploymentType(LustreDeploymentType.PERSISTENT_1).build())
        .storageCapacityGiB(1200)
        .vpc(vpc)
        .vpcSubnet(vpc.getPrivateSubnets()[0])
        .storageType(StorageType.HDD)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
Vpc vpc;

var fileSystem = new LustreFileSystem(this, "FsxLustreFileSystem", new LustreFileSystemProps {
    LustreConfiguration = new LustreConfiguration { DeploymentType = LustreDeploymentType.PERSISTENT_1 },
    StorageCapacityGiB = 1200,
    Vpc = vpc,
    VpcSubnet = vpc.PrivateSubnets[0],
    StorageType = StorageType.HDD
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var vpc Vpc

fileSystem := fsx.NewLustreFileSystem(this, jsii.String("FsxLustreFileSystem"), &LustreFileSystemProps{
	LustreConfiguration: &LustreConfiguration{
		DeploymentType: fsx.LustreDeploymentType_PERSISTENT_1,
	},
	StorageCapacityGiB: jsii.Number(1200),
	Vpc: Vpc,
	VpcSubnet: vpc.PrivateSubnets[jsii.Number(0)],
	StorageType: fsx.StorageType_HDD,
})
```

## Members

| Member | Description |
| --- | --- |
| `SSD` | Solid State Drive storage. |
| `HDD` | Hard Disk Drive storage. |
| `INTELLIGENT_TIERING` | Intelligent Tiering storage. |

## Referenced by

- [`FileSystemProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_fsx.FileSystemProps.html).storageType
