Interface CfnLocationEFS.Ec2ConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLocationEFS.Ec2ConfigProperty.Jsii$Proxy
Enclosing class:
CfnLocationEFS

@Stability(Stable) public static interface CfnLocationEFS.Ec2ConfigProperty extends software.amazon.jsii.JsiiSerializable
The subnet and security groups that AWS DataSync uses to access your Amazon EFS file system.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.datasync.*;
 Ec2ConfigProperty ec2ConfigProperty = Ec2ConfigProperty.builder()
         .securityGroupArns(List.of("securityGroupArns"))
         .subnetArn("subnetArn")
         .build();
 
  • Method Details

    • getSecurityGroupArns

      @Stability(Stable) @NotNull List<String> getSecurityGroupArns()
      Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
    • getSubnetArn

      @Stability(Stable) @NotNull String getSubnetArn()
      Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.

      The subnet must be located:

      • In the same virtual private cloud (VPC) as the Amazon EFS file system.
      • In the same Availability Zone as at least one mount target for the Amazon EFS file system.

      You don't need to specify a subnet that includes a file system mount target.

    • builder

      @Stability(Stable) static CfnLocationEFS.Ec2ConfigProperty.Builder builder()
      Returns:
      a CfnLocationEFS.Ec2ConfigProperty.Builder of CfnLocationEFS.Ec2ConfigProperty