Interface NodegroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,NodegroupOptions
- All Known Implementing Classes:
NodegroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.487Z")
@Stability(Stable)
public interface NodegroupProps
extends software.amazon.jsii.JsiiSerializable, NodegroupOptions
NodeGroup properties interface.
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.*; import software.amazon.awscdk.services.iam.*; Cluster cluster; InstanceType instanceType; Role role; SecurityGroup securityGroup; Subnet subnet; SubnetFilter subnetFilter; NodegroupProps nodegroupProps = NodegroupProps.builder() .cluster(cluster) // the properties below are optional .amiType(NodegroupAmiType.AL2_X86_64) .capacityType(CapacityType.SPOT) .desiredSize(123) .diskSize(123) .forceUpdate(false) .instanceTypes(List.of(instanceType)) .labels(Map.of( "labelsKey", "labels")) .launchTemplateSpec(LaunchTemplateSpec.builder() .id("id") // the properties below are optional .version("version") .build()) .maxSize(123) .maxUnavailable(123) .maxUnavailablePercentage(123) .minSize(123) .nodegroupName("nodegroupName") .nodeRole(role) .releaseVersion("releaseVersion") .remoteAccess(NodegroupRemoteAccess.builder() .sshKeyName("sshKeyName") // the properties below are optional .sourceSecurityGroups(List.of(securityGroup)) .build()) .subnets(SubnetSelection.builder() .availabilityZones(List.of("availabilityZones")) .onePerAz(false) .subnetFilters(List.of(subnetFilter)) .subnetGroupName("subnetGroupName") .subnets(List.of(subnet)) .subnetType(SubnetType.PRIVATE_ISOLATED) .build()) .tags(Map.of( "tagsKey", "tags")) .taints(List.of(TaintSpec.builder() .effect(TaintEffect.NO_SCHEDULE) .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNodegroupProps
static final class
An implementation forNodegroupProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.eks.NodegroupOptions
getAmiType, getCapacityType, getDesiredSize, getDiskSize, getForceUpdate, getInstanceTypes, getLabels, getLaunchTemplateSpec, getMaxSize, getMaxUnavailable, getMaxUnavailablePercentage, getMinSize, getNodegroupName, getNodeRole, getReleaseVersion, getRemoteAccess, getSubnets, getTags, getTaints
-
Method Details
-
getCluster
Cluster resource. -
builder
- Returns:
- a
NodegroupProps.Builder
ofNodegroupProps
-