@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T20:48:13.083Z") @Stability(value=Stable) public class FileSystem extends Resource implements 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();
Modifier and Type | Class and Description |
---|---|
static class |
FileSystem.Builder
A fluent builder for
FileSystem . |
software.amazon.jsii.JsiiObject.InitializationMode
IFileSystem.Jsii$Default, IFileSystem.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static Number |
DEFAULT_PORT
The default port File System listens on.
|
Modifier | Constructor and Description |
---|---|
|
FileSystem(software.constructs.Construct scope,
String id,
FileSystemProps props)
Constructor for creating a new EFS FileSystem.
|
protected |
FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FileSystem(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
AccessPoint |
addAccessPoint(String id)
create access point from this filesystem.
|
AccessPoint |
addAccessPoint(String id,
AccessPointOptions accessPointOptions)
create access point from this filesystem.
|
static IFileSystem |
fromFileSystemAttributes(software.constructs.Construct scope,
String id,
FileSystemAttributes attrs)
Import an existing File System from the given properties.
|
Connections |
getConnections()
The security groups/rules used to allow network connections to the file system.
|
String |
getFileSystemArn()
The ARN of the file system.
|
String |
getFileSystemId()
The ID of the file system, assigned by Amazon EFS.
|
software.constructs.IDependable |
getMountTargetsAvailable()
Dependable that can be depended upon to ensure the mount targets of the filesystem are ready.
|
Grant |
grant(IGrantable grantee,
String... actions)
Grant the actions defined in actions to the given grantee on this File System resource.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
@Stability(value=Stable) public static final Number DEFAULT_PORT
protected FileSystem(software.amazon.jsii.JsiiObjectRef objRef)
protected FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public FileSystem(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FileSystemProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.@Stability(value=Stable) @NotNull public static IFileSystem fromFileSystemAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FileSystemAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.@Stability(value=Stable) @NotNull public AccessPoint addAccessPoint(@NotNull String id, @Nullable AccessPointOptions accessPointOptions)
id
- This parameter is required.accessPointOptions
- @Stability(value=Stable) @NotNull public AccessPoint addAccessPoint(@NotNull String id)
id
- This parameter is required.@Stability(value=Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant
in interface IFileSystem
grantee
- Principal to grant right to. This parameter is required.actions
- The actions to grant. This parameter is required.@Stability(value=Stable) @NotNull public Connections getConnections()
getConnections
in interface IConnectable
@Stability(value=Stable) @NotNull public String getFileSystemArn()
getFileSystemArn
in interface IFileSystem
@Stability(value=Stable) @NotNull public String getFileSystemId()
getFileSystemId
in interface IFileSystem
@Stability(value=Stable) @NotNull public software.constructs.IDependable getMountTargetsAvailable()
getMountTargetsAvailable
in interface IFileSystem
Copyright © 2022. All rights reserved.