/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EKS { namespace Model { /** *

An object representing the remote access configuration for the managed node * group.

See Also:

AWS * API Reference

*/ class RemoteAccessConfig { public: AWS_EKS_API RemoteAccessConfig(); AWS_EKS_API RemoteAccessConfig(Aws::Utils::Json::JsonView jsonValue); AWS_EKS_API RemoteAccessConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetEc2SshKey() const{ return m_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.

*/ inline bool Ec2SshKeyHasBeenSet() const { return m_ec2SshKeyHasBeenSet; } /** *

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.

*/ inline void SetEc2SshKey(const Aws::String& value) { m_ec2SshKeyHasBeenSet = true; m_ec2SshKey = value; } /** *

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.

*/ inline void SetEc2SshKey(Aws::String&& value) { m_ec2SshKeyHasBeenSet = true; m_ec2SshKey = std::move(value); } /** *

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.

*/ inline void SetEc2SshKey(const char* value) { m_ec2SshKeyHasBeenSet = true; m_ec2SshKey.assign(value); } /** *

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.

*/ inline RemoteAccessConfig& WithEc2SshKey(const Aws::String& value) { SetEc2SshKey(value); return *this;} /** *

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.

*/ inline RemoteAccessConfig& WithEc2SshKey(Aws::String&& value) { SetEc2SshKey(std::move(value)); return *this;} /** *

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.

*/ inline RemoteAccessConfig& WithEc2SshKey(const char* value) { SetEc2SshKey(value); 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.

*/ inline const Aws::Vector& GetSourceSecurityGroups() const{ return m_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.

*/ inline bool SourceSecurityGroupsHasBeenSet() const { return m_sourceSecurityGroupsHasBeenSet; } /** *

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.

*/ inline void SetSourceSecurityGroups(const Aws::Vector& value) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups = value; } /** *

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.

*/ inline void SetSourceSecurityGroups(Aws::Vector&& value) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups = std::move(value); } /** *

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.

*/ inline RemoteAccessConfig& WithSourceSecurityGroups(const Aws::Vector& value) { SetSourceSecurityGroups(value); 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.

*/ inline RemoteAccessConfig& WithSourceSecurityGroups(Aws::Vector&& value) { SetSourceSecurityGroups(std::move(value)); 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.

*/ inline RemoteAccessConfig& AddSourceSecurityGroups(const Aws::String& value) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups.push_back(value); 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.

*/ inline RemoteAccessConfig& AddSourceSecurityGroups(Aws::String&& value) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups.push_back(std::move(value)); 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.

*/ inline RemoteAccessConfig& AddSourceSecurityGroups(const char* value) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups.push_back(value); return *this; } private: Aws::String m_ec2SshKey; bool m_ec2SshKeyHasBeenSet = false; Aws::Vector m_sourceSecurityGroups; bool m_sourceSecurityGroupsHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws