Class CfnLocationEFSMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationEFSMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationEFSMixinProps>
- Enclosing interface:
CfnLocationEFSMixinProps
@Stability(Stable)
public static final class CfnLocationEFSMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationEFSMixinProps>
A builder for
CfnLocationEFSMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessPointArn(String accessPointArn) Sets the value ofCfnLocationEFSMixinProps.getAccessPointArn()build()Builds the configured instance.Sets the value ofCfnLocationEFSMixinProps.getEc2Config()ec2Config(IResolvable ec2Config) Sets the value ofCfnLocationEFSMixinProps.getEc2Config()efsFilesystemArn(String efsFilesystemArn) Sets the value ofCfnLocationEFSMixinProps.getEfsFilesystemArn()efsFilesystemArn(IFileSystemRef efsFilesystemArn) Sets the value ofCfnLocationEFSMixinProps.getEfsFilesystemArn()fileSystemAccessRoleArn(String fileSystemAccessRoleArn) Sets the value ofCfnLocationEFSMixinProps.getFileSystemAccessRoleArn()inTransitEncryption(String inTransitEncryption) Sets the value ofCfnLocationEFSMixinProps.getInTransitEncryption()subdirectory(String subdirectory) Sets the value ofCfnLocationEFSMixinProps.getSubdirectory()Sets the value ofCfnLocationEFSMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPointArn
Sets the value ofCfnLocationEFSMixinProps.getAccessPointArn()- Parameters:
accessPointArn- Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system. For more information, see Accessing restricted file systems .- Returns:
this
-
ec2Config
Sets the value ofCfnLocationEFSMixinProps.getEc2Config()- Parameters:
ec2Config- Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's mount targets .- Returns:
this
-
ec2Config
@Stability(Stable) public CfnLocationEFSMixinProps.Builder ec2Config(CfnLocationEFSPropsMixin.Ec2ConfigProperty ec2Config) Sets the value ofCfnLocationEFSMixinProps.getEc2Config()- Parameters:
ec2Config- Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's mount targets .- Returns:
this
-
efsFilesystemArn
@Stability(Stable) public CfnLocationEFSMixinProps.Builder efsFilesystemArn(String efsFilesystemArn) Sets the value ofCfnLocationEFSMixinProps.getEfsFilesystemArn()- Parameters:
efsFilesystemArn- Specifies the ARN for your Amazon EFS file system.- Returns:
this
-
efsFilesystemArn
@Stability(Stable) public CfnLocationEFSMixinProps.Builder efsFilesystemArn(IFileSystemRef efsFilesystemArn) Sets the value ofCfnLocationEFSMixinProps.getEfsFilesystemArn()- Parameters:
efsFilesystemArn- Specifies the ARN for your Amazon EFS file system.- Returns:
this
-
fileSystemAccessRoleArn
@Stability(Stable) public CfnLocationEFSMixinProps.Builder fileSystemAccessRoleArn(String fileSystemAccessRoleArn) Sets the value ofCfnLocationEFSMixinProps.getFileSystemAccessRoleArn()- Parameters:
fileSystemAccessRoleArn- Specifies an AWS Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system. For information on creating this role, see Creating a DataSync IAM role for file system access .- Returns:
this
-
inTransitEncryption
@Stability(Stable) public CfnLocationEFSMixinProps.Builder inTransitEncryption(String inTransitEncryption) Sets the value ofCfnLocationEFSMixinProps.getInTransitEncryption()- Parameters:
inTransitEncryption- Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system. If you specify an access point usingAccessPointArnor an IAM role usingFileSystemAccessRoleArn, you must set this parameter toTLS1_2.- Returns:
this
-
subdirectory
Sets the value ofCfnLocationEFSMixinProps.getSubdirectory()- Parameters:
subdirectory- Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).By default, DataSync uses the root directory (or access point if you provide one by using
AccessPointArn). You can also include subdirectories using forward slashes (for example,/path/to/folder).- Returns:
this
-
tags
Sets the value ofCfnLocationEFSMixinProps.getTags()- Parameters:
tags- Specifies 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationEFSMixinProps>- Returns:
- a new instance of
CfnLocationEFSMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-