Class FileSystem
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.efs.FileSystem
- All Implemented Interfaces:
- IConstruct,- IDependable,- IResource,- IConnectable,- IFileSystem,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
           date="2023-06-19T16:30:40.134Z")
@Stability(Stable)
public class FileSystem
extends Resource
implements IFileSystem
The Elastic File System implementation of IFileSystem.
 
It creates a new, empty file system in Amazon Elastic File System (Amazon EFS). It also creates mount target (AWS::EFS::MountTarget) implicitly to mount the EFS file system on an Amazon Elastic Compute Cloud (Amazon EC2) instance or another resource.
Example:
 FileSystem fileSystem = FileSystem.Builder.create(this, "MyEfsFileSystem")
         .vpc(new Vpc(this, "VPC"))
         .lifecyclePolicy(LifecyclePolicy.AFTER_14_DAYS) // files are not transitioned to infrequent access (IA) storage by default
         .performanceMode(PerformanceMode.GENERAL_PURPOSE) // default
         .outOfInfrequentAccessPolicy(OutOfInfrequentAccessPolicy.AFTER_1_ACCESS)
         .build();
 - 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.efs.IFileSystemIFileSystem.Jsii$Default, IFileSystem.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResourceIResource.Jsii$Default
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFileSystem(software.amazon.jsii.JsiiObjectRef objRef) FileSystem(software.constructs.Construct scope, String id, FileSystemProps props) Constructor for creating a new EFS FileSystem.
- 
Method SummaryModifier and TypeMethodDescriptionaddAccessPoint(String id) create access point from this filesystem.addAccessPoint(String id, AccessPointOptions accessPointOptions) create access point from this filesystem.static IFileSystemfromFileSystemAttributes(software.constructs.Construct scope, String id, FileSystemAttributes attrs) Import an existing File System from the given properties.The security groups/rules used to allow network connections to the file system.The ARN of the file system.The ID of the file system, assigned by Amazon EFS.Dependable that can be depended upon to ensure the mount targets of the filesystem are ready.grant(IGrantable grantee, @NotNull String... actions) Grant the actions defined in actions to the given grantee on this File System resource.Methods inherited from class software.amazon.awscdk.core.ResourceapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.ConstructtoStringMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstructgetNodeMethods inherited from interface software.amazon.awscdk.core.IResourceapplyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
DEFAULT_PORTThe default port File System listens on.
 
- 
- 
Constructor Details- 
FileSystemprotected FileSystem(software.amazon.jsii.JsiiObjectRef objRef) 
- 
FileSystemprotected FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
FileSystem@Stability(Stable) public FileSystem(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FileSystemProps props) Constructor for creating a new EFS FileSystem.- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- props- This parameter is required.
 
 
- 
- 
Method Details- 
fromFileSystemAttributes@Stability(Stable) @NotNull public static IFileSystem fromFileSystemAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FileSystemAttributes attrs) Import an existing File System from the given properties.- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- attrs- This parameter is required.
 
- 
addAccessPoint@Stability(Stable) @NotNull public AccessPoint addAccessPoint(@NotNull String id, @Nullable AccessPointOptions accessPointOptions) create access point from this filesystem.- Parameters:
- id- This parameter is required.
- accessPointOptions-
 
- 
addAccessPointcreate access point from this filesystem.- Parameters:
- id- This parameter is required.
 
- 
grant@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Grant the actions defined in actions to the given grantee on this File System resource.- Specified by:
- grantin interface- IFileSystem
- Parameters:
- grantee- Principal to grant right to. This parameter is required.
- actions- The actions to grant. This parameter is required.
 
- 
getConnectionsThe security groups/rules used to allow network connections to the file system.- Specified by:
- getConnectionsin interface- IConnectable
 
- 
getFileSystemArnThe ARN of the file system.- Specified by:
- getFileSystemArnin interface- IFileSystem
 
- 
getFileSystemIdThe ID of the file system, assigned by Amazon EFS.- Specified by:
- getFileSystemIdin interface- IFileSystem
 
- 
getMountTargetsAvailableDependable that can be depended upon to ensure the mount targets of the filesystem are ready.- Specified by:
- getMountTargetsAvailablein interface- IFileSystem
 
 
-