Skip to content
v2.274.0

CfnFileCacheProps Struct ​

Properties for defining a CfnFileCache.

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 ​

copyTagsToDataRepositoryAssociationsboolean | IResolvablecopy_tags_to_data_repository_associationstyping.Union[bool, IResolvable]copyTagsToDataRepositoryAssociationsBooleanCopyTagsToDataRepositoryAssociationsboolCopyTagsToDataRepositoryAssociationsinterface{}#
Whether tags should be copied to data repository associations.
dataRepositoryAssociationsIResolvable | IResolvable | CfnFileCache.DataRepositoryAssociationProperty[]data_repository_associationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataRepositoryAssociationProperty]]]dataRepositoryAssociationsIResolvableDataRepositoryAssociationsIResolvableDataRepositoryAssociationsinterface{}#
Data repository associations for the cache.
fileCacheTypestringfile_cache_typestrfileCacheTypeStringFileCacheTypestringFileCacheType*stringrequired#
The type of cache, which must be LUSTRE.
fileCacheTypeVersionstringfile_cache_type_versionstrfileCacheTypeVersionStringFileCacheTypeVersionstringFileCacheTypeVersion*stringrequired#
The Lustre version of the cache, which must be 2.12.
kmsKeyIdstringkms_key_idstrkmsKeyIdStringKmsKeyIdstringKmsKeyId*string#
The KMS key ID for encrypting data.
lustreConfigurationIResolvable | CfnFileCache.LustreConfigurationPropertylustre_configurationtyping.Union[IResolvable, LustreConfigurationProperty]lustreConfigurationIResolvableLustreConfigurationIResolvableLustreConfigurationinterface{}#
securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*string#
A list of security group IDs for the cache.
storageCapacitynumberstorage_capacityint | floatstorageCapacityNumberStorageCapacitydoubleStorageCapacity*float64required#
The storage capacity of the cache in gibibytes (GiB).
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*stringrequired#
A list of subnet IDs for the cache.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
Tags to associate with the file cache.