/** * 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 AWS_EKS_API RemoteAccessConfig { public: RemoteAccessConfig(); RemoteAccessConfig(Aws::Utils::Json::JsonView jsonValue); RemoteAccessConfig& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

*/ inline const Aws::String& GetEc2SshKey() const{ return m_ec2SshKey; } /** *

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The Amazon EC2 SSH key that provides access for SSH communication with the * worker 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.

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

The security groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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 groups that are allowed SSH access (port 22) to the worker * 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 worker 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; Aws::Vector m_sourceSecurityGroups; bool m_sourceSecurityGroupsHasBeenSet; }; } // namespace Model } // namespace EKS } // namespace Aws