Interface NodegroupRemoteAccess
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NodegroupRemoteAccess.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.488Z")
@Stability(Stable)
public interface NodegroupRemoteAccess
extends software.amazon.jsii.JsiiSerializable
The remote access (SSH) configuration to use with your node group.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; import software.amazon.awscdk.services.eks.*; SecurityGroup securityGroup; NodegroupRemoteAccess nodegroupRemoteAccess = NodegroupRemoteAccess.builder() .sshKeyName("sshKeyName") // the properties below are optional .sourceSecurityGroups(List.of(securityGroup)) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNodegroupRemoteAccess
static final class
An implementation forNodegroupRemoteAccess
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default List<ISecurityGroup>
The security groups that are allowed SSH access (port 22) to the worker nodes.The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSshKeyName
The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group. -
getSourceSecurityGroups
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).
Default: - port 22 on the worker nodes is opened to the internet (0.0.0.0/0)
-
builder
- Returns:
- a
NodegroupRemoteAccess.Builder
ofNodegroupRemoteAccess
-