aws-cdk-lib.aws_codebuild.EfsFileSystemLocationProps

interface EfsFileSystemLocationProps

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.EfsFileSystemLocationProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#EfsFileSystemLocationProps
Javasoftware.amazon.awscdk.services.codebuild.EfsFileSystemLocationProps
Pythonaws_cdk.aws_codebuild.EfsFileSystemLocationProps
TypeScript (source)aws-cdk-lib » aws_codebuild » EfsFileSystemLocationProps

Construction properties for EfsFileSystemLocation.

Example

new codebuild.Project(this, 'MyProject', {
  buildSpec: codebuild.BuildSpec.fromObject({
    version: '0.2',
  }),
  fileSystemLocations: [
    codebuild.FileSystemLocation.efs({
      identifier: "myidentifier2",
      location: "myclodation.mydnsroot.com:/loc",
      mountPoint: "/media",
      mountOptions: "opts"
    })
  ]
});

Properties

NameTypeDescription
identifierstringThe name used to access a file system created by Amazon EFS.
locationstringA string that specifies the location of the file system, like Amazon EFS.
mountPointstringThe location in the container where you mount the file system.
mountOptions?stringThe mount options for a file system such as Amazon EFS.

identifier

Type: string

The name used to access a file system created by Amazon EFS.


location

Type: string

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.


mountPoint

Type: string

The location in the container where you mount the file system.


mountOptions?

Type: string (optional, default: 'nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2'.)

The mount options for a file system such as Amazon EFS.