Class CfnLocationEFS.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationEFS.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationEFS>
- Enclosing class:
CfnLocationEFS
@Stability(Stable)
public static final class CfnLocationEFS.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationEFS>
A fluent builder for
CfnLocationEFS
.-
Method Summary
Modifier and TypeMethodDescriptionaccessPointArn
(String accessPointArn) Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.build()
static CfnLocationEFS.Builder
ec2Config
(IResolvable ec2Config) Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.ec2Config
(CfnLocationEFS.Ec2ConfigProperty ec2Config) Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.efsFilesystemArn
(String efsFilesystemArn) Specifies the ARN for the Amazon EFS file system.fileSystemAccessRoleArn
(String fileSystemAccessRoleArn) Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.inTransitEncryption
(String inTransitEncryption) Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.subdirectory
(String subdirectory) Specifies a mount path for your Amazon EFS file system.Specifies the key-value pair that represents a tag that you want to add to the resource.
-
Method Details
-
create
@Stability(Stable) public static CfnLocationEFS.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLocationEFS.Builder
.
-
ec2Config
Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.- Parameters:
ec2Config
- Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
ec2Config
@Stability(Stable) public CfnLocationEFS.Builder ec2Config(CfnLocationEFS.Ec2ConfigProperty ec2Config) Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.- Parameters:
ec2Config
- Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
accessPointArn
Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.- Parameters:
accessPointArn
- Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
efsFilesystemArn
Specifies the ARN for the Amazon EFS file system.- Parameters:
efsFilesystemArn
- Specifies the ARN for the Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
fileSystemAccessRoleArn
@Stability(Stable) public CfnLocationEFS.Builder fileSystemAccessRoleArn(String fileSystemAccessRoleArn) Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.- Parameters:
fileSystemAccessRoleArn
- Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
inTransitEncryption
Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.If you specify an access point using
AccessPointArn
or an IAM role usingFileSystemAccessRoleArn
, you must set this parameter toTLS1_2
.- Parameters:
inTransitEncryption
- Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
subdirectory
Specifies a mount path for your Amazon EFS file system.This is where DataSync reads or writes data (depending on if this is a source or destination location). By default, DataSync uses the root directory, but you can also include subdirectories.
You must specify a value with forward slashes (for example,
/path/to/folder
).- Parameters:
subdirectory
- Specifies a mount path for your Amazon EFS file system. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
tags
- Specifies the key-value pair that represents a tag that you want to add to the resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocationEFS>
- Returns:
- a newly built instance of
CfnLocationEFS
.
-