FileSystemLocation

class aws_cdk.aws_codebuild.FileSystemLocation

Bases: object

FileSystemLocation provider definition for a CodeBuild Project.

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"
        )
    ]
)

Static Methods

classmethod efs(*, identifier, location, mount_point, mount_options=None)

EFS file system provider.

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 like fs-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’.

Return type:

IFileSystemLocation