public static interface CfnNodegroup.RemoteAccessProperty
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() |
java.lang.String |
getEc2SshKey()
The Amazon EC2 SSH key that provides access for SSH communication with the nodes in the managed node group.
|
default java.util.List<java.lang.String> |
getSourceSecurityGroups()
The security groups that are allowed SSH access (port 22) to the nodes.
|
java.lang.String getEc2SshKey()
For more information, see Amazon EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances .
default java.util.List<java.lang.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 .
static CfnNodegroup.RemoteAccessProperty.Builder builder()