CfnAccessPointProps Struct
Properties for defining a CfnAccessPoint.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 cfnAccessPointProps: efs.CfnAccessPointProps = {
fileSystemId: 'fileSystemId',
// the properties below are optional
accessPointTags: [{
key: 'key',
value: 'value',
}],
clientToken: 'clientToken',
posixUser: {
gid: 'gid',
uid: 'uid',
// the properties below are optional
secondaryGids: ['secondaryGids'],
},
rootDirectory: {
creationInfo: {
ownerGid: 'ownerGid',
ownerUid: 'ownerUid',
permissions: 'permissions',
},
path: 'path',
},
};
python
# 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
cfn_access_point_props = efs.CfnAccessPointProps(
file_system_id="fileSystemId",
# the properties below are optional
access_point_tags=[efs.CfnAccessPoint.AccessPointTagProperty(
key="key",
value="value"
)],
client_token="clientToken",
posix_user=efs.CfnAccessPoint.PosixUserProperty(
gid="gid",
uid="uid",
# the properties below are optional
secondary_gids=["secondaryGids"]
),
root_directory=efs.CfnAccessPoint.RootDirectoryProperty(
creation_info=efs.CfnAccessPoint.CreationInfoProperty(
owner_gid="ownerGid",
owner_uid="ownerUid",
permissions="permissions"
),
path="path"
)
)
java
// 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.*;
CfnAccessPointProps cfnAccessPointProps = CfnAccessPointProps.builder()
.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();
csharp
// 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 cfnAccessPointProps = new CfnAccessPointProps {
FileSystemId = "fileSystemId",
// the properties below are optional
AccessPointTags = new [] { new AccessPointTagProperty {
Key = "key",
Value = "value"
} },
ClientToken = "clientToken",
PosixUser = new PosixUserProperty {
Gid = "gid",
Uid = "uid",
// the properties below are optional
SecondaryGids = new [] { "secondaryGids" }
},
RootDirectory = new RootDirectoryProperty {
CreationInfo = new CreationInfoProperty {
OwnerGid = "ownerGid",
OwnerUid = "ownerUid",
Permissions = "permissions"
},
Path = "path"
}
};
go
// 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"
cfnAccessPointProps := &CfnAccessPointProps{
FileSystemId: jsii.String("fileSystemId"),
// the properties below are optional
AccessPointTags: []AccessPointTagProperty{
&AccessPointTagProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
ClientToken: jsii.String("clientToken"),
PosixUser: &PosixUserProperty{
Gid: jsii.String("gid"),
Uid: jsii.String("uid"),
// the properties below are optional
SecondaryGids: []*string{
jsii.String("secondaryGids"),
},
},
RootDirectory: &RootDirectoryProperty{
CreationInfo: &CreationInfoProperty{
OwnerGid: jsii.String("ownerGid"),
OwnerUid: jsii.String("ownerUid"),
Permissions: jsii.String("permissions"),
},
Path: jsii.String("path"),
},
}
Properties
accessPointTagsoptionalCfnAccessPoint.access_point_tagsoptionaltyping.List[AccessPointTagProperty]accessPointTagsoptionalList<AccessPointTagProperty>AccessPointTagsoptionalAccessPointTagProperty[]AccessPointTagsoptional*[]AccessPointTagProperty #An array of key-value pairs to apply to this resource.
For more information, see Tag .
clientTokenoptionalstringclient_tokenoptionalstrclientTokenoptionalStringClientTokenoptionalstringClientTokenoptional*string #The opaque string specified in the request to ensure idempotent creation.
fileSystemIdstring | IFileSystemReffile_system_idtyping.Union[str, IFileSystemRef]fileSystemIdStringFileSystemIdstringFileSystemIdinterface{} required #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 .
posixUseroptionalIResolvable | CfnAccessPoint.PosixUserPropertyposix_useroptionaltyping.Union[IResolvable, PosixUserProperty]posixUseroptionalIResolvablePosixUseroptionalIResolvablePosixUseroptionalinterface{} #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.
rootDirectoryoptionalIResolvable | CfnAccessPoint.root_directoryoptionaltyping.Union[IResolvable, RootDirectoryProperty]rootDirectoryoptionalIResolvableRootDirectoryoptionalIResolvableRootDirectoryoptionalinterface{} #The directory on the EFS file system that the access point exposes as the root directory to NFS clients using the access point.