EfsFileSystemLocationProps Struct
Construction properties for EfsFileSystemLocation.
Example
ts
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"
})
]
});
python
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"
)
]
)
java
Project.Builder.create(this, "MyProject")
.buildSpec(BuildSpec.fromObject(Map.of(
"version", "0.2")))
.fileSystemLocations(List.of(FileSystemLocation.efs(EfsFileSystemLocationProps.builder()
.identifier("myidentifier2")
.location("myclodation.mydnsroot.com:/loc")
.mountPoint("/media")
.mountOptions("opts")
.build())))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new Project(this, "MyProject", new ProjectProps {
BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {
{ "version", "0.2" }
}),
FileSystemLocations = new [] { FileSystemLocation.Efs(new EfsFileSystemLocationProps {
Identifier = "myidentifier2",
Location = "myclodation.mydnsroot.com:/loc",
MountPoint = "/media",
MountOptions = "opts"
}) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
codebuild.NewProject(this, jsii.String("MyProject"), &ProjectProps{
BuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{
"version": jsii.String("0.2"),
}),
FileSystemLocations: []IFileSystemLocation{
codebuild.FileSystemLocation_Efs(&EfsFileSystemLocationProps{
Identifier: jsii.String("myidentifier2"),
Location: jsii.String("myclodation.mydnsroot.com:/loc"),
MountPoint: jsii.String("/media"),
MountOptions: jsii.String("opts"),
}),
},
})
Properties
The name used to access a file system created by Amazon EFS.
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.
mountOptionsoptionalstringmount_optionsoptionalstrmountOptionsoptionalStringMountOptionsoptionalstringMountOptionsoptional*string#The mount options for a file system such as Amazon EFS.
Default: 'nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2'.
The location in the container where you mount the file system.