public static final class CfnLocationEFSProps.Builder
extends java.lang.Object
CfnLocationEFSProps
Constructor and Description |
---|
Builder() |
public CfnLocationEFSProps.Builder ec2Config(CfnLocationEFS.Ec2ConfigProperty ec2Config)
CfnLocationEFSProps.getEc2Config()
ec2Config
- The subnet and security group that the Amazon EFS file system uses. This parameter is required.
The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
this
public CfnLocationEFSProps.Builder ec2Config(IResolvable ec2Config)
CfnLocationEFSProps.getEc2Config()
ec2Config
- The subnet and security group that the Amazon EFS file system uses. This parameter is required.
The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
this
public CfnLocationEFSProps.Builder efsFilesystemArn(java.lang.String efsFilesystemArn)
CfnLocationEFSProps.getEfsFilesystemArn()
efsFilesystemArn
- The Amazon Resource Name (ARN) for the Amazon EFS file system. This parameter is required.this
public CfnLocationEFSProps.Builder accessPointArn(java.lang.String accessPointArn)
CfnLocationEFSProps.getAccessPointArn()
accessPointArn
- `AWS::DataSync::LocationEFS.AccessPointArn`.this
public CfnLocationEFSProps.Builder fileSystemAccessRoleArn(java.lang.String fileSystemAccessRoleArn)
CfnLocationEFSProps.getFileSystemAccessRoleArn()
fileSystemAccessRoleArn
- `AWS::DataSync::LocationEFS.FileSystemAccessRoleArn`.this
public CfnLocationEFSProps.Builder inTransitEncryption(java.lang.String inTransitEncryption)
CfnLocationEFSProps.getInTransitEncryption()
inTransitEncryption
- `AWS::DataSync::LocationEFS.InTransitEncryption`.this
public CfnLocationEFSProps.Builder subdirectory(java.lang.String subdirectory)
CfnLocationEFSProps.getSubdirectory()
subdirectory
- A subdirectory in the location’s path.
This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination. By default, AWS DataSync uses the root directory.
Subdirectory
must be specified with forward slashes. For example,/path/to/folder
.
this
public CfnLocationEFSProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnLocationEFSProps.getTags()
tags
- The key-value pair that represents a tag that you want to add to the resource.
The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.this
public CfnLocationEFSProps build()
CfnLocationEFSProps
java.lang.NullPointerException
- if any required attribute was not provided