Class CfnNodegroupPropsMixin.RemoteAccessProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnNodegroupPropsMixin.RemoteAccessProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroupPropsMixin.RemoteAccessProperty>
- Enclosing interface:
CfnNodegroupPropsMixin.RemoteAccessProperty
@Stability(Stable)
public static final class CfnNodegroupPropsMixin.RemoteAccessProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroupPropsMixin.RemoteAccessProperty>
A builder for
CfnNodegroupPropsMixin.RemoteAccessProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNodegroupPropsMixin.RemoteAccessProperty.getEc2SshKey()sourceSecurityGroups(List<String> sourceSecurityGroups) Sets the value ofCfnNodegroupPropsMixin.RemoteAccessProperty.getSourceSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ec2SshKey
@Stability(Stable) public CfnNodegroupPropsMixin.RemoteAccessProperty.Builder ec2SshKey(String ec2SshKey) Sets the value ofCfnNodegroupPropsMixin.RemoteAccessProperty.getEc2SshKey()- Parameters:
ec2SshKey- The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. For more information, see Amazon EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances . For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances .- Returns:
this
-
sourceSecurityGroups
@Stability(Stable) public CfnNodegroupPropsMixin.RemoteAccessProperty.Builder sourceSecurityGroups(List<String> sourceSecurityGroups) Sets the value ofCfnNodegroupPropsMixin.RemoteAccessProperty.getSourceSecurityGroups()- Parameters:
sourceSecurityGroups- The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port 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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodegroupPropsMixin.RemoteAccessProperty>- Returns:
- a new instance of
CfnNodegroupPropsMixin.RemoteAccessProperty - Throws:
NullPointerException- if any required attribute was not provided
-