@Stability(value=Stable) public static final class NodegroupRemoteAccess.Builder extends Object implements software.amazon.jsii.Builder<NodegroupRemoteAccess>
NodegroupRemoteAccess| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
NodegroupRemoteAccess |
build()
Builds the configured instance.
|
NodegroupRemoteAccess.Builder |
sourceSecurityGroups(List<? extends ISecurityGroup> sourceSecurityGroups)
Sets the value of
NodegroupRemoteAccess.getSourceSecurityGroups() |
NodegroupRemoteAccess.Builder |
sshKeyName(String sshKeyName)
Sets the value of
NodegroupRemoteAccess.getSshKeyName() |
@Stability(value=Stable) public NodegroupRemoteAccess.Builder sshKeyName(String sshKeyName)
NodegroupRemoteAccess.getSshKeyName()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.this@Stability(value=Stable) public NodegroupRemoteAccess.Builder sourceSecurityGroups(List<? extends ISecurityGroup> sourceSecurityGroups)
NodegroupRemoteAccess.getSourceSecurityGroups()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).this@Stability(value=Stable) public NodegroupRemoteAccess build()
build in interface software.amazon.jsii.Builder<NodegroupRemoteAccess>NodegroupRemoteAccessNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.