Class CfnAccessPoint
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::EFS::AccessPoint.
The AWS::EFS::AccessPoint resource creates an EFS access point. An access point is an application-specific view into an EFS file system that applies an operating system user and group, and a file system path, to any file system request made through the access point. The operating system user and group override any identity information provided by the NFS client. The file system path is exposed as the access point's root directory. Applications using the access point can only access data in its own directory and below. To learn more, see Mounting a file system using EFS access points .
This operation requires permissions for the elasticfilesystem:CreateAccessPoint action.
Example:
// 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.*;
CfnAccessPoint cfnAccessPoint = CfnAccessPoint.Builder.create(this, "MyCfnAccessPoint")
.fileSystemId("fileSystemId")
// the properties below are optional
.accessPointTags(List.of(AccessPointTagProperty.builder()
.key("key")
.value("value")
.build()))
.clientToken("clientToken")
.posixUser(PosixUserProperty.builder()
.gid("gid")
.uid("uid")
// the properties below are optional
.secondaryGids(List.of("secondaryGids"))
.build())
.rootDirectory(RootDirectoryProperty.builder()
.creationInfo(CreationInfoProperty.builder()
.ownerGid("ownerGid")
.ownerUid("ownerUid")
.permissions("permissions")
.build())
.path("path")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA tag is a key-value pair attached to a file system.static final classA fluent builder forCfnAccessPoint.static interfaceRequired if theRootDirectory>Pathspecified does not exist.static interfaceThe full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point.static interfaceSpecifies the directory on the Amazon EFS file system that the access point provides access to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnAccessPoint(Construct scope, String id, CfnAccessPointProps props) Create a newAWS::EFS::AccessPoint.protectedCfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionAn array of key-value pairs to apply to this resource.The ID of the EFS access point.The Amazon Resource Name (ARN) of the access point.The opaque string specified in the request to ensure idempotent creation.The ID of the EFS file system that the access point applies to.The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessPointTags(List<Object> value) An array of key-value pairs to apply to this resource.voidsetAccessPointTags(IResolvable value) An array of key-value pairs to apply to this resource.voidsetClientToken(String value) The opaque string specified in the request to ensure idempotent creation.voidsetFileSystemId(String value) The ID of the EFS file system that the access point applies to.voidsetPosixUser(IResolvable value) The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.voidThe full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.voidsetRootDirectory(IResolvable value) The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.voidThe directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAccessPoint
protected CfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAccessPoint
protected CfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAccessPoint
@Stability(Stable) public CfnAccessPoint(@NotNull Construct scope, @NotNull String id, @NotNull CfnAccessPointProps props) Create a newAWS::EFS::AccessPoint.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAccessPointId
The ID of the EFS access point. -
getAttrArn
The Amazon Resource Name (ARN) of the access point. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFileSystemId
The ID of the EFS file system that the access point applies to.Accepts only the ID format for input when specifying a file system, for example
fs-0123456789abcedf2. -
setFileSystemId
The ID of the EFS file system that the access point applies to.Accepts only the ID format for input when specifying a file system, for example
fs-0123456789abcedf2. -
getAccessPointTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
setAccessPointTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
setAccessPointTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getClientToken
The opaque string specified in the request to ensure idempotent creation. -
setClientToken
The opaque string specified in the request to ensure idempotent creation. -
getPosixUser
The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point. -
setPosixUser
The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point. -
setPosixUser
The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point. -
getRootDirectory
The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point. -
setRootDirectory
The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point. -
setRootDirectory
@Stability(Stable) public void setRootDirectory(@Nullable CfnAccessPoint.RootDirectoryProperty value) The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.
-