EfsFileSystemLocationProps
- class aws_cdk.aws_codebuild.EfsFileSystemLocationProps(*, identifier, location, mount_point, mount_options=None)
Bases:
object
Construction properties for
EfsFileSystemLocation
.- Parameters:
identifier (
str
) – The name used to access a file system created by Amazon EFS.location (
str
) – A string that specifies the location of the file system, like Amazon EFS. This value looks likefs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory
.mount_point (
str
) – The location in the container where you mount the file system.mount_options (
Optional
[str
]) – The mount options for a file system such as Amazon EFS. Default: ‘nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2’.
- ExampleMetadata:
infused
Example:
codebuild.Project(self, "MyProject", build_spec=codebuild.BuildSpec.from_object({ "version": "0.2" }), file_system_locations=[ codebuild.FileSystemLocation.efs( identifier="myidentifier2", location="myclodation.mydnsroot.com:/loc", mount_point="/media", mount_options="opts" ) ] )
Attributes
- identifier
The name used to access a file system created by Amazon EFS.
- location
A string that specifies the location of the file system, like Amazon EFS.
This value looks like
fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory
.
- mount_options
The mount options for a file system such as Amazon EFS.
- Default:
‘nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2’.
- mount_point
The location in the container where you mount the file system.