@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:08.112Z") @Stability(value=Experimental) 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:
// Example automatically generated from non-compiling source. May contain errors.
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
.outInfrequentAccessPolicy(OutOfInfrequentAccessPolicy.AFTER_1_ACCESS)
.build();
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html| Modifier and Type | Class and Description |
|---|---|
static class |
FileSystem.Builder
(experimental) A fluent builder for
FileSystem. |
software.amazon.jsii.JsiiObject.InitializationModeIFileSystem.Jsii$Default, IFileSystem.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static Number |
DEFAULT_PORT
(experimental) The default port File System listens on.
|
| Modifier | Constructor and Description |
|---|---|
|
FileSystem(software.constructs.Construct scope,
String id,
FileSystemProps props)
(experimental) 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)
(experimental) create access point from this filesystem.
|
AccessPoint |
addAccessPoint(String id,
AccessPointOptions accessPointOptions)
(experimental) create access point from this filesystem.
|
static IFileSystem |
fromFileSystemAttributes(software.constructs.Construct scope,
String id,
FileSystemAttributes attrs)
(experimental) Import an existing File System from the given properties.
|
Connections |
getConnections()
(experimental) The security groups/rules used to allow network connections to the file system.
|
String |
getFileSystemArn()
(experimental) The ARN of the file system.
|
String |
getFileSystemId()
(experimental) The ID of the file system, assigned by Amazon EFS.
|
IDependable |
getMountTargetsAvailable()
(experimental) Dependable that can be depended upon to ensure the mount targets of the filesystem are ready.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the actions defined in actions to the given grantee on this File System resource.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNode@Stability(value=Experimental) public static final Number DEFAULT_PORT
protected FileSystem(software.amazon.jsii.JsiiObjectRef objRef)
protected FileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental) @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=Experimental) @NotNull public AccessPoint addAccessPoint(@NotNull String id, @Nullable AccessPointOptions accessPointOptions)
id - This parameter is required.accessPointOptions - @Stability(value=Experimental) @NotNull public AccessPoint addAccessPoint(@NotNull String id)
id - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IFileSystemgrantee - Principal to grant right to. This parameter is required.actions - The actions to grant. This parameter is required.@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public String getFileSystemArn()
getFileSystemArn in interface IFileSystem@Stability(value=Experimental) @NotNull public String getFileSystemId()
getFileSystemId in interface IFileSystem@Stability(value=Experimental) @NotNull public IDependable getMountTargetsAvailable()
getMountTargetsAvailable in interface IFileSystemCopyright © 2022. All rights reserved.