Class CfnNodegroup.RemoteAccessProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnNodegroup.RemoteAccessProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroup.RemoteAccessProperty>
- Enclosing interface:
CfnNodegroup.RemoteAccessProperty
@Stability(Stable)
public static final class CfnNodegroup.RemoteAccessProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroup.RemoteAccessProperty>
A builder for
CfnNodegroup.RemoteAccessProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnNodegroup.RemoteAccessProperty.getEc2SshKey()
sourceSecurityGroups
(List<String> sourceSecurityGroups) Sets the value ofCfnNodegroup.RemoteAccessProperty.getSourceSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ec2SshKey
Sets the value ofCfnNodegroup.RemoteAccessProperty.getEc2SshKey()
- Parameters:
ec2SshKey
- The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. This parameter is required. 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 .- Returns:
this
-
sourceSecurityGroups
@Stability(Stable) public CfnNodegroup.RemoteAccessProperty.Builder sourceSecurityGroups(List<String> sourceSecurityGroups) Sets the value ofCfnNodegroup.RemoteAccessProperty.getSourceSecurityGroups()
- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNodegroup.RemoteAccessProperty>
- Returns:
- a new instance of
CfnNodegroup.RemoteAccessProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-