# CfnFileCacheProps

Properties for defining a `CfnFileCache`.

Extends: CfnFileCacheProps
Used as props by: CfnFileCache

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fsx as fsx } from 'aws-cdk-lib';
const cfnFileCacheProps: fsx.CfnFileCacheProps = {
  fileCacheType: 'fileCacheType',
  fileCacheTypeVersion: 'fileCacheTypeVersion',
  storageCapacity: 123,
  subnetIds: ['subnetIds'],

  // the properties below are optional
  copyTagsToDataRepositoryAssociations: false,
  dataRepositoryAssociations: [{
    dataRepositoryPath: 'dataRepositoryPath',
    fileCachePath: 'fileCachePath',
  }],
  kmsKeyId: 'kmsKeyId',
  lustreConfiguration: {
    deploymentType: 'deploymentType',
    metadataConfiguration: {
      storageCapacity: 123,
    },
    perUnitStorageThroughput: 123,

    // the properties below are optional
    logConfiguration: {
      level: 'level',

      // the properties below are optional
      destination: 'destination',
    },
    mountName: 'mountName',
    weeklyMaintenanceStartTime: 'weeklyMaintenanceStartTime',
  },
  securityGroupIds: ['securityGroupIds'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `copyTagsToDataRepositoryAssociations`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether tags should be copied to data repository associations.

- `dataRepositoryAssociations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFileCache.DataRepositoryAssociationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_fsx.CfnFileCache.DataRepositoryAssociationProperty.html)[] — Data repository associations for the cache.

- `fileCacheType`: string (required) — The type of cache, which must be LUSTRE.

- `fileCacheTypeVersion`: string (required) — The Lustre version of the cache, which must be 2.12.

- `kmsKeyId`: string — The KMS key ID for encrypting data.

- `lustreConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFileCache.LustreConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_fsx.CfnFileCache.LustreConfigurationProperty.html)

- `securityGroupIds`: string[] — A list of security group IDs for the cache.

- `storageCapacity`: number (required) — The storage capacity of the cache in gibibytes (GiB).

- `subnetIds`: string[] (required) — A list of subnet IDs for the cache.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags to associate with the file cache.
