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();
 - 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLocationEFS.Ec2ConfigPropertystatic final classAn implementation forCfnLocationEFS.Ec2ConfigProperty - 
Method Summary
Modifier and TypeMethodDescriptionbuilder()Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Method Details
- 
getSecurityGroupArns
Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target. - 
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
 
 -