@Generated(value="software.amazon.awssdk:codegen") public final class Ec2Config extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Ec2Config.Builder,Ec2Config>
The subnet and the security group that the target Amazon EFS file system uses. The subnet must have at least one mount target for that file system. The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
Security group M (which you associate with the mount target) must allow inbound access for the Transmission Control Protocol (TCP) on the NFS port (2049) from security group S. You can enable inbound connections either by IP address (CIDR range) or security group.
Security group S (provided to DataSync to access EFS) should have a rule that enables outbound connections to the NFS port on one of the file system’s mount targets. You can enable outbound connections either by IP address (CIDR range) or security group. For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
Modifier and Type | Class and Description |
---|---|
static interface |
Ec2Config.Builder |
Modifier and Type | Method and Description |
---|---|
static Ec2Config.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
static Class<? extends Ec2Config.Builder> |
serializableBuilderClass() |
String |
subnetArn()
The ARN of the subnet that the Amazon EC2 resource belongs in.
|
Ec2Config.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String subnetArn()
The ARN of the subnet that the Amazon EC2 resource belongs in.
public List<String> securityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Ec2Config.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Ec2Config.Builder,Ec2Config>
public static Ec2Config.Builder builder()
public static Class<? extends Ec2Config.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.