@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2Config extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Ec2Config() |
Modifier and Type | Method and Description |
---|---|
Ec2Config |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
String |
getSubnetArn()
The ARN of the subnet that the Amazon EC2 resource belongs in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
void |
setSubnetArn(String subnetArn)
The ARN of the subnet that the Amazon EC2 resource belongs in.
|
String |
toString()
Returns a string representation of this object.
|
Ec2Config |
withSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
Ec2Config |
withSecurityGroupArns(String... securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
Ec2Config |
withSubnetArn(String subnetArn)
The ARN of the subnet that the Amazon EC2 resource belongs in.
|
public void setSubnetArn(String subnetArn)
The ARN of the subnet that the Amazon EC2 resource belongs in.
subnetArn
- The ARN of the subnet that the Amazon EC2 resource belongs in.public String getSubnetArn()
The ARN of the subnet that the Amazon EC2 resource belongs in.
public Ec2Config withSubnetArn(String subnetArn)
The ARN of the subnet that the Amazon EC2 resource belongs in.
subnetArn
- The ARN of the subnet that the Amazon EC2 resource belongs in.public List<String> getSecurityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
public void setSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.public Ec2Config withSecurityGroupArns(String... securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupArns(java.util.Collection)
or withSecurityGroupArns(java.util.Collection)
if
you want to override the existing values.
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.public Ec2Config withSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.