All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.eks.kotlin.NodeGroupArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.eks.kotlin

import com.pulumi.aws.eks.NodeGroupArgs.builder
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupLaunchTemplateArgs
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupLaunchTemplateArgsBuilder
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupRemoteAccessArgs
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupRemoteAccessArgsBuilder
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupScalingConfigArgs
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupScalingConfigArgsBuilder
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupTaintArgs
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupTaintArgsBuilder
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupUpdateConfigArgs
import com.pulumi.aws.eks.kotlin.inputs.NodeGroupUpdateConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an EKS Node Group, which can provision and optionally update an Auto Scaling Group of Kubernetes worker nodes compatible with EKS. Additional documentation about this functionality can be found in the [EKS User Guide](https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html).
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.eks.NodeGroup("example", {
 *     clusterName: exampleAwsEksCluster.name,
 *     nodeGroupName: "example",
 *     nodeRoleArn: exampleAwsIamRole.arn,
 *     subnetIds: exampleAwsSubnet.map(__item => __item.id),
 *     scalingConfig: {
 *         desiredSize: 1,
 *         maxSize: 2,
 *         minSize: 1,
 *     },
 *     updateConfig: {
 *         maxUnavailable: 1,
 *     },
 * }, {
 *     dependsOn: [
 *         example_AmazonEKSWorkerNodePolicy,
 *         example_AmazonEKSCNIPolicy,
 *         example_AmazonEC2ContainerRegistryReadOnly,
 *     ],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.eks.NodeGroup("example",
 *     cluster_name=example_aws_eks_cluster["name"],
 *     node_group_name="example",
 *     node_role_arn=example_aws_iam_role["arn"],
 *     subnet_ids=[__item["id"] for __item in example_aws_subnet],
 *     scaling_config={
 *         "desired_size": 1,
 *         "max_size": 2,
 *         "min_size": 1,
 *     },
 *     update_config={
 *         "max_unavailable": 1,
 *     },
 *     opts = pulumi.ResourceOptions(depends_on=[
 *             example__amazon_eks_worker_node_policy,
 *             example__amazon_ekscni_policy,
 *             example__amazon_ec2_container_registry_read_only,
 *         ]))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Eks.NodeGroup("example", new()
 *     {
 *         ClusterName = exampleAwsEksCluster.Name,
 *         NodeGroupName = "example",
 *         NodeRoleArn = exampleAwsIamRole.Arn,
 *         SubnetIds = exampleAwsSubnet.Select(__item => __item.Id).ToList(),
 *         ScalingConfig = new Aws.Eks.Inputs.NodeGroupScalingConfigArgs
 *         {
 *             DesiredSize = 1,
 *             MaxSize = 2,
 *             MinSize = 1,
 *         },
 *         UpdateConfig = new Aws.Eks.Inputs.NodeGroupUpdateConfigArgs
 *         {
 *             MaxUnavailable = 1,
 *         },
 *     }, new CustomResourceOptions
 *     {
 *         DependsOn =
 *         {
 *             example_AmazonEKSWorkerNodePolicy,
 *             example_AmazonEKSCNIPolicy,
 *             example_AmazonEC2ContainerRegistryReadOnly,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/eks"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * pulumi.Run(func(ctx *pulumi.Context) error {
 * var splat0 []interface{}
 * for _, val0 := range exampleAwsSubnet {
 * splat0 = append(splat0, val0.Id)
 * }
 * _, err := eks.NewNodeGroup(ctx, "example", &eks.NodeGroupArgs{
 * ClusterName: pulumi.Any(exampleAwsEksCluster.Name),
 * NodeGroupName: pulumi.String("example"),
 * NodeRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
 * SubnetIds: toPulumiArray(splat0),
 * ScalingConfig: &eks.NodeGroupScalingConfigArgs{
 * DesiredSize: pulumi.Int(1),
 * MaxSize: pulumi.Int(2),
 * MinSize: pulumi.Int(1),
 * },
 * UpdateConfig: &eks.NodeGroupUpdateConfigArgs{
 * MaxUnavailable: pulumi.Int(1),
 * },
 * }, pulumi.DependsOn([]pulumi.Resource{
 * example_AmazonEKSWorkerNodePolicy,
 * example_AmazonEKSCNIPolicy,
 * example_AmazonEC2ContainerRegistryReadOnly,
 * }))
 * if err != nil {
 * return err
 * }
 * return nil
 * })
 * }
 * func toPulumiArray(arr []) pulumi.Array {
 * var pulumiArr pulumi.Array
 * for _, v := range arr {
 * pulumiArr = append(pulumiArr, pulumi.(v))
 * }
 * return pulumiArr
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.eks.NodeGroup;
 * import com.pulumi.aws.eks.NodeGroupArgs;
 * import com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs;
 * import com.pulumi.aws.eks.inputs.NodeGroupUpdateConfigArgs;
 * import com.pulumi.resources.CustomResourceOptions;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new NodeGroup("example", NodeGroupArgs.builder()
 *             .clusterName(exampleAwsEksCluster.name())
 *             .nodeGroupName("example")
 *             .nodeRoleArn(exampleAwsIamRole.arn())
 *             .subnetIds(exampleAwsSubnet.stream().map(element -> element.id()).collect(toList()))
 *             .scalingConfig(NodeGroupScalingConfigArgs.builder()
 *                 .desiredSize(1)
 *                 .maxSize(2)
 *                 .minSize(1)
 *                 .build())
 *             .updateConfig(NodeGroupUpdateConfigArgs.builder()
 *                 .maxUnavailable(1)
 *                 .build())
 *             .build(), CustomResourceOptions.builder()
 *                 .dependsOn(
 *                     example_AmazonEKSWorkerNodePolicy,
 *                     example_AmazonEKSCNIPolicy,
 *                     example_AmazonEC2ContainerRegistryReadOnly)
 *                 .build());
 *     }
 * }
 * ```
 * 
 * ### Ignoring Changes to Desired Size
 * You can utilize [ignoreChanges](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) create an EKS Node Group with an initial size of running instances, then ignore any changes to that count caused externally (e.g. Application Autoscaling).
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.eks.NodeGroup("example", {scalingConfig: {
 *     desiredSize: 2,
 * }});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.eks.NodeGroup("example", scaling_config={
 *     "desired_size": 2,
 * })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Eks.NodeGroup("example", new()
 *     {
 *         ScalingConfig = new Aws.Eks.Inputs.NodeGroupScalingConfigArgs
 *         {
 *             DesiredSize = 2,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/eks"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := eks.NewNodeGroup(ctx, "example", &eks.NodeGroupArgs{
 * 			ScalingConfig: &eks.NodeGroupScalingConfigArgs{
 * 				DesiredSize: pulumi.Int(2),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.eks.NodeGroup;
 * import com.pulumi.aws.eks.NodeGroupArgs;
 * import com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new NodeGroup("example", NodeGroupArgs.builder()
 *             .scalingConfig(NodeGroupScalingConfigArgs.builder()
 *                 .desiredSize(2)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:eks:NodeGroup
 *     properties:
 *       scalingConfig:
 *         desiredSize: 2
 * ```
 * 
 * ### Example IAM Role for EKS Node Group
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.iam.Role("example", {
 *     name: "eks-node-group-example",
 *     assumeRolePolicy: JSON.stringify({
 *         Statement: [{
 *             Action: "sts:AssumeRole",
 *             Effect: "Allow",
 *             Principal: {
 *                 Service: "ec2.amazonaws.com",
 *             },
 *         }],
 *         Version: "2012-10-17",
 *     }),
 * });
 * const example_AmazonEKSWorkerNodePolicy = new aws.iam.RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy", {
 *     policyArn: "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy",
 *     role: example.name,
 * });
 * const example_AmazonEKSCNIPolicy = new aws.iam.RolePolicyAttachment("example-AmazonEKS_CNI_Policy", {
 *     policyArn: "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
 *     role: example.name,
 * });
 * const example_AmazonEC2ContainerRegistryReadOnly = new aws.iam.RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly", {
 *     policyArn: "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
 *     role: example.name,
 * });
 * ```
 * ```python
 * import pulumi
 * import json
 * import pulumi_aws as aws
 * example = aws.iam.Role("example",
 *     name="eks-node-group-example",
 *     assume_role_policy=json.dumps({
 *         "Statement": [{
 *             "Action": "sts:AssumeRole",
 *             "Effect": "Allow",
 *             "Principal": {
 *                 "Service": "ec2.amazonaws.com",
 *             },
 *         }],
 *         "Version": "2012-10-17",
 *     }))
 * example__amazon_eks_worker_node_policy = aws.iam.RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy",
 *     policy_arn="arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy",
 *     role=example.name)
 * example__amazon_ekscni_policy = aws.iam.RolePolicyAttachment("example-AmazonEKS_CNI_Policy",
 *     policy_arn="arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
 *     role=example.name)
 * example__amazon_ec2_container_registry_read_only = aws.iam.RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly",
 *     policy_arn="arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
 *     role=example.name)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using System.Text.Json;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Iam.Role("example", new()
 *     {
 *         Name = "eks-node-group-example",
 *         AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary
 *         {
 *             ["Statement"] = new[]
 *             {
 *                 new Dictionary
 *                 {
 *                     ["Action"] = "sts:AssumeRole",
 *                     ["Effect"] = "Allow",
 *                     ["Principal"] = new Dictionary
 *                     {
 *                         ["Service"] = "ec2.amazonaws.com",
 *                     },
 *                 },
 *             },
 *             ["Version"] = "2012-10-17",
 *         }),
 *     });
 *     var example_AmazonEKSWorkerNodePolicy = new Aws.Iam.RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy", new()
 *     {
 *         PolicyArn = "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy",
 *         Role = example.Name,
 *     });
 *     var example_AmazonEKSCNIPolicy = new Aws.Iam.RolePolicyAttachment("example-AmazonEKS_CNI_Policy", new()
 *     {
 *         PolicyArn = "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy",
 *         Role = example.Name,
 *     });
 *     var example_AmazonEC2ContainerRegistryReadOnly = new Aws.Iam.RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly", new()
 *     {
 *         PolicyArn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
 *         Role = example.Name,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"encoding/json"
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		tmpJSON0, err := json.Marshal(map[string]interface{}{
 * 			"Statement": []map[string]interface{}{
 * 				map[string]interface{}{
 * 					"Action": "sts:AssumeRole",
 * 					"Effect": "Allow",
 * 					"Principal": map[string]interface{}{
 * 						"Service": "ec2.amazonaws.com",
 * 					},
 * 				},
 * 			},
 * 			"Version": "2012-10-17",
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		json0 := string(tmpJSON0)
 * 		example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
 * 			Name:             pulumi.String("eks-node-group-example"),
 * 			AssumeRolePolicy: pulumi.String(json0),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEKSWorkerNodePolicy", &iam.RolePolicyAttachmentArgs{
 * 			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"),
 * 			Role:      example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEKS_CNI_Policy", &iam.RolePolicyAttachmentArgs{
 * 			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"),
 * 			Role:      example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = iam.NewRolePolicyAttachment(ctx, "example-AmazonEC2ContainerRegistryReadOnly", &iam.RolePolicyAttachmentArgs{
 * 			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"),
 * 			Role:      example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.iam.Role;
 * import com.pulumi.aws.iam.RoleArgs;
 * import com.pulumi.aws.iam.RolePolicyAttachment;
 * import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new Role("example", RoleArgs.builder()
 *             .name("eks-node-group-example")
 *             .assumeRolePolicy(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("Statement", jsonArray(jsonObject(
 *                         jsonProperty("Action", "sts:AssumeRole"),
 *                         jsonProperty("Effect", "Allow"),
 *                         jsonProperty("Principal", jsonObject(
 *                             jsonProperty("Service", "ec2.amazonaws.com")
 *                         ))
 *                     ))),
 *                     jsonProperty("Version", "2012-10-17")
 *                 )))
 *             .build());
 *         var example_AmazonEKSWorkerNodePolicy = new RolePolicyAttachment("example-AmazonEKSWorkerNodePolicy", RolePolicyAttachmentArgs.builder()
 *             .policyArn("arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy")
 *             .role(example.name())
 *             .build());
 *         var example_AmazonEKSCNIPolicy = new RolePolicyAttachment("example-AmazonEKSCNIPolicy", RolePolicyAttachmentArgs.builder()
 *             .policyArn("arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy")
 *             .role(example.name())
 *             .build());
 *         var example_AmazonEC2ContainerRegistryReadOnly = new RolePolicyAttachment("example-AmazonEC2ContainerRegistryReadOnly", RolePolicyAttachmentArgs.builder()
 *             .policyArn("arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly")
 *             .role(example.name())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:iam:Role
 *     properties:
 *       name: eks-node-group-example
 *       assumeRolePolicy:
 *         fn::toJSON:
 *           Statement:
 *             - Action: sts:AssumeRole
 *               Effect: Allow
 *               Principal:
 *                 Service: ec2.amazonaws.com
 *           Version: 2012-10-17
 *   example-AmazonEKSWorkerNodePolicy:
 *     type: aws:iam:RolePolicyAttachment
 *     properties:
 *       policyArn: arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
 *       role: ${example.name}
 *   example-AmazonEKSCNIPolicy:
 *     type: aws:iam:RolePolicyAttachment
 *     name: example-AmazonEKS_CNI_Policy
 *     properties:
 *       policyArn: arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
 *       role: ${example.name}
 *   example-AmazonEC2ContainerRegistryReadOnly:
 *     type: aws:iam:RolePolicyAttachment
 *     properties:
 *       policyArn: arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
 *       role: ${example.name}
 * ```
 * 
 * ### Example Subnets for EKS Node Group
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * import * as std from "@pulumi/std";
 * const available = aws.getAvailabilityZones({
 *     state: "available",
 * });
 * const example: aws.ec2.Subnet[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     example.push(new aws.ec2.Subnet(`example-${range.value}`, {
 *         availabilityZone: available.then(available => available.names[range.value]),
 *         cidrBlock: std.cidrsubnet({
 *             input: exampleAwsVpc.cidrBlock,
 *             newbits: 8,
 *             netnum: range.value,
 *         }).then(invoke => invoke.result),
 *         vpcId: exampleAwsVpc.id,
 *     }));
 * }
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * import pulumi_std as std
 * available = aws.get_availability_zones(state="available")
 * example = []
 * for range in [{"value": i} for i in range(0, 2)]:
 *     example.append(aws.ec2.Subnet(f"example-{range['value']}",
 *         availability_zone=available.names[range["value"]],
 *         cidr_block=std.cidrsubnet(input=example_aws_vpc["cidrBlock"],
 *             newbits=8,
 *             netnum=range["value"]).result,
 *         vpc_id=example_aws_vpc["id"]))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * using Std = Pulumi.Std;
 * return await Deployment.RunAsync(() =>
 * {
 *     var available = Aws.GetAvailabilityZones.Invoke(new()
 *     {
 *         State = "available",
 *     });
 *     var example = new List();
 *     for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
 *     {
 *         var range = new { Value = rangeIndex };
 *         example.Add(new Aws.Ec2.Subnet($"example-{range.Value}", new()
 *         {
 *             AvailabilityZone = available.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names)[range.Value],
 *             CidrBlock = Std.Cidrsubnet.Invoke(new()
 *             {
 *                 Input = exampleAwsVpc.CidrBlock,
 *                 Newbits = 8,
 *                 Netnum = range.Value,
 *             }).Apply(invoke => invoke.Result),
 *             VpcId = exampleAwsVpc.Id,
 *         }));
 *     }
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
 * 	"github.com/pulumi/pulumi-std/sdk/go/std"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
 * 			State: pulumi.StringRef("available"),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		invokeCidrsubnet, err := std.Cidrsubnet(ctx, &std.CidrsubnetArgs{
 * 			Input:   exampleAwsVpc.CidrBlock,
 * 			Newbits: 8,
 * 			Netnum:  val0,
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		var example []*ec2.Subnet
 * 		for index := 0; index < 2; index++ {
 * 			key0 := index
 * 			val0 := index
 * 			__res, err := ec2.NewSubnet(ctx, fmt.Sprintf("example-%v", key0), &ec2.SubnetArgs{
 * 				AvailabilityZone: pulumi.String(available.Names[val0]),
 * 				CidrBlock:        pulumi.String(invokeCidrsubnet.Result),
 * 				VpcId:            pulumi.Any(exampleAwsVpc.Id),
 * 			})
 * 			if err != nil {
 * 				return err
 * 			}
 * 			example = append(example, __res)
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.AwsFunctions;
 * import com.pulumi.aws.inputs.GetAvailabilityZonesArgs;
 * import com.pulumi.aws.ec2.Subnet;
 * import com.pulumi.aws.ec2.SubnetArgs;
 * import com.pulumi.codegen.internal.KeyedValue;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder()
 *             .state("available")
 *             .build());
 *         for (var i = 0; i < 2; i++) {
 *             new Subnet("example-" + i, SubnetArgs.builder()
 *                 .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names())[range.value()])
 *                 .cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder()
 *                     .input(exampleAwsVpc.cidrBlock())
 *                     .newbits(8)
 *                     .netnum(range.value())
 *                     .build()).result())
 *                 .vpcId(exampleAwsVpc.id())
 *                 .build());
 * }
 *     }
 * }
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import EKS Node Groups using the `cluster_name` and `node_group_name` separated by a colon (`:`). For example:
 * ```sh
 * $ pulumi import aws:eks/nodeGroup:NodeGroup my_node_group my_cluster:my_node_group
 * ```
 * @property amiType Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the [AWS documentation](https://docs.aws.amazon.com/eks/latest/APIReference/API_Nodegroup.html#AmazonEKS-Type-Nodegroup-amiType) for valid values. This provider will only perform drift detection if a configuration value is provided.
 * @property capacityType Type of capacity associated with the EKS Node Group. Valid values: `ON_DEMAND`, `SPOT`. This provider will only perform drift detection if a configuration value is provided.
 * @property clusterName Name of the EKS Cluster.
 * @property diskSize Disk size in GiB for worker nodes. Defaults to `50` for Windows, `20` all other node groups. The provider will only perform drift detection if a configuration value is provided.
 * @property forceUpdateVersion Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
 * @property instanceTypes List of instance types associated with the EKS Node Group. Defaults to `["t3.medium"]`. The provider will only perform drift detection if a configuration value is provided.
 * @property labels Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
 * @property launchTemplate Configuration block with Launch Template settings. See `launch_template` below for details. Conflicts with `remote_access`.
 * @property nodeGroupName Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with `node_group_name_prefix`. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
 * @property nodeGroupNamePrefix Creates a unique name beginning with the specified prefix. Conflicts with `node_group_name`.
 * @property nodeRoleArn Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
 * @property releaseVersion AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
 * @property remoteAccess Configuration block with remote access settings. See `remote_access` below for details. Conflicts with `launch_template`.
 * @property scalingConfig Configuration block with scaling settings. See `scaling_config` below for details.
 * @property subnetIds Identifiers of EC2 Subnets to associate with the EKS Node Group.
 * The following arguments are optional:
 * @property tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * @property taints The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
 * @property updateConfig Configuration block with update settings. See `update_config` below for details.
 * @property version Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
 */
public data class NodeGroupArgs(
    public val amiType: Output? = null,
    public val capacityType: Output? = null,
    public val clusterName: Output? = null,
    public val diskSize: Output? = null,
    public val forceUpdateVersion: Output? = null,
    public val instanceTypes: Output>? = null,
    public val labels: Output>? = null,
    public val launchTemplate: Output? = null,
    public val nodeGroupName: Output? = null,
    public val nodeGroupNamePrefix: Output? = null,
    public val nodeRoleArn: Output? = null,
    public val releaseVersion: Output? = null,
    public val remoteAccess: Output? = null,
    public val scalingConfig: Output? = null,
    public val subnetIds: Output>? = null,
    public val tags: Output>? = null,
    public val taints: Output>? = null,
    public val updateConfig: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.eks.NodeGroupArgs =
        com.pulumi.aws.eks.NodeGroupArgs.builder()
            .amiType(amiType?.applyValue({ args0 -> args0 }))
            .capacityType(capacityType?.applyValue({ args0 -> args0 }))
            .clusterName(clusterName?.applyValue({ args0 -> args0 }))
            .diskSize(diskSize?.applyValue({ args0 -> args0 }))
            .forceUpdateVersion(forceUpdateVersion?.applyValue({ args0 -> args0 }))
            .instanceTypes(instanceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .launchTemplate(launchTemplate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .nodeGroupName(nodeGroupName?.applyValue({ args0 -> args0 }))
            .nodeGroupNamePrefix(nodeGroupNamePrefix?.applyValue({ args0 -> args0 }))
            .nodeRoleArn(nodeRoleArn?.applyValue({ args0 -> args0 }))
            .releaseVersion(releaseVersion?.applyValue({ args0 -> args0 }))
            .remoteAccess(remoteAccess?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scalingConfig(scalingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .taints(taints?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .updateConfig(updateConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodeGroupArgs].
 */
@PulumiTagMarker
public class NodeGroupArgsBuilder internal constructor() {
    private var amiType: Output? = null

    private var capacityType: Output? = null

    private var clusterName: Output? = null

    private var diskSize: Output? = null

    private var forceUpdateVersion: Output? = null

    private var instanceTypes: Output>? = null

    private var labels: Output>? = null

    private var launchTemplate: Output? = null

    private var nodeGroupName: Output? = null

    private var nodeGroupNamePrefix: Output? = null

    private var nodeRoleArn: Output? = null

    private var releaseVersion: Output? = null

    private var remoteAccess: Output? = null

    private var scalingConfig: Output? = null

    private var subnetIds: Output>? = null

    private var tags: Output>? = null

    private var taints: Output>? = null

    private var updateConfig: Output? = null

    private var version: Output? = null

    /**
     * @param value Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the [AWS documentation](https://docs.aws.amazon.com/eks/latest/APIReference/API_Nodegroup.html#AmazonEKS-Type-Nodegroup-amiType) for valid values. This provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("jrvyctachotykrmf")
    public suspend fun amiType(`value`: Output) {
        this.amiType = value
    }

    /**
     * @param value Type of capacity associated with the EKS Node Group. Valid values: `ON_DEMAND`, `SPOT`. This provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("wmllxncldqfjyrms")
    public suspend fun capacityType(`value`: Output) {
        this.capacityType = value
    }

    /**
     * @param value Name of the EKS Cluster.
     */
    @JvmName("ojvavqhnkignjhqq")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value Disk size in GiB for worker nodes. Defaults to `50` for Windows, `20` all other node groups. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("hfxmaeuotqrmcblj")
    public suspend fun diskSize(`value`: Output) {
        this.diskSize = value
    }

    /**
     * @param value Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
     */
    @JvmName("whotdoyvwailvokd")
    public suspend fun forceUpdateVersion(`value`: Output) {
        this.forceUpdateVersion = value
    }

    /**
     * @param value List of instance types associated with the EKS Node Group. Defaults to `["t3.medium"]`. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("lnrunektdkhleimk")
    public suspend fun instanceTypes(`value`: Output>) {
        this.instanceTypes = value
    }

    @JvmName("dfdxxlphvtpuyado")
    public suspend fun instanceTypes(vararg values: Output) {
        this.instanceTypes = Output.all(values.asList())
    }

    /**
     * @param values List of instance types associated with the EKS Node Group. Defaults to `["t3.medium"]`. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("hjcmxtooorobdtns")
    public suspend fun instanceTypes(values: List>) {
        this.instanceTypes = Output.all(values)
    }

    /**
     * @param value Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
     */
    @JvmName("cyolebdvpymvvdsg")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Configuration block with Launch Template settings. See `launch_template` below for details. Conflicts with `remote_access`.
     */
    @JvmName("psalunjbhekuhivx")
    public suspend fun launchTemplate(`value`: Output) {
        this.launchTemplate = value
    }

    /**
     * @param value Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with `node_group_name_prefix`. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
     */
    @JvmName("yhxlfabdgdsoxtai")
    public suspend fun nodeGroupName(`value`: Output) {
        this.nodeGroupName = value
    }

    /**
     * @param value Creates a unique name beginning with the specified prefix. Conflicts with `node_group_name`.
     */
    @JvmName("lbrakrbonssjwuvk")
    public suspend fun nodeGroupNamePrefix(`value`: Output) {
        this.nodeGroupNamePrefix = value
    }

    /**
     * @param value Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
     */
    @JvmName("yolseauvqmwgwyae")
    public suspend fun nodeRoleArn(`value`: Output) {
        this.nodeRoleArn = value
    }

    /**
     * @param value AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
     */
    @JvmName("nvsowqbmmaprhsee")
    public suspend fun releaseVersion(`value`: Output) {
        this.releaseVersion = value
    }

    /**
     * @param value Configuration block with remote access settings. See `remote_access` below for details. Conflicts with `launch_template`.
     */
    @JvmName("agahikdfeptbqrhj")
    public suspend fun remoteAccess(`value`: Output) {
        this.remoteAccess = value
    }

    /**
     * @param value Configuration block with scaling settings. See `scaling_config` below for details.
     */
    @JvmName("bkasenoeuacibkdx")
    public suspend fun scalingConfig(`value`: Output) {
        this.scalingConfig = value
    }

    /**
     * @param value Identifiers of EC2 Subnets to associate with the EKS Node Group.
     * The following arguments are optional:
     */
    @JvmName("cjyyuoqqqahygino")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

    @JvmName("mhgghmkfbplwgjri")
    public suspend fun subnetIds(vararg values: Output) {
        this.subnetIds = Output.all(values.asList())
    }

    /**
     * @param values Identifiers of EC2 Subnets to associate with the EKS Node Group.
     * The following arguments are optional:
     */
    @JvmName("lwsqhsxhecygmduh")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("kldimhwojysjorka")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("ingageifplmaharr")
    public suspend fun taints(`value`: Output>) {
        this.taints = value
    }

    @JvmName("fxyfvjxyrokqxqcv")
    public suspend fun taints(vararg values: Output) {
        this.taints = Output.all(values.asList())
    }

    /**
     * @param values The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("ghulhwuomtavllqd")
    public suspend fun taints(values: List>) {
        this.taints = Output.all(values)
    }

    /**
     * @param value Configuration block with update settings. See `update_config` below for details.
     */
    @JvmName("jebeoephkuehucao")
    public suspend fun updateConfig(`value`: Output) {
        this.updateConfig = value
    }

    /**
     * @param value Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("navirqtibhfhuvwp")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Type of Amazon Machine Image (AMI) associated with the EKS Node Group. See the [AWS documentation](https://docs.aws.amazon.com/eks/latest/APIReference/API_Nodegroup.html#AmazonEKS-Type-Nodegroup-amiType) for valid values. This provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("lnriuvtseoxyapeq")
    public suspend fun amiType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amiType = mapped
    }

    /**
     * @param value Type of capacity associated with the EKS Node Group. Valid values: `ON_DEMAND`, `SPOT`. This provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("rapbumokyhmuatfl")
    public suspend fun capacityType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityType = mapped
    }

    /**
     * @param value Name of the EKS Cluster.
     */
    @JvmName("jnfrmsfyptjvqhuj")
    public suspend fun clusterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterName = mapped
    }

    /**
     * @param value Disk size in GiB for worker nodes. Defaults to `50` for Windows, `20` all other node groups. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("lfspjwgijtehbjry")
    public suspend fun diskSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskSize = mapped
    }

    /**
     * @param value Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
     */
    @JvmName("svkhrfhggwhabgan")
    public suspend fun forceUpdateVersion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceUpdateVersion = mapped
    }

    /**
     * @param value List of instance types associated with the EKS Node Group. Defaults to `["t3.medium"]`. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("xwvdbcyxdqyldrhv")
    public suspend fun instanceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceTypes = mapped
    }

    /**
     * @param values List of instance types associated with the EKS Node Group. Defaults to `["t3.medium"]`. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("ibpjbxwjvltbtdxy")
    public suspend fun instanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceTypes = mapped
    }

    /**
     * @param value Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
     */
    @JvmName("rhaxtfuldyiqliqu")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
     */
    @JvmName("wajsgeerknajiqqb")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Configuration block with Launch Template settings. See `launch_template` below for details. Conflicts with `remote_access`.
     */
    @JvmName("tpvjlecmfmcbmanh")
    public suspend fun launchTemplate(`value`: NodeGroupLaunchTemplateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchTemplate = mapped
    }

    /**
     * @param argument Configuration block with Launch Template settings. See `launch_template` below for details. Conflicts with `remote_access`.
     */
    @JvmName("whjvbyjukbajumah")
    public suspend fun launchTemplate(argument: suspend NodeGroupLaunchTemplateArgsBuilder.() -> Unit) {
        val toBeMapped = NodeGroupLaunchTemplateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.launchTemplate = mapped
    }

    /**
     * @param value Name of the EKS Node Group. If omitted, the provider will assign a random, unique name. Conflicts with `node_group_name_prefix`. The node group name can't be longer than 63 characters. It must start with a letter or digit, but can also include hyphens and underscores for the remaining characters.
     */
    @JvmName("sleikfemdswbdlyg")
    public suspend fun nodeGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeGroupName = mapped
    }

    /**
     * @param value Creates a unique name beginning with the specified prefix. Conflicts with `node_group_name`.
     */
    @JvmName("tawhaqtlmtufonrs")
    public suspend fun nodeGroupNamePrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeGroupNamePrefix = mapped
    }

    /**
     * @param value Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
     */
    @JvmName("fyqmgjmnfqmqfppm")
    public suspend fun nodeRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeRoleArn = mapped
    }

    /**
     * @param value AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
     */
    @JvmName("nilkxciuyaebgncu")
    public suspend fun releaseVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.releaseVersion = mapped
    }

    /**
     * @param value Configuration block with remote access settings. See `remote_access` below for details. Conflicts with `launch_template`.
     */
    @JvmName("exjmtydcvjicdtcd")
    public suspend fun remoteAccess(`value`: NodeGroupRemoteAccessArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remoteAccess = mapped
    }

    /**
     * @param argument Configuration block with remote access settings. See `remote_access` below for details. Conflicts with `launch_template`.
     */
    @JvmName("xmpxvuynrvxaxgip")
    public suspend fun remoteAccess(argument: suspend NodeGroupRemoteAccessArgsBuilder.() -> Unit) {
        val toBeMapped = NodeGroupRemoteAccessArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.remoteAccess = mapped
    }

    /**
     * @param value Configuration block with scaling settings. See `scaling_config` below for details.
     */
    @JvmName("hmcwwjwflcavhaqx")
    public suspend fun scalingConfig(`value`: NodeGroupScalingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scalingConfig = mapped
    }

    /**
     * @param argument Configuration block with scaling settings. See `scaling_config` below for details.
     */
    @JvmName("qlpwfycayyiaxebv")
    public suspend fun scalingConfig(argument: suspend NodeGroupScalingConfigArgsBuilder.() -> Unit) {
        val toBeMapped = NodeGroupScalingConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.scalingConfig = mapped
    }

    /**
     * @param value Identifiers of EC2 Subnets to associate with the EKS Node Group.
     * The following arguments are optional:
     */
    @JvmName("cibgtgacmigkrsov")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values Identifiers of EC2 Subnets to associate with the EKS Node Group.
     * The following arguments are optional:
     */
    @JvmName("naxufkcynkqxynxs")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("fpwswqijqufdnjgh")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("iqkmtuqdtththadn")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("qwtqrmjpqihlblwi")
    public suspend fun taints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taints = mapped
    }

    /**
     * @param argument The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("iionwuostcvtgbxv")
    public suspend fun taints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NodeGroupTaintArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taints = mapped
    }

    /**
     * @param argument The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("dsjxvjkvtgpjrsgd")
    public suspend fun taints(vararg argument: suspend NodeGroupTaintArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NodeGroupTaintArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taints = mapped
    }

    /**
     * @param argument The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("hbcalcksmvqirjmt")
    public suspend fun taints(argument: suspend NodeGroupTaintArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(NodeGroupTaintArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.taints = mapped
    }

    /**
     * @param values The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group. See taint below for details.
     */
    @JvmName("ltkqkbvkpamfsega")
    public suspend fun taints(vararg values: NodeGroupTaintArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taints = mapped
    }

    /**
     * @param value Configuration block with update settings. See `update_config` below for details.
     */
    @JvmName("xxwoqsvvijsqrlwl")
    public suspend fun updateConfig(`value`: NodeGroupUpdateConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.updateConfig = mapped
    }

    /**
     * @param argument Configuration block with update settings. See `update_config` below for details.
     */
    @JvmName("iajlpppwuvclxhbp")
    public suspend fun updateConfig(argument: suspend NodeGroupUpdateConfigArgsBuilder.() -> Unit) {
        val toBeMapped = NodeGroupUpdateConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.updateConfig = mapped
    }

    /**
     * @param value Kubernetes version. Defaults to EKS Cluster Kubernetes version. The provider will only perform drift detection if a configuration value is provided.
     */
    @JvmName("aascfuugjhvnttop")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): NodeGroupArgs = NodeGroupArgs(
        amiType = amiType,
        capacityType = capacityType,
        clusterName = clusterName,
        diskSize = diskSize,
        forceUpdateVersion = forceUpdateVersion,
        instanceTypes = instanceTypes,
        labels = labels,
        launchTemplate = launchTemplate,
        nodeGroupName = nodeGroupName,
        nodeGroupNamePrefix = nodeGroupNamePrefix,
        nodeRoleArn = nodeRoleArn,
        releaseVersion = releaseVersion,
        remoteAccess = remoteAccess,
        scalingConfig = scalingConfig,
        subnetIds = subnetIds,
        tags = tags,
        taints = taints,
        updateConfig = updateConfig,
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy