@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RemoteAccessConfig extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the remote access configuration for the managed node group.
Constructor and Description |
---|
RemoteAccessConfig() |
Modifier and Type | Method and Description |
---|---|
RemoteAccessConfig |
clone() |
boolean |
equals(Object obj) |
String |
getEc2SshKey()
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group.
|
List<String> |
getSourceSecurityGroups()
The security groups that are allowed SSH access (port 22) to the nodes.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEc2SshKey(String ec2SshKey)
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group.
|
void |
setSourceSecurityGroups(Collection<String> sourceSecurityGroups)
The security groups that are allowed SSH access (port 22) to the nodes.
|
String |
toString()
Returns a string representation of this object.
|
RemoteAccessConfig |
withEc2SshKey(String ec2SshKey)
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group.
|
RemoteAccessConfig |
withSourceSecurityGroups(Collection<String> sourceSecurityGroups)
The security groups that are allowed SSH access (port 22) to the nodes.
|
RemoteAccessConfig |
withSourceSecurityGroups(String... sourceSecurityGroups)
The security groups that are allowed SSH access (port 22) to the nodes.
|
public void setEc2SshKey(String ec2SshKey)
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide for Linux Instances.
ec2SshKey
- The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node
group. For more information, see Amazon EC2 Key Pairs in
the Amazon Elastic Compute Cloud User Guide for Linux Instances.public String getEc2SshKey()
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide for Linux Instances.
public RemoteAccessConfig withEc2SshKey(String ec2SshKey)
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide for Linux Instances.
ec2SshKey
- The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node
group. For more information, see Amazon EC2 Key Pairs in
the Amazon Elastic Compute Cloud User Guide for Linux Instances.public List<String> getSourceSecurityGroups()
The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
public void setSourceSecurityGroups(Collection<String> sourceSecurityGroups)
The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
sourceSecurityGroups
- The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH
key but do not specify a source security group when you create a managed node group, then port 22 on the
nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your
VPC in the Amazon Virtual Private Cloud User Guide.public RemoteAccessConfig withSourceSecurityGroups(String... sourceSecurityGroups)
The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setSourceSecurityGroups(java.util.Collection)
or withSourceSecurityGroups(java.util.Collection)
if you want to override the existing values.
sourceSecurityGroups
- The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH
key but do not specify a source security group when you create a managed node group, then port 22 on the
nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your
VPC in the Amazon Virtual Private Cloud User Guide.public RemoteAccessConfig withSourceSecurityGroups(Collection<String> sourceSecurityGroups)
The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.
sourceSecurityGroups
- The security groups that are allowed SSH access (port 22) to the nodes. If you specify an Amazon EC2 SSH
key but do not specify a source security group when you create a managed node group, then port 22 on the
nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your
VPC in the Amazon Virtual Private Cloud User Guide.public String toString()
toString
in class Object
Object.toString()
public RemoteAccessConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.