1. Packages
  2. Volcengine
  3. API Docs
  4. vke
  5. DefaultNodePoolBatchAttach
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.vke.DefaultNodePoolBatchAttach

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage vke default node pool batch attach

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-project1",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-subnet-test-2",
            CidrBlock = "172.16.0.0/24",
            ZoneId = "cn-beijing-a",
            VpcId = fooVpc.Id,
        });
    
        var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
        {
            VpcId = fooVpc.Id,
            SecurityGroupName = "acc-test-security-group2",
        });
    
        var fooInstance = new Volcengine.Ecs.Instance("fooInstance", new()
        {
            ImageId = "image-ybqi99s7yq8rx7mnk44b",
            InstanceType = "ecs.g1ie.large",
            InstanceName = "acc-test-ecs-name2",
            Password = "93f0cb0614Aab12",
            InstanceChargeType = "PostPaid",
            SystemVolumeType = "ESSD_PL0",
            SystemVolumeSize = 40,
            SubnetId = fooSubnet.Id,
            SecurityGroupIds = new[]
            {
                fooSecurityGroup.Id,
            },
        });
    
        var foo2 = new Volcengine.Ecs.Instance("foo2", new()
        {
            ImageId = "image-ybqi99s7yq8rx7mnk44b",
            InstanceType = "ecs.g1ie.large",
            InstanceName = "acc-test-ecs-name2",
            Password = "93f0cb0614Aab12",
            InstanceChargeType = "PostPaid",
            SystemVolumeType = "ESSD_PL0",
            SystemVolumeSize = 40,
            SubnetId = fooSubnet.Id,
            SecurityGroupIds = new[]
            {
                fooSecurityGroup.Id,
            },
        });
    
        var fooCluster = new Volcengine.Vke.Cluster("fooCluster", new()
        {
            Description = "created by terraform",
            DeleteProtectionEnabled = false,
            ClusterConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigArgs
            {
                SubnetIds = new[]
                {
                    fooSubnet.Id,
                },
                ApiServerPublicAccessEnabled = true,
                ApiServerPublicAccessConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs
                {
                    PublicAccessNetworkConfig = new Volcengine.Vke.Inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs
                    {
                        BillingType = "PostPaidByBandwidth",
                        Bandwidth = 1,
                    },
                },
                ResourcePublicAccessDefaultEnabled = true,
            },
            PodsConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigArgs
            {
                PodNetworkMode = "VpcCniShared",
                VpcCniConfig = new Volcengine.Vke.Inputs.ClusterPodsConfigVpcCniConfigArgs
                {
                    SubnetIds = new[]
                    {
                        fooSubnet.Id,
                    },
                },
            },
            ServicesConfig = new Volcengine.Vke.Inputs.ClusterServicesConfigArgs
            {
                ServiceCidrsv4s = new[]
                {
                    "172.30.0.0/18",
                },
            },
            Tags = new[]
            {
                new Volcengine.Vke.Inputs.ClusterTagArgs
                {
                    Key = "tf-k1",
                    Value = "tf-v1",
                },
            },
        });
    
        var fooDefaultNodePool = new Volcengine.Vke.DefaultNodePool("fooDefaultNodePool", new()
        {
            ClusterId = fooCluster.Id,
            NodeConfig = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigArgs
            {
                Security = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigSecurityArgs
                {
                    Login = new Volcengine.Vke.Inputs.DefaultNodePoolNodeConfigSecurityLoginArgs
                    {
                        Password = "amw4WTdVcTRJVVFsUXpVTw==",
                    },
                    SecurityGroupIds = new[]
                    {
                        fooSecurityGroup.Id,
                    },
                    SecurityStrategies = new[]
                    {
                        "Hids",
                    },
                },
                InitializeScript = "ISMvYmluL2Jhc2gKZWNobyAx",
            },
            KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigArgs
            {
                Labels = new[]
                {
                    new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigLabelArgs
                    {
                        Key = "tf-key1",
                        Value = "tf-value1",
                    },
                    new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigLabelArgs
                    {
                        Key = "tf-key2",
                        Value = "tf-value2",
                    },
                },
                Taints = new[]
                {
                    new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigTaintArgs
                    {
                        Key = "tf-key3",
                        Value = "tf-value3",
                        Effect = "NoSchedule",
                    },
                    new Volcengine.Vke.Inputs.DefaultNodePoolKubernetesConfigTaintArgs
                    {
                        Key = "tf-key4",
                        Value = "tf-value4",
                        Effect = "NoSchedule",
                    },
                },
                Cordon = true,
            },
            Tags = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolTagArgs
                {
                    Key = "tf-k1",
                    Value = "tf-v1",
                },
            },
        });
    
        var fooDefaultNodePoolBatchAttach = new Volcengine.Vke.DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach", new()
        {
            ClusterId = fooCluster.Id,
            DefaultNodePoolId = fooDefaultNodePool.Id,
            Instances = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachInstanceArgs
                {
                    InstanceId = fooInstance.Id,
                    KeepInstanceName = true,
                    AdditionalContainerStorageEnabled = false,
                },
                new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachInstanceArgs
                {
                    InstanceId = foo2.Id,
                    KeepInstanceName = true,
                    AdditionalContainerStorageEnabled = false,
                },
            },
            KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigArgs
            {
                Labels = new[]
                {
                    new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
                    {
                        Key = "tf-key1",
                        Value = "tf-value1",
                    },
                    new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
                    {
                        Key = "tf-key2",
                        Value = "tf-value2",
                    },
                },
                Taints = new[]
                {
                    new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
                    {
                        Key = "tf-key3",
                        Value = "tf-value3",
                        Effect = "NoSchedule",
                    },
                    new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
                    {
                        Key = "tf-key4",
                        Value = "tf-value4",
                        Effect = "NoSchedule",
                    },
                },
                Cordon = true,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vke"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-project1"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-subnet-test-2"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     pulumi.String("cn-beijing-a"),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
    			VpcId:             fooVpc.ID(),
    			SecurityGroupName: pulumi.String("acc-test-security-group2"),
    		})
    		if err != nil {
    			return err
    		}
    		fooInstance, err := ecs.NewInstance(ctx, "fooInstance", &ecs.InstanceArgs{
    			ImageId:            pulumi.String("image-ybqi99s7yq8rx7mnk44b"),
    			InstanceType:       pulumi.String("ecs.g1ie.large"),
    			InstanceName:       pulumi.String("acc-test-ecs-name2"),
    			Password:           pulumi.String("93f0cb0614Aab12"),
    			InstanceChargeType: pulumi.String("PostPaid"),
    			SystemVolumeType:   pulumi.String("ESSD_PL0"),
    			SystemVolumeSize:   pulumi.Int(40),
    			SubnetId:           fooSubnet.ID(),
    			SecurityGroupIds: pulumi.StringArray{
    				fooSecurityGroup.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		foo2, err := ecs.NewInstance(ctx, "foo2", &ecs.InstanceArgs{
    			ImageId:            pulumi.String("image-ybqi99s7yq8rx7mnk44b"),
    			InstanceType:       pulumi.String("ecs.g1ie.large"),
    			InstanceName:       pulumi.String("acc-test-ecs-name2"),
    			Password:           pulumi.String("93f0cb0614Aab12"),
    			InstanceChargeType: pulumi.String("PostPaid"),
    			SystemVolumeType:   pulumi.String("ESSD_PL0"),
    			SystemVolumeSize:   pulumi.Int(40),
    			SubnetId:           fooSubnet.ID(),
    			SecurityGroupIds: pulumi.StringArray{
    				fooSecurityGroup.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooCluster, err := vke.NewCluster(ctx, "fooCluster", &vke.ClusterArgs{
    			Description:             pulumi.String("created by terraform"),
    			DeleteProtectionEnabled: pulumi.Bool(false),
    			ClusterConfig: &vke.ClusterClusterConfigArgs{
    				SubnetIds: pulumi.StringArray{
    					fooSubnet.ID(),
    				},
    				ApiServerPublicAccessEnabled: pulumi.Bool(true),
    				ApiServerPublicAccessConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigArgs{
    					PublicAccessNetworkConfig: &vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs{
    						BillingType: pulumi.String("PostPaidByBandwidth"),
    						Bandwidth:   pulumi.Int(1),
    					},
    				},
    				ResourcePublicAccessDefaultEnabled: pulumi.Bool(true),
    			},
    			PodsConfig: &vke.ClusterPodsConfigArgs{
    				PodNetworkMode: pulumi.String("VpcCniShared"),
    				VpcCniConfig: &vke.ClusterPodsConfigVpcCniConfigArgs{
    					SubnetIds: pulumi.StringArray{
    						fooSubnet.ID(),
    					},
    				},
    			},
    			ServicesConfig: &vke.ClusterServicesConfigArgs{
    				ServiceCidrsv4s: pulumi.StringArray{
    					pulumi.String("172.30.0.0/18"),
    				},
    			},
    			Tags: vke.ClusterTagArray{
    				&vke.ClusterTagArgs{
    					Key:   pulumi.String("tf-k1"),
    					Value: pulumi.String("tf-v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooDefaultNodePool, err := vke.NewDefaultNodePool(ctx, "fooDefaultNodePool", &vke.DefaultNodePoolArgs{
    			ClusterId: fooCluster.ID(),
    			NodeConfig: &vke.DefaultNodePoolNodeConfigArgs{
    				Security: &vke.DefaultNodePoolNodeConfigSecurityArgs{
    					Login: &vke.DefaultNodePoolNodeConfigSecurityLoginArgs{
    						Password: pulumi.String("amw4WTdVcTRJVVFsUXpVTw=="),
    					},
    					SecurityGroupIds: pulumi.StringArray{
    						fooSecurityGroup.ID(),
    					},
    					SecurityStrategies: pulumi.StringArray{
    						pulumi.String("Hids"),
    					},
    				},
    				InitializeScript: pulumi.String("ISMvYmluL2Jhc2gKZWNobyAx"),
    			},
    			KubernetesConfig: &vke.DefaultNodePoolKubernetesConfigArgs{
    				Labels: vke.DefaultNodePoolKubernetesConfigLabelArray{
    					&vke.DefaultNodePoolKubernetesConfigLabelArgs{
    						Key:   pulumi.String("tf-key1"),
    						Value: pulumi.String("tf-value1"),
    					},
    					&vke.DefaultNodePoolKubernetesConfigLabelArgs{
    						Key:   pulumi.String("tf-key2"),
    						Value: pulumi.String("tf-value2"),
    					},
    				},
    				Taints: vke.DefaultNodePoolKubernetesConfigTaintArray{
    					&vke.DefaultNodePoolKubernetesConfigTaintArgs{
    						Key:    pulumi.String("tf-key3"),
    						Value:  pulumi.String("tf-value3"),
    						Effect: pulumi.String("NoSchedule"),
    					},
    					&vke.DefaultNodePoolKubernetesConfigTaintArgs{
    						Key:    pulumi.String("tf-key4"),
    						Value:  pulumi.String("tf-value4"),
    						Effect: pulumi.String("NoSchedule"),
    					},
    				},
    				Cordon: pulumi.Bool(true),
    			},
    			Tags: vke.DefaultNodePoolTagArray{
    				&vke.DefaultNodePoolTagArgs{
    					Key:   pulumi.String("tf-k1"),
    					Value: pulumi.String("tf-v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vke.NewDefaultNodePoolBatchAttach(ctx, "fooDefaultNodePoolBatchAttach", &vke.DefaultNodePoolBatchAttachArgs{
    			ClusterId:         fooCluster.ID(),
    			DefaultNodePoolId: fooDefaultNodePool.ID(),
    			Instances: vke.DefaultNodePoolBatchAttachInstanceArray{
    				&vke.DefaultNodePoolBatchAttachInstanceArgs{
    					InstanceId:                        fooInstance.ID(),
    					KeepInstanceName:                  pulumi.Bool(true),
    					AdditionalContainerStorageEnabled: pulumi.Bool(false),
    				},
    				&vke.DefaultNodePoolBatchAttachInstanceArgs{
    					InstanceId:                        foo2.ID(),
    					KeepInstanceName:                  pulumi.Bool(true),
    					AdditionalContainerStorageEnabled: pulumi.Bool(false),
    				},
    			},
    			KubernetesConfig: &vke.DefaultNodePoolBatchAttachKubernetesConfigArgs{
    				Labels: vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArray{
    					&vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs{
    						Key:   pulumi.String("tf-key1"),
    						Value: pulumi.String("tf-value1"),
    					},
    					&vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs{
    						Key:   pulumi.String("tf-key2"),
    						Value: pulumi.String("tf-value2"),
    					},
    				},
    				Taints: vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArray{
    					&vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs{
    						Key:    pulumi.String("tf-key3"),
    						Value:  pulumi.String("tf-value3"),
    						Effect: pulumi.String("NoSchedule"),
    					},
    					&vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs{
    						Key:    pulumi.String("tf-key4"),
    						Value:  pulumi.String("tf-value4"),
    						Effect: pulumi.String("NoSchedule"),
    					},
    				},
    				Cordon: pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.vpc.SecurityGroup;
    import com.pulumi.volcengine.vpc.SecurityGroupArgs;
    import com.pulumi.volcengine.ecs.Instance;
    import com.pulumi.volcengine.ecs.InstanceArgs;
    import com.pulumi.volcengine.vke.Cluster;
    import com.pulumi.volcengine.vke.ClusterArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigApiServerPublicAccessConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterPodsConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterPodsConfigVpcCniConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterServicesConfigArgs;
    import com.pulumi.volcengine.vke.inputs.ClusterTagArgs;
    import com.pulumi.volcengine.vke.DefaultNodePool;
    import com.pulumi.volcengine.vke.DefaultNodePoolArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolNodeConfigArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolNodeConfigSecurityArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolNodeConfigSecurityLoginArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolKubernetesConfigArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolTagArgs;
    import com.pulumi.volcengine.vke.DefaultNodePoolBatchAttach;
    import com.pulumi.volcengine.vke.DefaultNodePoolBatchAttachArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolBatchAttachInstanceArgs;
    import com.pulumi.volcengine.vke.inputs.DefaultNodePoolBatchAttachKubernetesConfigArgs;
    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 fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-project1")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-subnet-test-2")
                .cidrBlock("172.16.0.0/24")
                .zoneId("cn-beijing-a")
                .vpcId(fooVpc.id())
                .build());
    
            var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()        
                .vpcId(fooVpc.id())
                .securityGroupName("acc-test-security-group2")
                .build());
    
            var fooInstance = new Instance("fooInstance", InstanceArgs.builder()        
                .imageId("image-ybqi99s7yq8rx7mnk44b")
                .instanceType("ecs.g1ie.large")
                .instanceName("acc-test-ecs-name2")
                .password("93f0cb0614Aab12")
                .instanceChargeType("PostPaid")
                .systemVolumeType("ESSD_PL0")
                .systemVolumeSize(40)
                .subnetId(fooSubnet.id())
                .securityGroupIds(fooSecurityGroup.id())
                .build());
    
            var foo2 = new Instance("foo2", InstanceArgs.builder()        
                .imageId("image-ybqi99s7yq8rx7mnk44b")
                .instanceType("ecs.g1ie.large")
                .instanceName("acc-test-ecs-name2")
                .password("93f0cb0614Aab12")
                .instanceChargeType("PostPaid")
                .systemVolumeType("ESSD_PL0")
                .systemVolumeSize(40)
                .subnetId(fooSubnet.id())
                .securityGroupIds(fooSecurityGroup.id())
                .build());
    
            var fooCluster = new Cluster("fooCluster", ClusterArgs.builder()        
                .description("created by terraform")
                .deleteProtectionEnabled(false)
                .clusterConfig(ClusterClusterConfigArgs.builder()
                    .subnetIds(fooSubnet.id())
                    .apiServerPublicAccessEnabled(true)
                    .apiServerPublicAccessConfig(ClusterClusterConfigApiServerPublicAccessConfigArgs.builder()
                        .publicAccessNetworkConfig(ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs.builder()
                            .billingType("PostPaidByBandwidth")
                            .bandwidth(1)
                            .build())
                        .build())
                    .resourcePublicAccessDefaultEnabled(true)
                    .build())
                .podsConfig(ClusterPodsConfigArgs.builder()
                    .podNetworkMode("VpcCniShared")
                    .vpcCniConfig(ClusterPodsConfigVpcCniConfigArgs.builder()
                        .subnetIds(fooSubnet.id())
                        .build())
                    .build())
                .servicesConfig(ClusterServicesConfigArgs.builder()
                    .serviceCidrsv4s("172.30.0.0/18")
                    .build())
                .tags(ClusterTagArgs.builder()
                    .key("tf-k1")
                    .value("tf-v1")
                    .build())
                .build());
    
            var fooDefaultNodePool = new DefaultNodePool("fooDefaultNodePool", DefaultNodePoolArgs.builder()        
                .clusterId(fooCluster.id())
                .nodeConfig(DefaultNodePoolNodeConfigArgs.builder()
                    .security(DefaultNodePoolNodeConfigSecurityArgs.builder()
                        .login(DefaultNodePoolNodeConfigSecurityLoginArgs.builder()
                            .password("amw4WTdVcTRJVVFsUXpVTw==")
                            .build())
                        .securityGroupIds(fooSecurityGroup.id())
                        .securityStrategies("Hids")
                        .build())
                    .initializeScript("ISMvYmluL2Jhc2gKZWNobyAx")
                    .build())
                .kubernetesConfig(DefaultNodePoolKubernetesConfigArgs.builder()
                    .labels(                
                        DefaultNodePoolKubernetesConfigLabelArgs.builder()
                            .key("tf-key1")
                            .value("tf-value1")
                            .build(),
                        DefaultNodePoolKubernetesConfigLabelArgs.builder()
                            .key("tf-key2")
                            .value("tf-value2")
                            .build())
                    .taints(                
                        DefaultNodePoolKubernetesConfigTaintArgs.builder()
                            .key("tf-key3")
                            .value("tf-value3")
                            .effect("NoSchedule")
                            .build(),
                        DefaultNodePoolKubernetesConfigTaintArgs.builder()
                            .key("tf-key4")
                            .value("tf-value4")
                            .effect("NoSchedule")
                            .build())
                    .cordon(true)
                    .build())
                .tags(DefaultNodePoolTagArgs.builder()
                    .key("tf-k1")
                    .value("tf-v1")
                    .build())
                .build());
    
            var fooDefaultNodePoolBatchAttach = new DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach", DefaultNodePoolBatchAttachArgs.builder()        
                .clusterId(fooCluster.id())
                .defaultNodePoolId(fooDefaultNodePool.id())
                .instances(            
                    DefaultNodePoolBatchAttachInstanceArgs.builder()
                        .instanceId(fooInstance.id())
                        .keepInstanceName(true)
                        .additionalContainerStorageEnabled(false)
                        .build(),
                    DefaultNodePoolBatchAttachInstanceArgs.builder()
                        .instanceId(foo2.id())
                        .keepInstanceName(true)
                        .additionalContainerStorageEnabled(false)
                        .build())
                .kubernetesConfig(DefaultNodePoolBatchAttachKubernetesConfigArgs.builder()
                    .labels(                
                        DefaultNodePoolBatchAttachKubernetesConfigLabelArgs.builder()
                            .key("tf-key1")
                            .value("tf-value1")
                            .build(),
                        DefaultNodePoolBatchAttachKubernetesConfigLabelArgs.builder()
                            .key("tf-key2")
                            .value("tf-value2")
                            .build())
                    .taints(                
                        DefaultNodePoolBatchAttachKubernetesConfigTaintArgs.builder()
                            .key("tf-key3")
                            .value("tf-value3")
                            .effect("NoSchedule")
                            .build(),
                        DefaultNodePoolBatchAttachKubernetesConfigTaintArgs.builder()
                            .key("tf-key4")
                            .value("tf-value4")
                            .effect("NoSchedule")
                            .build())
                    .cordon(true)
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-project1",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-subnet-test-2",
        cidr_block="172.16.0.0/24",
        zone_id="cn-beijing-a",
        vpc_id=foo_vpc.id)
    foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
        vpc_id=foo_vpc.id,
        security_group_name="acc-test-security-group2")
    foo_instance = volcengine.ecs.Instance("fooInstance",
        image_id="image-ybqi99s7yq8rx7mnk44b",
        instance_type="ecs.g1ie.large",
        instance_name="acc-test-ecs-name2",
        password="93f0cb0614Aab12",
        instance_charge_type="PostPaid",
        system_volume_type="ESSD_PL0",
        system_volume_size=40,
        subnet_id=foo_subnet.id,
        security_group_ids=[foo_security_group.id])
    foo2 = volcengine.ecs.Instance("foo2",
        image_id="image-ybqi99s7yq8rx7mnk44b",
        instance_type="ecs.g1ie.large",
        instance_name="acc-test-ecs-name2",
        password="93f0cb0614Aab12",
        instance_charge_type="PostPaid",
        system_volume_type="ESSD_PL0",
        system_volume_size=40,
        subnet_id=foo_subnet.id,
        security_group_ids=[foo_security_group.id])
    foo_cluster = volcengine.vke.Cluster("fooCluster",
        description="created by terraform",
        delete_protection_enabled=False,
        cluster_config=volcengine.vke.ClusterClusterConfigArgs(
            subnet_ids=[foo_subnet.id],
            api_server_public_access_enabled=True,
            api_server_public_access_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigArgs(
                public_access_network_config=volcengine.vke.ClusterClusterConfigApiServerPublicAccessConfigPublicAccessNetworkConfigArgs(
                    billing_type="PostPaidByBandwidth",
                    bandwidth=1,
                ),
            ),
            resource_public_access_default_enabled=True,
        ),
        pods_config=volcengine.vke.ClusterPodsConfigArgs(
            pod_network_mode="VpcCniShared",
            vpc_cni_config=volcengine.vke.ClusterPodsConfigVpcCniConfigArgs(
                subnet_ids=[foo_subnet.id],
            ),
        ),
        services_config=volcengine.vke.ClusterServicesConfigArgs(
            service_cidrsv4s=["172.30.0.0/18"],
        ),
        tags=[volcengine.vke.ClusterTagArgs(
            key="tf-k1",
            value="tf-v1",
        )])
    foo_default_node_pool = volcengine.vke.DefaultNodePool("fooDefaultNodePool",
        cluster_id=foo_cluster.id,
        node_config=volcengine.vke.DefaultNodePoolNodeConfigArgs(
            security=volcengine.vke.DefaultNodePoolNodeConfigSecurityArgs(
                login=volcengine.vke.DefaultNodePoolNodeConfigSecurityLoginArgs(
                    password="amw4WTdVcTRJVVFsUXpVTw==",
                ),
                security_group_ids=[foo_security_group.id],
                security_strategies=["Hids"],
            ),
            initialize_script="ISMvYmluL2Jhc2gKZWNobyAx",
        ),
        kubernetes_config=volcengine.vke.DefaultNodePoolKubernetesConfigArgs(
            labels=[
                volcengine.vke.DefaultNodePoolKubernetesConfigLabelArgs(
                    key="tf-key1",
                    value="tf-value1",
                ),
                volcengine.vke.DefaultNodePoolKubernetesConfigLabelArgs(
                    key="tf-key2",
                    value="tf-value2",
                ),
            ],
            taints=[
                volcengine.vke.DefaultNodePoolKubernetesConfigTaintArgs(
                    key="tf-key3",
                    value="tf-value3",
                    effect="NoSchedule",
                ),
                volcengine.vke.DefaultNodePoolKubernetesConfigTaintArgs(
                    key="tf-key4",
                    value="tf-value4",
                    effect="NoSchedule",
                ),
            ],
            cordon=True,
        ),
        tags=[volcengine.vke.DefaultNodePoolTagArgs(
            key="tf-k1",
            value="tf-v1",
        )])
    foo_default_node_pool_batch_attach = volcengine.vke.DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach",
        cluster_id=foo_cluster.id,
        default_node_pool_id=foo_default_node_pool.id,
        instances=[
            volcengine.vke.DefaultNodePoolBatchAttachInstanceArgs(
                instance_id=foo_instance.id,
                keep_instance_name=True,
                additional_container_storage_enabled=False,
            ),
            volcengine.vke.DefaultNodePoolBatchAttachInstanceArgs(
                instance_id=foo2.id,
                keep_instance_name=True,
                additional_container_storage_enabled=False,
            ),
        ],
        kubernetes_config=volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigArgs(
            labels=[
                volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs(
                    key="tf-key1",
                    value="tf-value1",
                ),
                volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs(
                    key="tf-key2",
                    value="tf-value2",
                ),
            ],
            taints=[
                volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs(
                    key="tf-key3",
                    value="tf-value3",
                    effect="NoSchedule",
                ),
                volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs(
                    key="tf-key4",
                    value="tf-value4",
                    effect="NoSchedule",
                ),
            ],
            cordon=True,
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-project1",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-subnet-test-2",
        cidrBlock: "172.16.0.0/24",
        zoneId: "cn-beijing-a",
        vpcId: fooVpc.id,
    });
    const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
        vpcId: fooVpc.id,
        securityGroupName: "acc-test-security-group2",
    });
    const fooInstance = new volcengine.ecs.Instance("fooInstance", {
        imageId: "image-ybqi99s7yq8rx7mnk44b",
        instanceType: "ecs.g1ie.large",
        instanceName: "acc-test-ecs-name2",
        password: "93f0cb0614Aab12",
        instanceChargeType: "PostPaid",
        systemVolumeType: "ESSD_PL0",
        systemVolumeSize: 40,
        subnetId: fooSubnet.id,
        securityGroupIds: [fooSecurityGroup.id],
    });
    const foo2 = new volcengine.ecs.Instance("foo2", {
        imageId: "image-ybqi99s7yq8rx7mnk44b",
        instanceType: "ecs.g1ie.large",
        instanceName: "acc-test-ecs-name2",
        password: "93f0cb0614Aab12",
        instanceChargeType: "PostPaid",
        systemVolumeType: "ESSD_PL0",
        systemVolumeSize: 40,
        subnetId: fooSubnet.id,
        securityGroupIds: [fooSecurityGroup.id],
    });
    const fooCluster = new volcengine.vke.Cluster("fooCluster", {
        description: "created by terraform",
        deleteProtectionEnabled: false,
        clusterConfig: {
            subnetIds: [fooSubnet.id],
            apiServerPublicAccessEnabled: true,
            apiServerPublicAccessConfig: {
                publicAccessNetworkConfig: {
                    billingType: "PostPaidByBandwidth",
                    bandwidth: 1,
                },
            },
            resourcePublicAccessDefaultEnabled: true,
        },
        podsConfig: {
            podNetworkMode: "VpcCniShared",
            vpcCniConfig: {
                subnetIds: [fooSubnet.id],
            },
        },
        servicesConfig: {
            serviceCidrsv4s: ["172.30.0.0/18"],
        },
        tags: [{
            key: "tf-k1",
            value: "tf-v1",
        }],
    });
    const fooDefaultNodePool = new volcengine.vke.DefaultNodePool("fooDefaultNodePool", {
        clusterId: fooCluster.id,
        nodeConfig: {
            security: {
                login: {
                    password: "amw4WTdVcTRJVVFsUXpVTw==",
                },
                securityGroupIds: [fooSecurityGroup.id],
                securityStrategies: ["Hids"],
            },
            initializeScript: "ISMvYmluL2Jhc2gKZWNobyAx",
        },
        kubernetesConfig: {
            labels: [
                {
                    key: "tf-key1",
                    value: "tf-value1",
                },
                {
                    key: "tf-key2",
                    value: "tf-value2",
                },
            ],
            taints: [
                {
                    key: "tf-key3",
                    value: "tf-value3",
                    effect: "NoSchedule",
                },
                {
                    key: "tf-key4",
                    value: "tf-value4",
                    effect: "NoSchedule",
                },
            ],
            cordon: true,
        },
        tags: [{
            key: "tf-k1",
            value: "tf-v1",
        }],
    });
    const fooDefaultNodePoolBatchAttach = new volcengine.vke.DefaultNodePoolBatchAttach("fooDefaultNodePoolBatchAttach", {
        clusterId: fooCluster.id,
        defaultNodePoolId: fooDefaultNodePool.id,
        instances: [
            {
                instanceId: fooInstance.id,
                keepInstanceName: true,
                additionalContainerStorageEnabled: false,
            },
            {
                instanceId: foo2.id,
                keepInstanceName: true,
                additionalContainerStorageEnabled: false,
            },
        ],
        kubernetesConfig: {
            labels: [
                {
                    key: "tf-key1",
                    value: "tf-value1",
                },
                {
                    key: "tf-key2",
                    value: "tf-value2",
                },
            ],
            taints: [
                {
                    key: "tf-key3",
                    value: "tf-value3",
                    effect: "NoSchedule",
                },
                {
                    key: "tf-key4",
                    value: "tf-value4",
                    effect: "NoSchedule",
                },
            ],
            cordon: true,
        },
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-project1
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-subnet-test-2
          cidrBlock: 172.16.0.0/24
          zoneId: cn-beijing-a
          vpcId: ${fooVpc.id}
      fooSecurityGroup:
        type: volcengine:vpc:SecurityGroup
        properties:
          vpcId: ${fooVpc.id}
          securityGroupName: acc-test-security-group2
      fooInstance:
        type: volcengine:ecs:Instance
        properties:
          imageId: image-ybqi99s7yq8rx7mnk44b
          instanceType: ecs.g1ie.large
          instanceName: acc-test-ecs-name2
          password: 93f0cb0614Aab12
          instanceChargeType: PostPaid
          systemVolumeType: ESSD_PL0
          systemVolumeSize: 40
          subnetId: ${fooSubnet.id}
          securityGroupIds:
            - ${fooSecurityGroup.id}
      foo2:
        type: volcengine:ecs:Instance
        properties:
          imageId: image-ybqi99s7yq8rx7mnk44b
          instanceType: ecs.g1ie.large
          instanceName: acc-test-ecs-name2
          password: 93f0cb0614Aab12
          instanceChargeType: PostPaid
          systemVolumeType: ESSD_PL0
          systemVolumeSize: 40
          subnetId: ${fooSubnet.id}
          securityGroupIds:
            - ${fooSecurityGroup.id}
      fooCluster:
        type: volcengine:vke:Cluster
        properties:
          description: created by terraform
          deleteProtectionEnabled: false
          clusterConfig:
            subnetIds:
              - ${fooSubnet.id}
            apiServerPublicAccessEnabled: true
            apiServerPublicAccessConfig:
              publicAccessNetworkConfig:
                billingType: PostPaidByBandwidth
                bandwidth: 1
            resourcePublicAccessDefaultEnabled: true
          podsConfig:
            podNetworkMode: VpcCniShared
            vpcCniConfig:
              subnetIds:
                - ${fooSubnet.id}
          servicesConfig:
            serviceCidrsv4s:
              - 172.30.0.0/18
          tags:
            - key: tf-k1
              value: tf-v1
      fooDefaultNodePool:
        type: volcengine:vke:DefaultNodePool
        properties:
          clusterId: ${fooCluster.id}
          nodeConfig:
            security:
              login:
                password: amw4WTdVcTRJVVFsUXpVTw==
              securityGroupIds:
                - ${fooSecurityGroup.id}
              securityStrategies:
                - Hids
            initializeScript: ISMvYmluL2Jhc2gKZWNobyAx
          kubernetesConfig:
            labels:
              - key: tf-key1
                value: tf-value1
              - key: tf-key2
                value: tf-value2
            taints:
              - key: tf-key3
                value: tf-value3
                effect: NoSchedule
              - key: tf-key4
                value: tf-value4
                effect: NoSchedule
            cordon: true
          tags:
            - key: tf-k1
              value: tf-v1
      fooDefaultNodePoolBatchAttach:
        type: volcengine:vke:DefaultNodePoolBatchAttach
        properties:
          clusterId: ${fooCluster.id}
          defaultNodePoolId: ${fooDefaultNodePool.id}
          instances:
            - instanceId: ${fooInstance.id}
              keepInstanceName: true
              additionalContainerStorageEnabled: false
            - instanceId: ${foo2.id}
              keepInstanceName: true
              additionalContainerStorageEnabled: false
          kubernetesConfig:
            labels:
              - key: tf-key1
                value: tf-value1
              - key: tf-key2
                value: tf-value2
            taints:
              - key: tf-key3
                value: tf-value3
                effect: NoSchedule
              - key: tf-key4
                value: tf-value4
                effect: NoSchedule
            cordon: true
    

    Create DefaultNodePoolBatchAttach Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DefaultNodePoolBatchAttach(name: string, args: DefaultNodePoolBatchAttachArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultNodePoolBatchAttach(resource_name: str,
                                   args: DefaultNodePoolBatchAttachArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultNodePoolBatchAttach(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   cluster_id: Optional[str] = None,
                                   default_node_pool_id: Optional[str] = None,
                                   instances: Optional[Sequence[DefaultNodePoolBatchAttachInstanceArgs]] = None,
                                   kubernetes_config: Optional[DefaultNodePoolBatchAttachKubernetesConfigArgs] = None)
    func NewDefaultNodePoolBatchAttach(ctx *Context, name string, args DefaultNodePoolBatchAttachArgs, opts ...ResourceOption) (*DefaultNodePoolBatchAttach, error)
    public DefaultNodePoolBatchAttach(string name, DefaultNodePoolBatchAttachArgs args, CustomResourceOptions? opts = null)
    public DefaultNodePoolBatchAttach(String name, DefaultNodePoolBatchAttachArgs args)
    public DefaultNodePoolBatchAttach(String name, DefaultNodePoolBatchAttachArgs args, CustomResourceOptions options)
    
    type: volcengine:vke:DefaultNodePoolBatchAttach
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DefaultNodePoolBatchAttachArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DefaultNodePoolBatchAttachArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DefaultNodePoolBatchAttachArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultNodePoolBatchAttachArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultNodePoolBatchAttachArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var defaultNodePoolBatchAttachResource = new Volcengine.Vke.DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource", new()
    {
        ClusterId = "string",
        DefaultNodePoolId = "string",
        Instances = new[]
        {
            new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachInstanceArgs
            {
                InstanceId = "string",
                AdditionalContainerStorageEnabled = false,
                ContainerStoragePath = "string",
                Id = "string",
                ImageId = "string",
                KeepInstanceName = false,
                Phase = "string",
            },
        },
        KubernetesConfig = new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigArgs
        {
            Cordon = false,
            Labels = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            Taints = new[]
            {
                new Volcengine.Vke.Inputs.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs
                {
                    Key = "string",
                    Effect = "string",
                    Value = "string",
                },
            },
        },
    });
    
    example, err := vke.NewDefaultNodePoolBatchAttach(ctx, "defaultNodePoolBatchAttachResource", &vke.DefaultNodePoolBatchAttachArgs{
    	ClusterId:         pulumi.String("string"),
    	DefaultNodePoolId: pulumi.String("string"),
    	Instances: vke.DefaultNodePoolBatchAttachInstanceArray{
    		&vke.DefaultNodePoolBatchAttachInstanceArgs{
    			InstanceId:                        pulumi.String("string"),
    			AdditionalContainerStorageEnabled: pulumi.Bool(false),
    			ContainerStoragePath:              pulumi.String("string"),
    			Id:                                pulumi.String("string"),
    			ImageId:                           pulumi.String("string"),
    			KeepInstanceName:                  pulumi.Bool(false),
    			Phase:                             pulumi.String("string"),
    		},
    	},
    	KubernetesConfig: &vke.DefaultNodePoolBatchAttachKubernetesConfigArgs{
    		Cordon: pulumi.Bool(false),
    		Labels: vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArray{
    			&vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		Taints: vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArray{
    			&vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs{
    				Key:    pulumi.String("string"),
    				Effect: pulumi.String("string"),
    				Value:  pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var defaultNodePoolBatchAttachResource = new DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource", DefaultNodePoolBatchAttachArgs.builder()
        .clusterId("string")
        .defaultNodePoolId("string")
        .instances(DefaultNodePoolBatchAttachInstanceArgs.builder()
            .instanceId("string")
            .additionalContainerStorageEnabled(false)
            .containerStoragePath("string")
            .id("string")
            .imageId("string")
            .keepInstanceName(false)
            .phase("string")
            .build())
        .kubernetesConfig(DefaultNodePoolBatchAttachKubernetesConfigArgs.builder()
            .cordon(false)
            .labels(DefaultNodePoolBatchAttachKubernetesConfigLabelArgs.builder()
                .key("string")
                .value("string")
                .build())
            .taints(DefaultNodePoolBatchAttachKubernetesConfigTaintArgs.builder()
                .key("string")
                .effect("string")
                .value("string")
                .build())
            .build())
        .build());
    
    default_node_pool_batch_attach_resource = volcengine.vke.DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource",
        cluster_id="string",
        default_node_pool_id="string",
        instances=[volcengine.vke.DefaultNodePoolBatchAttachInstanceArgs(
            instance_id="string",
            additional_container_storage_enabled=False,
            container_storage_path="string",
            id="string",
            image_id="string",
            keep_instance_name=False,
            phase="string",
        )],
        kubernetes_config=volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigArgs(
            cordon=False,
            labels=[volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigLabelArgs(
                key="string",
                value="string",
            )],
            taints=[volcengine.vke.DefaultNodePoolBatchAttachKubernetesConfigTaintArgs(
                key="string",
                effect="string",
                value="string",
            )],
        ))
    
    const defaultNodePoolBatchAttachResource = new volcengine.vke.DefaultNodePoolBatchAttach("defaultNodePoolBatchAttachResource", {
        clusterId: "string",
        defaultNodePoolId: "string",
        instances: [{
            instanceId: "string",
            additionalContainerStorageEnabled: false,
            containerStoragePath: "string",
            id: "string",
            imageId: "string",
            keepInstanceName: false,
            phase: "string",
        }],
        kubernetesConfig: {
            cordon: false,
            labels: [{
                key: "string",
                value: "string",
            }],
            taints: [{
                key: "string",
                effect: "string",
                value: "string",
            }],
        },
    });
    
    type: volcengine:vke:DefaultNodePoolBatchAttach
    properties:
        clusterId: string
        defaultNodePoolId: string
        instances:
            - additionalContainerStorageEnabled: false
              containerStoragePath: string
              id: string
              imageId: string
              instanceId: string
              keepInstanceName: false
              phase: string
        kubernetesConfig:
            cordon: false
            labels:
                - key: string
                  value: string
            taints:
                - effect: string
                  key: string
                  value: string
    

    DefaultNodePoolBatchAttach Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DefaultNodePoolBatchAttach resource accepts the following input properties:

    ClusterId string
    The ClusterId of NodePool.
    DefaultNodePoolId string
    The default NodePool ID.
    Instances List<Volcengine.DefaultNodePoolBatchAttachInstance>
    The ECS InstanceIds add to NodePool.
    KubernetesConfig Volcengine.DefaultNodePoolBatchAttachKubernetesConfig
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    ClusterId string
    The ClusterId of NodePool.
    DefaultNodePoolId string
    The default NodePool ID.
    Instances []DefaultNodePoolBatchAttachInstanceArgs
    The ECS InstanceIds add to NodePool.
    KubernetesConfig DefaultNodePoolBatchAttachKubernetesConfigArgs
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    clusterId String
    The ClusterId of NodePool.
    defaultNodePoolId String
    The default NodePool ID.
    instances List<DefaultNodePoolBatchAttachInstance>
    The ECS InstanceIds add to NodePool.
    kubernetesConfig DefaultNodePoolBatchAttachKubernetesConfig
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    clusterId string
    The ClusterId of NodePool.
    defaultNodePoolId string
    The default NodePool ID.
    instances DefaultNodePoolBatchAttachInstance[]
    The ECS InstanceIds add to NodePool.
    kubernetesConfig DefaultNodePoolBatchAttachKubernetesConfig
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    cluster_id str
    The ClusterId of NodePool.
    default_node_pool_id str
    The default NodePool ID.
    instances Sequence[DefaultNodePoolBatchAttachInstanceArgs]
    The ECS InstanceIds add to NodePool.
    kubernetes_config DefaultNodePoolBatchAttachKubernetesConfigArgs
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    clusterId String
    The ClusterId of NodePool.
    defaultNodePoolId String
    The default NodePool ID.
    instances List<Property Map>
    The ECS InstanceIds add to NodePool.
    kubernetesConfig Property Map
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DefaultNodePoolBatchAttach resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    NodeConfigs List<Volcengine.DefaultNodePoolBatchAttachNodeConfig>
    The Config of NodePool.
    Tags List<Volcengine.DefaultNodePoolBatchAttachTag>
    Tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    NodeConfigs []DefaultNodePoolBatchAttachNodeConfig
    The Config of NodePool.
    Tags []DefaultNodePoolBatchAttachTag
    Tags.
    id String
    The provider-assigned unique ID for this managed resource.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    nodeConfigs List<DefaultNodePoolBatchAttachNodeConfig>
    The Config of NodePool.
    tags List<DefaultNodePoolBatchAttachTag>
    Tags.
    id string
    The provider-assigned unique ID for this managed resource.
    isImport boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    nodeConfigs DefaultNodePoolBatchAttachNodeConfig[]
    The Config of NodePool.
    tags DefaultNodePoolBatchAttachTag[]
    Tags.
    id str
    The provider-assigned unique ID for this managed resource.
    is_import bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    node_configs Sequence[DefaultNodePoolBatchAttachNodeConfig]
    The Config of NodePool.
    tags Sequence[DefaultNodePoolBatchAttachTag]
    Tags.
    id String
    The provider-assigned unique ID for this managed resource.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    nodeConfigs List<Property Map>
    The Config of NodePool.
    tags List<Property Map>
    Tags.

    Look up Existing DefaultNodePoolBatchAttach Resource

    Get an existing DefaultNodePoolBatchAttach resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DefaultNodePoolBatchAttachState, opts?: CustomResourceOptions): DefaultNodePoolBatchAttach
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            default_node_pool_id: Optional[str] = None,
            instances: Optional[Sequence[DefaultNodePoolBatchAttachInstanceArgs]] = None,
            is_import: Optional[bool] = None,
            kubernetes_config: Optional[DefaultNodePoolBatchAttachKubernetesConfigArgs] = None,
            node_configs: Optional[Sequence[DefaultNodePoolBatchAttachNodeConfigArgs]] = None,
            tags: Optional[Sequence[DefaultNodePoolBatchAttachTagArgs]] = None) -> DefaultNodePoolBatchAttach
    func GetDefaultNodePoolBatchAttach(ctx *Context, name string, id IDInput, state *DefaultNodePoolBatchAttachState, opts ...ResourceOption) (*DefaultNodePoolBatchAttach, error)
    public static DefaultNodePoolBatchAttach Get(string name, Input<string> id, DefaultNodePoolBatchAttachState? state, CustomResourceOptions? opts = null)
    public static DefaultNodePoolBatchAttach get(String name, Output<String> id, DefaultNodePoolBatchAttachState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClusterId string
    The ClusterId of NodePool.
    DefaultNodePoolId string
    The default NodePool ID.
    Instances List<Volcengine.DefaultNodePoolBatchAttachInstance>
    The ECS InstanceIds add to NodePool.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    KubernetesConfig Volcengine.DefaultNodePoolBatchAttachKubernetesConfig
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    NodeConfigs List<Volcengine.DefaultNodePoolBatchAttachNodeConfig>
    The Config of NodePool.
    Tags List<Volcengine.DefaultNodePoolBatchAttachTag>
    Tags.
    ClusterId string
    The ClusterId of NodePool.
    DefaultNodePoolId string
    The default NodePool ID.
    Instances []DefaultNodePoolBatchAttachInstanceArgs
    The ECS InstanceIds add to NodePool.
    IsImport bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    KubernetesConfig DefaultNodePoolBatchAttachKubernetesConfigArgs
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    NodeConfigs []DefaultNodePoolBatchAttachNodeConfigArgs
    The Config of NodePool.
    Tags []DefaultNodePoolBatchAttachTagArgs
    Tags.
    clusterId String
    The ClusterId of NodePool.
    defaultNodePoolId String
    The default NodePool ID.
    instances List<DefaultNodePoolBatchAttachInstance>
    The ECS InstanceIds add to NodePool.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetesConfig DefaultNodePoolBatchAttachKubernetesConfig
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    nodeConfigs List<DefaultNodePoolBatchAttachNodeConfig>
    The Config of NodePool.
    tags List<DefaultNodePoolBatchAttachTag>
    Tags.
    clusterId string
    The ClusterId of NodePool.
    defaultNodePoolId string
    The default NodePool ID.
    instances DefaultNodePoolBatchAttachInstance[]
    The ECS InstanceIds add to NodePool.
    isImport boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetesConfig DefaultNodePoolBatchAttachKubernetesConfig
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    nodeConfigs DefaultNodePoolBatchAttachNodeConfig[]
    The Config of NodePool.
    tags DefaultNodePoolBatchAttachTag[]
    Tags.
    cluster_id str
    The ClusterId of NodePool.
    default_node_pool_id str
    The default NodePool ID.
    instances Sequence[DefaultNodePoolBatchAttachInstanceArgs]
    The ECS InstanceIds add to NodePool.
    is_import bool
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetes_config DefaultNodePoolBatchAttachKubernetesConfigArgs
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    node_configs Sequence[DefaultNodePoolBatchAttachNodeConfigArgs]
    The Config of NodePool.
    tags Sequence[DefaultNodePoolBatchAttachTagArgs]
    Tags.
    clusterId String
    The ClusterId of NodePool.
    defaultNodePoolId String
    The default NodePool ID.
    instances List<Property Map>
    The ECS InstanceIds add to NodePool.
    isImport Boolean
    Is import of the DefaultNodePool. It only works when imported, set to true.
    kubernetesConfig Property Map
    The KubernetesConfig of NodeConfig. Please note that this field is the configuration of the node. The same key is subject to the config of the node pool. Different keys take effect together.
    nodeConfigs List<Property Map>
    The Config of NodePool.
    tags List<Property Map>
    Tags.

    Supporting Types

    DefaultNodePoolBatchAttachInstance, DefaultNodePoolBatchAttachInstanceArgs

    InstanceId string
    The instance id.
    AdditionalContainerStorageEnabled bool
    The flag of additional container storage enable, the value is true or false..Default is false.
    ContainerStoragePath string
    The container storage path.When additional_container_storage_enabled is false will ignore.
    Id string
    ID of the resource.
    ImageId string
    The Image Id to the ECS Instance.
    KeepInstanceName bool
    The flag of keep instance name, the value is true or false.Default is false.
    Phase string
    InstanceId string
    The instance id.
    AdditionalContainerStorageEnabled bool
    The flag of additional container storage enable, the value is true or false..Default is false.
    ContainerStoragePath string
    The container storage path.When additional_container_storage_enabled is false will ignore.
    Id string
    ID of the resource.
    ImageId string
    The Image Id to the ECS Instance.
    KeepInstanceName bool
    The flag of keep instance name, the value is true or false.Default is false.
    Phase string
    instanceId String
    The instance id.
    additionalContainerStorageEnabled Boolean
    The flag of additional container storage enable, the value is true or false..Default is false.
    containerStoragePath String
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id String
    ID of the resource.
    imageId String
    The Image Id to the ECS Instance.
    keepInstanceName Boolean
    The flag of keep instance name, the value is true or false.Default is false.
    phase String
    instanceId string
    The instance id.
    additionalContainerStorageEnabled boolean
    The flag of additional container storage enable, the value is true or false..Default is false.
    containerStoragePath string
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id string
    ID of the resource.
    imageId string
    The Image Id to the ECS Instance.
    keepInstanceName boolean
    The flag of keep instance name, the value is true or false.Default is false.
    phase string
    instance_id str
    The instance id.
    additional_container_storage_enabled bool
    The flag of additional container storage enable, the value is true or false..Default is false.
    container_storage_path str
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id str
    ID of the resource.
    image_id str
    The Image Id to the ECS Instance.
    keep_instance_name bool
    The flag of keep instance name, the value is true or false.Default is false.
    phase str
    instanceId String
    The instance id.
    additionalContainerStorageEnabled Boolean
    The flag of additional container storage enable, the value is true or false..Default is false.
    containerStoragePath String
    The container storage path.When additional_container_storage_enabled is false will ignore.
    id String
    ID of the resource.
    imageId String
    The Image Id to the ECS Instance.
    keepInstanceName Boolean
    The flag of keep instance name, the value is true or false.Default is false.
    phase String

    DefaultNodePoolBatchAttachKubernetesConfig, DefaultNodePoolBatchAttachKubernetesConfigArgs

    Cordon bool
    The Cordon of KubernetesConfig.
    Labels List<Volcengine.DefaultNodePoolBatchAttachKubernetesConfigLabel>
    The Labels of KubernetesConfig.
    Taints List<Volcengine.DefaultNodePoolBatchAttachKubernetesConfigTaint>
    The Taints of KubernetesConfig.
    Cordon bool
    The Cordon of KubernetesConfig.
    Labels []DefaultNodePoolBatchAttachKubernetesConfigLabel
    The Labels of KubernetesConfig.
    Taints []DefaultNodePoolBatchAttachKubernetesConfigTaint
    The Taints of KubernetesConfig.
    cordon Boolean
    The Cordon of KubernetesConfig.
    labels List<DefaultNodePoolBatchAttachKubernetesConfigLabel>
    The Labels of KubernetesConfig.
    taints List<DefaultNodePoolBatchAttachKubernetesConfigTaint>
    The Taints of KubernetesConfig.
    cordon boolean
    The Cordon of KubernetesConfig.
    labels DefaultNodePoolBatchAttachKubernetesConfigLabel[]
    The Labels of KubernetesConfig.
    taints DefaultNodePoolBatchAttachKubernetesConfigTaint[]
    The Taints of KubernetesConfig.
    cordon bool
    The Cordon of KubernetesConfig.
    labels Sequence[DefaultNodePoolBatchAttachKubernetesConfigLabel]
    The Labels of KubernetesConfig.
    taints Sequence[DefaultNodePoolBatchAttachKubernetesConfigTaint]
    The Taints of KubernetesConfig.
    cordon Boolean
    The Cordon of KubernetesConfig.
    labels List<Property Map>
    The Labels of KubernetesConfig.
    taints List<Property Map>
    The Taints of KubernetesConfig.

    DefaultNodePoolBatchAttachKubernetesConfigLabel, DefaultNodePoolBatchAttachKubernetesConfigLabelArgs

    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.
    key string
    The Key of Labels.
    value string
    The Value of Labels.
    key str
    The Key of Labels.
    value str
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.

    DefaultNodePoolBatchAttachKubernetesConfigTaint, DefaultNodePoolBatchAttachKubernetesConfigTaintArgs

    Key string
    The Key of Taints.
    Effect string
    The Effect of Taints. The value can be one of the following: NoSchedule, NoExecute, PreferNoSchedule, default value is NoSchedule.
    Value string
    The Value of Taints.
    Key string
    The Key of Taints.
    Effect string
    The Effect of Taints. The value can be one of the following: NoSchedule, NoExecute, PreferNoSchedule, default value is NoSchedule.
    Value string
    The Value of Taints.
    key String
    The Key of Taints.
    effect String
    The Effect of Taints. The value can be one of the following: NoSchedule, NoExecute, PreferNoSchedule, default value is NoSchedule.
    value String
    The Value of Taints.
    key string
    The Key of Taints.
    effect string
    The Effect of Taints. The value can be one of the following: NoSchedule, NoExecute, PreferNoSchedule, default value is NoSchedule.
    value string
    The Value of Taints.
    key str
    The Key of Taints.
    effect str
    The Effect of Taints. The value can be one of the following: NoSchedule, NoExecute, PreferNoSchedule, default value is NoSchedule.
    value str
    The Value of Taints.
    key String
    The Key of Taints.
    effect String
    The Effect of Taints. The value can be one of the following: NoSchedule, NoExecute, PreferNoSchedule, default value is NoSchedule.
    value String
    The Value of Taints.

    DefaultNodePoolBatchAttachNodeConfig, DefaultNodePoolBatchAttachNodeConfigArgs

    EcsTags List<Volcengine.DefaultNodePoolBatchAttachNodeConfigEcsTag>
    Tags for Ecs.
    InitializeScript string
    The initializeScript of NodeConfig.
    NamePrefix string
    The NamePrefix of NodeConfig.
    Securities List<Volcengine.DefaultNodePoolBatchAttachNodeConfigSecurity>
    The Security of NodeConfig.
    EcsTags []DefaultNodePoolBatchAttachNodeConfigEcsTag
    Tags for Ecs.
    InitializeScript string
    The initializeScript of NodeConfig.
    NamePrefix string
    The NamePrefix of NodeConfig.
    Securities []DefaultNodePoolBatchAttachNodeConfigSecurity
    The Security of NodeConfig.
    ecsTags List<DefaultNodePoolBatchAttachNodeConfigEcsTag>
    Tags for Ecs.
    initializeScript String
    The initializeScript of NodeConfig.
    namePrefix String
    The NamePrefix of NodeConfig.
    securities List<DefaultNodePoolBatchAttachNodeConfigSecurity>
    The Security of NodeConfig.
    ecsTags DefaultNodePoolBatchAttachNodeConfigEcsTag[]
    Tags for Ecs.
    initializeScript string
    The initializeScript of NodeConfig.
    namePrefix string
    The NamePrefix of NodeConfig.
    securities DefaultNodePoolBatchAttachNodeConfigSecurity[]
    The Security of NodeConfig.
    ecs_tags Sequence[DefaultNodePoolBatchAttachNodeConfigEcsTag]
    Tags for Ecs.
    initialize_script str
    The initializeScript of NodeConfig.
    name_prefix str
    The NamePrefix of NodeConfig.
    securities Sequence[DefaultNodePoolBatchAttachNodeConfigSecurity]
    The Security of NodeConfig.
    ecsTags List<Property Map>
    Tags for Ecs.
    initializeScript String
    The initializeScript of NodeConfig.
    namePrefix String
    The NamePrefix of NodeConfig.
    securities List<Property Map>
    The Security of NodeConfig.

    DefaultNodePoolBatchAttachNodeConfigEcsTag, DefaultNodePoolBatchAttachNodeConfigEcsTagArgs

    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.
    key string
    The Key of Labels.
    value string
    The Value of Labels.
    key str
    The Key of Labels.
    value str
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.

    DefaultNodePoolBatchAttachNodeConfigSecurity, DefaultNodePoolBatchAttachNodeConfigSecurityArgs

    Logins List<Volcengine.DefaultNodePoolBatchAttachNodeConfigSecurityLogin>
    The Login of Security.
    SecurityGroupIds List<string>
    The SecurityGroupIds of Security.
    SecurityStrategies List<string>
    The SecurityStrategies of Security.
    Logins []DefaultNodePoolBatchAttachNodeConfigSecurityLogin
    The Login of Security.
    SecurityGroupIds []string
    The SecurityGroupIds of Security.
    SecurityStrategies []string
    The SecurityStrategies of Security.
    logins List<DefaultNodePoolBatchAttachNodeConfigSecurityLogin>
    The Login of Security.
    securityGroupIds List<String>
    The SecurityGroupIds of Security.
    securityStrategies List<String>
    The SecurityStrategies of Security.
    logins DefaultNodePoolBatchAttachNodeConfigSecurityLogin[]
    The Login of Security.
    securityGroupIds string[]
    The SecurityGroupIds of Security.
    securityStrategies string[]
    The SecurityStrategies of Security.
    logins Sequence[DefaultNodePoolBatchAttachNodeConfigSecurityLogin]
    The Login of Security.
    security_group_ids Sequence[str]
    The SecurityGroupIds of Security.
    security_strategies Sequence[str]
    The SecurityStrategies of Security.
    logins List<Property Map>
    The Login of Security.
    securityGroupIds List<String>
    The SecurityGroupIds of Security.
    securityStrategies List<String>
    The SecurityStrategies of Security.

    DefaultNodePoolBatchAttachNodeConfigSecurityLogin, DefaultNodePoolBatchAttachNodeConfigSecurityLoginArgs

    Password string
    The Password of Security.
    SshKeyPairName string
    The SshKeyPairName of Security.
    Password string
    The Password of Security.
    SshKeyPairName string
    The SshKeyPairName of Security.
    password String
    The Password of Security.
    sshKeyPairName String
    The SshKeyPairName of Security.
    password string
    The Password of Security.
    sshKeyPairName string
    The SshKeyPairName of Security.
    password str
    The Password of Security.
    ssh_key_pair_name str
    The SshKeyPairName of Security.
    password String
    The Password of Security.
    sshKeyPairName String
    The SshKeyPairName of Security.

    DefaultNodePoolBatchAttachTag, DefaultNodePoolBatchAttachTagArgs

    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    Key string
    The Key of Labels.
    Value string
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.
    key string
    The Key of Labels.
    value string
    The Value of Labels.
    key str
    The Key of Labels.
    value str
    The Value of Labels.
    key String
    The Key of Labels.
    value String
    The Value of Labels.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine