# FileSystemTypeVersion

The Lustre version for the file system.

- Source: [`aws-fsx/lib/lustre-file-system.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-fsx/lib/lustre-file-system.ts#L17)
- Type last changed: v2.163.0 · 22 Oct 2024

## Example

TypeScript:

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

const fileSystem = new fsx.LustreFileSystem(this, 'FsxLustreFileSystem', {
lustreConfiguration: { deploymentType: fsx.LustreDeploymentType.SCRATCH_2 },
  storageCapacityGiB: 1200,
  vpc,
  vpcSubnet: vpc.privateSubnets[0],
  fileSystemTypeVersion: fsx.FileSystemTypeVersion.V_2_15,
});
```

Python:

```python
# vpc: ec2.Vpc

file_system = fsx.LustreFileSystem(self, "FsxLustreFileSystem",
    lustre_configuration=fsx.LustreConfiguration(deployment_type=fsx.LustreDeploymentType.SCRATCH_2),
    storage_capacity_gi_b=1200,
    vpc=vpc,
    vpc_subnet=vpc.private_subnets[0],
    file_system_type_version=fsx.FileSystemTypeVersion.V_2_15
)
```

Java:

```java
Vpc vpc;

LustreFileSystem fileSystem = LustreFileSystem.Builder.create(this, "FsxLustreFileSystem")
        .lustreConfiguration(LustreConfiguration.builder().deploymentType(LustreDeploymentType.SCRATCH_2).build())
        .storageCapacityGiB(1200)
        .vpc(vpc)
        .vpcSubnet(vpc.getPrivateSubnets()[0])
        .fileSystemTypeVersion(FileSystemTypeVersion.V_2_15)
        .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.SCRATCH_2 },
    StorageCapacityGiB = 1200,
    Vpc = vpc,
    VpcSubnet = vpc.PrivateSubnets[0],
    FileSystemTypeVersion = FileSystemTypeVersion.V_2_15
});
```

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_SCRATCH_2,
	},
	StorageCapacityGiB: jsii.Number(1200),
	Vpc: Vpc,
	VpcSubnet: vpc.PrivateSubnets[jsii.Number(0)],
	FileSystemTypeVersion: fsx.FileSystemTypeVersion_V_2_15,
})
```

## Members

| Member | Description |
| --- | --- |
| `V_2_10` | Version 2.10. |
| `V_2_12` | Version 2.12. |
| `V_2_15` | Version 2.15. |

## Referenced by

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