RootDirectoryProperty Struct
Specifies the directory on the Amazon EFS file system that the access point provides access to.
The access point exposes the specified file system path as the root directory of your file system to applications using the access point. NFS clients using the access point can only access data in the access point's RootDirectory and its subdirectories.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_efs as efs } from 'aws-cdk-lib';
const rootDirectoryProperty: efs.CfnAccessPoint.RootDirectoryProperty = {
creationInfo: {
ownerGid: 'ownerGid',
ownerUid: 'ownerUid',
permissions: 'permissions',
},
path: 'path',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_efs as efs
root_directory_property = efs.CfnAccessPoint.RootDirectoryProperty(
creation_info=efs.CfnAccessPoint.CreationInfoProperty(
owner_gid="ownerGid",
owner_uid="ownerUid",
permissions="permissions"
),
path="path"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.efs.*;
RootDirectoryProperty rootDirectoryProperty = RootDirectoryProperty.builder()
.creationInfo(CreationInfoProperty.builder()
.ownerGid("ownerGid")
.ownerUid("ownerUid")
.permissions("permissions")
.build())
.path("path")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EFS;
var rootDirectoryProperty = new RootDirectoryProperty {
CreationInfo = new CreationInfoProperty {
OwnerGid = "ownerGid",
OwnerUid = "ownerUid",
Permissions = "permissions"
},
Path = "path"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
rootDirectoryProperty := &RootDirectoryProperty{
CreationInfo: &CreationInfoProperty{
OwnerGid: jsii.String("ownerGid"),
OwnerUid: jsii.String("ownerUid"),
Permissions: jsii.String("permissions"),
},
Path: jsii.String("path"),
}
Properties
creationInfooptionalIResolvable | CfnAccessPoint.creation_infooptionaltyping.Union[IResolvable, CreationInfoProperty]creationInfooptionalIResolvableCreationInfooptionalIResolvableCreationInfooptionalinterface{} #notes
If the RootDirectory > Path specified does not exist, EFS creates the root directory using the CreationInfo settings when a client connects to an access point. When specifying the CreationInfo , you must provide values for all properties.
If you do not provide
CreationInfoand the specifiedRootDirectory>Pathdoes not exist, attempts to mount the file system using the access point will fail.
A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the CreationInfo .