@Stability(value=Stable) public static final class CfnProject.ProjectFileSystemLocationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnProject.ProjectFileSystemLocationProperty>
CfnProject.ProjectFileSystemLocationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnProject.ProjectFileSystemLocationProperty |
build()
Builds the configured instance.
|
CfnProject.ProjectFileSystemLocationProperty.Builder |
identifier(String identifier)
Sets the value of
CfnProject.ProjectFileSystemLocationProperty.getIdentifier() |
CfnProject.ProjectFileSystemLocationProperty.Builder |
location(String location)
Sets the value of
CfnProject.ProjectFileSystemLocationProperty.getLocation() |
CfnProject.ProjectFileSystemLocationProperty.Builder |
mountOptions(String mountOptions)
Sets the value of
CfnProject.ProjectFileSystemLocationProperty.getMountOptions() |
CfnProject.ProjectFileSystemLocationProperty.Builder |
mountPoint(String mountPoint)
Sets the value of
CfnProject.ProjectFileSystemLocationProperty.getMountPoint() |
CfnProject.ProjectFileSystemLocationProperty.Builder |
type(String type)
Sets the value of
CfnProject.ProjectFileSystemLocationProperty.getType() |
@Stability(value=Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder identifier(String identifier)
CfnProject.ProjectFileSystemLocationProperty.getIdentifier()identifier - The name used to access a file system created by Amazon EFS. This parameter is required.
CodeBuild creates an environment variable by appending the identifier in all capital letters to CODEBUILD_ . For example, if you specify my_efs for identifier , a new environment variable is create named CODEBUILD_MY_EFS .
The identifier is used to mount your file system.
this@Stability(value=Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder location(String location)
CfnProject.ProjectFileSystemLocationProperty.getLocation()location - A string that specifies the location of the file system created by Amazon EFS. This parameter is required.
Its format is efs-dns-name:/directory-path . You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system is fs-abcd1234.efs.us-west-2.amazonaws.com , and its mount directory is my-efs-mount-directory , then the location is fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory .
The directory path in the format efs-dns-name:/directory-path is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system.
this@Stability(value=Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder mountPoint(String mountPoint)
CfnProject.ProjectFileSystemLocationProperty.getMountPoint()mountPoint - The location in the container where you mount the file system. This parameter is required.this@Stability(value=Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder type(String type)
CfnProject.ProjectFileSystemLocationProperty.getType()type - The type of the file system. This parameter is required.
The one supported type is EFS .this@Stability(value=Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder mountOptions(String mountOptions)
CfnProject.ProjectFileSystemLocationProperty.getMountOptions()mountOptions - The mount options for a file system created by Amazon EFS.
The default mount options used by CodeBuild are nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 . For more information, see Recommended NFS Mount Options .this@Stability(value=Stable) public CfnProject.ProjectFileSystemLocationProperty build()
build in interface software.amazon.jsii.Builder<CfnProject.ProjectFileSystemLocationProperty>CfnProject.ProjectFileSystemLocationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.