@Stability(value=Stable)
public static interface CfnNodegroup.RemoteAccessProperty
extends software.amazon.jsii.JsiiSerializable
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.eks.*;
RemoteAccessProperty remoteAccessProperty = RemoteAccessProperty.builder()
.ec2SshKey("ec2SshKey")
// the properties below are optional
.sourceSecurityGroups(List.of("sourceSecurityGroups"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnNodegroup.RemoteAccessProperty.Builder
A builder for
CfnNodegroup.RemoteAccessProperty |
static class |
CfnNodegroup.RemoteAccessProperty.Jsii$Proxy
An implementation for
CfnNodegroup.RemoteAccessProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnNodegroup.RemoteAccessProperty.Builder |
builder() |
String |
getEc2SshKey()
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group.
|
default List<String> |
getSourceSecurityGroups()
The security groups that are allowed SSH access (port 22) to the nodes.
|
@Stability(value=Stable) @NotNull String getEc2SshKey()
For more information, see Amazon EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances .
@Stability(value=Stable) @Nullable default List<String> getSourceSecurityGroups()
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 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 .
@Stability(value=Stable) static CfnNodegroup.RemoteAccessProperty.Builder builder()
Copyright © 2022. All rights reserved.