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 Details

    • create

      @Stability(Stable) public static CfnLocationEFS.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLocationEFS.Builder.
    • 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
    • ec2Config

      @Stability(Stable) public CfnLocationEFS.Builder ec2Config(IResolvable 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
    • accessPointArn

      @Stability(Stable) public CfnLocationEFS.Builder accessPointArn(String 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
    • efsFilesystemArn

      @Stability(Stable) public CfnLocationEFS.Builder efsFilesystemArn(String 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
    • 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
    • inTransitEncryption

      @Stability(Stable) public CfnLocationEFS.Builder 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.

      If you specify an access point using AccessPointArn or an IAM role using FileSystemAccessRoleArn , you must set this parameter to TLS1_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
    • subdirectory

      @Stability(Stable) public CfnLocationEFS.Builder subdirectory(String 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
    • tags

      @Stability(Stable) public CfnLocationEFS.Builder tags(List<? extends CfnTag> 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
    • build

      @Stability(Stable) public CfnLocationEFS build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLocationEFS>
      Returns:
      a newly built instance of CfnLocationEFS.