Class CfnFileCache
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.fsx.CfnFileCache
- All Implemented Interfaces:
IInspectable,IFileCacheRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:52.582Z")
@Stability(Stable)
public class CfnFileCache
extends CfnResource
implements IInspectable, IFileCacheRef, ITaggableV2
Resource Type definition for AWS::FSx::FileCache.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.fsx.*;
CfnFileCache cfnFileCache = CfnFileCache.Builder.create(this, "MyCfnFileCache")
.fileCacheType("fileCacheType")
.fileCacheTypeVersion("fileCacheTypeVersion")
.storageCapacity(123)
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.copyTagsToDataRepositoryAssociations(false)
.dataRepositoryAssociations(List.of(DataRepositoryAssociationProperty.builder()
.dataRepositoryPath("dataRepositoryPath")
.fileCachePath("fileCachePath")
.build()))
.kmsKeyId("kmsKeyId")
.lustreConfiguration(LustreConfigurationProperty.builder()
.deploymentType("deploymentType")
.metadataConfiguration(MetadataConfigurationProperty.builder()
.storageCapacity(123)
.build())
.perUnitStorageThroughput(123)
// the properties below are optional
.logConfiguration(LogConfigurationProperty.builder()
.level("level")
// the properties below are optional
.destination("destination")
.build())
.mountName("mountName")
.weeklyMaintenanceStartTime("weeklyMaintenanceStartTime")
.build())
.securityGroupIds(List.of("securityGroupIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFileCache.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.fsx.IFileCacheRef
IFileCacheRef.Jsii$Default, IFileCacheRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFileCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFileCache(software.amazon.jsii.JsiiObjectRef objRef) CfnFileCache(software.constructs.Construct scope, String id, CfnFileCacheProps props) Create a newAWS::FSx::FileCache. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForFileCache(IFileCacheRef resource) static IFileCacheReffromFileCacheId(software.constructs.Construct scope, String id, String fileCacheId) Creates a new IFileCacheRef from a fileCacheId.The time the cache was created.A list of IDs of data repository associations that are associated with this cache.The DNS name for the cache.The ID of the file cache.The lifecycle status of the cache.Network interface IDs for the cache.The AWS account ID of the cache owner.The Amazon Resource Name (ARN) of the file cache.The VPC ID of the cache.Tag Manager which manages the tags for this resource.Whether tags should be copied to data repository associations.Data repository associations for the cache.A reference to a FileCache resource.The type of cache, which must be LUSTRE.The Lustre version of the cache, which must be 2.12.The KMS key ID for encrypting data.Returns union: eitherIResolvableorCfnFileCache.LustreConfigurationPropertyA list of security group IDs for the cache.The storage capacity of the cache in gibibytes (GiB).A list of subnet IDs for the cache.getTags()Tags to associate with the file cache.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnFileCache.renderProperties(Map<String, Object> props) voidWhether tags should be copied to data repository associations.voidWhether tags should be copied to data repository associations.voidsetDataRepositoryAssociations(List<Object> value) Data repository associations for the cache.voidData repository associations for the cache.voidsetFileCacheType(String value) The type of cache, which must be LUSTRE.voidsetFileCacheTypeVersion(String value) The Lustre version of the cache, which must be 2.12.voidsetKmsKeyId(String value) The KMS key ID for encrypting data.voidvoidvoidsetSecurityGroupIds(List<String> value) A list of security group IDs for the cache.voidsetStorageCapacity(Number value) The storage capacity of the cache in gibibytes (GiB).voidsetSubnetIds(List<String> value) A list of subnet IDs for the cache.voidTags to associate with the file cache.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFileCache
protected CfnFileCache(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFileCache
protected CfnFileCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFileCache
@Stability(Stable) public CfnFileCache(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFileCacheProps props) Create a newAWS::FSx::FileCache.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForFileCache
- Parameters:
resource- This parameter is required.
-
fromFileCacheId
@Stability(Stable) @NotNull public static IFileCacheRef fromFileCacheId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String fileCacheId) Creates a new IFileCacheRef from a fileCacheId.- Parameters:
scope- This parameter is required.id- This parameter is required.fileCacheId- This parameter is required.
-
isCfnFileCache
Checks whether the given object is a CfnFileCache.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
The time the cache was created. -
getAttrDataRepositoryAssociationIds
A list of IDs of data repository associations that are associated with this cache. -
getAttrDnsName
The DNS name for the cache. -
getAttrFileCacheId
The ID of the file cache. -
getAttrLifecycle
The lifecycle status of the cache. -
getAttrLustreConfigurationLogConfiguration
-
getAttrLustreConfigurationMountName
-
getAttrNetworkInterfaceIds
Network interface IDs for the cache. -
getAttrOwnerId
The AWS account ID of the cache owner. -
getAttrResourceArn
The Amazon Resource Name (ARN) of the file cache. -
getAttrVpcId
The VPC ID of the cache. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getFileCacheRef
A reference to a FileCache resource.- Specified by:
getFileCacheRefin interfaceIFileCacheRef
-
getFileCacheType
The type of cache, which must be LUSTRE. -
setFileCacheType
The type of cache, which must be LUSTRE. -
getFileCacheTypeVersion
The Lustre version of the cache, which must be 2.12. -
setFileCacheTypeVersion
The Lustre version of the cache, which must be 2.12. -
getStorageCapacity
The storage capacity of the cache in gibibytes (GiB). -
setStorageCapacity
The storage capacity of the cache in gibibytes (GiB). -
getSubnetIds
A list of subnet IDs for the cache. -
setSubnetIds
A list of subnet IDs for the cache. -
getCopyTagsToDataRepositoryAssociations
Whether tags should be copied to data repository associations.Returns union: either
BooleanorIResolvable -
setCopyTagsToDataRepositoryAssociations
Whether tags should be copied to data repository associations. -
setCopyTagsToDataRepositoryAssociations
Whether tags should be copied to data repository associations. -
getDataRepositoryAssociations
Data repository associations for the cache.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFileCache.DataRepositoryAssociationProperty> -
setDataRepositoryAssociations
Data repository associations for the cache. -
setDataRepositoryAssociations
Data repository associations for the cache. -
getKmsKeyId
The KMS key ID for encrypting data. -
setKmsKeyId
The KMS key ID for encrypting data. -
getLustreConfiguration
Returns union: eitherIResolvableorCfnFileCache.LustreConfigurationProperty -
setLustreConfiguration
-
setLustreConfiguration
@Stability(Stable) public void setLustreConfiguration(@Nullable CfnFileCache.LustreConfigurationProperty value) -
getSecurityGroupIds
A list of security group IDs for the cache. -
setSecurityGroupIds
A list of security group IDs for the cache. -
getTags
Tags to associate with the file cache. -
setTags
Tags to associate with the file cache.
-