/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.eks.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object representing the remote access configuration for the managed node group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RemoteAccessConfig implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. * For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. * For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows * instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. *
*/ private String ec2SshKey; /** *
* The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you
* specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group,
* then the port 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.
*
* The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. * For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. * For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows * instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. *
* * @param ec2SshKey * The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node * group. For more information, see Amazon EC2 key pairs and * Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For * Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and * Windows instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. */ public void setEc2SshKey(String ec2SshKey) { this.ec2SshKey = ec2SshKey; } /** ** The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. * For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. * For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows * instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. *
* * @return The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node * group. For more information, see Amazon EC2 key pairs and * Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For * Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and * Windows instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. */ public String getEc2SshKey() { return this.ec2SshKey; } /** ** The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. * For more information, see Amazon * EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. * For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows * instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. *
* * @param ec2SshKey * The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node * group. For more information, see Amazon EC2 key pairs and * Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For * Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and * Windows instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessConfig withEc2SshKey(String ec2SshKey) { setEc2SshKey(ec2SshKey); return this; } /** *
* The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you
* specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group,
* then the port 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.
*
0.0.0.0/0
). For more
* information, see Security Groups for Your
* VPC in the Amazon Virtual Private Cloud User Guide.
*/
public java.util.List
* The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you
* specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group,
* then the port 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.
*
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(java.util.Collection
* The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you
* specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group,
* then the port 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 * {@link #setSourceSecurityGroups(java.util.Collection)} or {@link #withSourceSecurityGroups(java.util.Collection)} * if you want to override the existing values. *
* * @param sourceSecurityGroups * The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. * If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed * node group, then the port 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RemoteAccessConfig withSourceSecurityGroups(String... sourceSecurityGroups) {
if (this.sourceSecurityGroups == null) {
setSourceSecurityGroups(new java.util.ArrayList
* The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you
* specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group,
* then the port 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.
*
0.0.0.0/0
). For more
* information, see Security Groups for Your
* VPC in the Amazon Virtual Private Cloud User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RemoteAccessConfig withSourceSecurityGroups(java.util.Collection