@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.644Z") public class CfnAccessPoint extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnAccessPoint.AccessPointTagProperty
A tag is a key-value pair attached to a file system.
|
static class |
CfnAccessPoint.Builder
A fluent builder for
CfnAccessPoint . |
static interface |
CfnAccessPoint.CreationInfoProperty
Required if the `RootDirectory` > `Path` specified does not exist.
|
static interface |
CfnAccessPoint.PosixUserProperty
The 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 interface |
CfnAccessPoint.RootDirectoryProperty
Specifies the directory on the Amazon EFS file system that the access point provides access to.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnAccessPoint(Construct scope,
java.lang.String id,
CfnAccessPointProps props)
Create a new `AWS::EFS::AccessPoint`.
|
protected |
CfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAccessPointTags()
An array of key-value pairs to apply to this resource.
|
java.lang.String |
getAttrAccessPointId()
The ID of the EFS access point.
|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the access point.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getClientToken()
The opaque string specified in the request to ensure idempotent creation.
|
java.lang.String |
getFileSystemId()
The ID of the EFS file system that the access point applies to.
|
java.lang.Object |
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.
|
java.lang.Object |
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.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAccessPointTags(IResolvable value)
An array of key-value pairs to apply to this resource.
|
void |
setAccessPointTags(java.util.List<java.lang.Object> value)
An array of key-value pairs to apply to this resource.
|
void |
setClientToken(java.lang.String value)
The opaque string specified in the request to ensure idempotent creation.
|
void |
setFileSystemId(java.lang.String value)
The ID of the EFS file system that the access point applies to.
|
void |
setPosixUser(CfnAccessPoint.PosixUserProperty 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.
|
void |
setPosixUser(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.
|
void |
setRootDirectory(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.
|
void |
setRootDirectory(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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnAccessPoint(Construct scope, java.lang.String id, CfnAccessPointProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrAccessPointId()
public java.lang.String getAttrArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getFileSystemId()
Accepts only the ID format for input when specifying a file system, for example fs-0123456789abcedf2
.
public void setFileSystemId(java.lang.String value)
Accepts only the ID format for input when specifying a file system, for example fs-0123456789abcedf2
.
public java.lang.Object getAccessPointTags()
For more information, see Tag .
public void setAccessPointTags(IResolvable value)
For more information, see Tag .
public void setAccessPointTags(java.util.List<java.lang.Object> value)
For more information, see Tag .
public java.lang.String getClientToken()
public void setClientToken(java.lang.String value)
public java.lang.Object getPosixUser()
public void setPosixUser(IResolvable value)
public void setPosixUser(CfnAccessPoint.PosixUserProperty value)
public java.lang.Object getRootDirectory()
public void setRootDirectory(IResolvable value)
public void setRootDirectory(CfnAccessPoint.RootDirectoryProperty value)