CfnAccessPointPropsMixin
- class aws_cdk.mixins_preview.aws_efs.mixins.CfnAccessPointPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::EFS::AccessPointresource 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:CreateAccessPointaction.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-accesspoint.html
- CloudformationResource:
AWS::EFS::AccessPoint
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_efs import mixins as efs_mixins cfn_access_point_props_mixin = efs_mixins.CfnAccessPointPropsMixin(efs_mixins.CfnAccessPointMixinProps( access_point_tags=[efs_mixins.CfnAccessPointPropsMixin.AccessPointTagProperty( key="key", value="value" )], client_token="clientToken", file_system_id="fileSystemId", posix_user=efs_mixins.CfnAccessPointPropsMixin.PosixUserProperty( gid="gid", secondary_gids=["secondaryGids"], uid="uid" ), root_directory=efs_mixins.CfnAccessPointPropsMixin.RootDirectoryProperty( creation_info=efs_mixins.CfnAccessPointPropsMixin.CreationInfoProperty( owner_gid="ownerGid", owner_uid="ownerUid", permissions="permissions" ), path="path" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::EFS::AccessPoint.- Parameters:
props (
Union[CfnAccessPointMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['accessPointTags', 'clientToken', 'fileSystemId', 'posixUser', 'rootDirectory']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AccessPointTagProperty
- class CfnAccessPointPropsMixin.AccessPointTagProperty(*, key=None, value=None)
Bases:
objectA tag is a key-value pair attached to a file system.
Allowed characters in the
KeyandValueproperties are letters, white space, and numbers that can be represented in UTF-8, and the following characters:+ - = . _ : /- Parameters:
key (
Optional[str]) – The tag key (String). The key can’t start withaws:.value (
Optional[str]) – The value of the tag key.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_efs import mixins as efs_mixins access_point_tag_property = efs_mixins.CfnAccessPointPropsMixin.AccessPointTagProperty( key="key", value="value" )
Attributes
- key
The tag key (String).
The key can’t start with
aws:.
CreationInfoProperty
- class CfnAccessPointPropsMixin.CreationInfoProperty(*, owner_gid=None, owner_uid=None, permissions=None)
Bases:
objectRequired if the
RootDirectory>Pathspecified does not exist.Specifies the POSIX IDs and permissions to apply to the access point’s
RootDirectory>Path. If the access point root directory does not exist, EFS creates it with these settings when a client connects to the access point. When specifyingCreationInfo, you must include values for all properties.Amazon EFS creates a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and permissions for the directory. If you do not provide this information, Amazon EFS does not create the root directory. If the root directory does not exist, attempts to mount using the access point will fail. .. epigraph:
If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` does not exist, attempts to mount the file system using the access point will fail.
- Parameters:
owner_gid (
Optional[str]) – Specifies the POSIX group ID to apply to theRootDirectory. Accepts values from 0 to 2^32 (4294967295).owner_uid (
Optional[str]) – Specifies the POSIX user ID to apply to theRootDirectory. Accepts values from 0 to 2^32 (4294967295).permissions (
Optional[str]) – Specifies the POSIX permissions to apply to theRootDirectory, in the format of an octal number representing the file’s mode bits.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_efs import mixins as efs_mixins creation_info_property = efs_mixins.CfnAccessPointPropsMixin.CreationInfoProperty( owner_gid="ownerGid", owner_uid="ownerUid", permissions="permissions" )
Attributes
- owner_gid
Specifies the POSIX group ID to apply to the
RootDirectory.Accepts values from 0 to 2^32 (4294967295).
- owner_uid
Specifies the POSIX user ID to apply to the
RootDirectory.Accepts values from 0 to 2^32 (4294967295).
- permissions
Specifies the POSIX permissions to apply to the
RootDirectory, in the format of an octal number representing the file’s mode bits.
PosixUserProperty
- class CfnAccessPointPropsMixin.PosixUserProperty(*, gid=None, secondary_gids=None, uid=None)
Bases:
objectThe 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.
- Parameters:
gid (
Optional[str]) – The POSIX group ID used for all file system operations using this access point.secondary_gids (
Optional[Sequence[str]]) – Secondary POSIX group IDs used for all file system operations using this access point.uid (
Optional[str]) – The POSIX user ID used for all file system operations using this access point.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_efs import mixins as efs_mixins posix_user_property = efs_mixins.CfnAccessPointPropsMixin.PosixUserProperty( gid="gid", secondary_gids=["secondaryGids"], uid="uid" )
Attributes
- gid
The POSIX group ID used for all file system operations using this access point.
- secondary_gids
Secondary POSIX group IDs used for all file system operations using this access point.
- uid
The POSIX user ID used for all file system operations using this access point.
RootDirectoryProperty
- class CfnAccessPointPropsMixin.RootDirectoryProperty(*, creation_info=None, path=None)
Bases:
objectSpecifies 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
RootDirectoryand its subdirectories.- Parameters:
creation_info (
Union[IResolvable,CreationInfoProperty,Dict[str,Any],None]) – (Optional) Specifies the POSIX IDs and permissions to apply to the access point’sRootDirectory. If theRootDirectory>Pathspecified does not exist, EFS creates the root directory using theCreationInfosettings when a client connects to an access point. When specifying theCreationInfo, you must provide values for all properties. .. epigraph:: If you do not provideCreationInfoand the specifiedRootDirectory>Pathdoes not exist, attempts to mount the file system using the access point will fail.path (
Optional[str]) – Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide theCreationInfo.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_efs import mixins as efs_mixins root_directory_property = efs_mixins.CfnAccessPointPropsMixin.RootDirectoryProperty( creation_info=efs_mixins.CfnAccessPointPropsMixin.CreationInfoProperty( owner_gid="ownerGid", owner_uid="ownerUid", permissions="permissions" ), path="path" )
Attributes
- creation_info
(Optional) Specifies the POSIX IDs and permissions to apply to the access point’s
RootDirectory.If the
RootDirectory>Pathspecified does not exist, EFS creates the root directory using theCreationInfosettings when a client connects to an access point. When specifying theCreationInfo, you must provide values for all properties. .. epigraph:If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` > ``Path`` does not exist, attempts to mount the file system using the access point will fail.
- path
Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system.
A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the
CreationInfo.