@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-06-22T23:27:55.942Z")
public interface Acl
Example:
import software.amazon.awscdk.services.ec2.*; import software.amazon.awscdk.services.efs.*; // create a new VPC Vpc vpc = new Vpc(this, "VPC"); // create a new Amazon EFS filesystem FileSystem fileSystem = FileSystem.Builder.create(this, "Efs").vpc(vpc).build(); // create a new access point from the filesystem AccessPoint accessPoint = fileSystem.addAccessPoint("AccessPoint", AccessPointOptions.builder() // set /export/lambda as the root of the access point .path("/export/lambda") // as /export/lambda does not exist in a new efs filesystem, the efs will create the directory with the following createAcl .createAcl(Acl.builder() .ownerUid("1001") .ownerGid("1001") .permissions("750") .build()) // enforce the POSIX identity so lambda function will access with this identity .posixUser(PosixUser.builder() .uid("1001") .gid("1001") .build()) .build()); Function fn = Function.Builder.create(this, "MyLambda") // mount the access point to /mnt/msg in the lambda runtime environment .filesystem(FileSystem.fromEfsAccessPoint(accessPoint, "/mnt/msg")) .runtime(Runtime.NODEJS_16_X) .handler("index.handler") .code(Code.fromAsset(join(__dirname, "lambda-handler"))) .vpc(vpc) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
Acl.Builder
A builder for
Acl |
static class |
Acl.Jsii$Proxy
An implementation for
Acl |
Modifier and Type | Method and Description |
---|---|
static Acl.Builder |
builder() |
java.lang.String |
getOwnerGid()
Specifies the POSIX group ID to apply to the RootDirectory.
|
java.lang.String |
getOwnerUid()
Specifies the POSIX user ID to apply to the RootDirectory.
|
java.lang.String |
getPermissions()
Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
|
java.lang.String getOwnerGid()
Accepts values from 0 to 2^32 (4294967295).
java.lang.String getOwnerUid()
Accepts values from 0 to 2^32 (4294967295).
java.lang.String getPermissions()
static Acl.Builder builder()
Acl.Builder
of Acl