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