/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object representing the remote access configuration for the managed node
* group.See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe 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::VectorThe 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::VectorThe 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::VectorThe 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