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

com.pulumi.alicloud.ehpc.kotlin.ClusterArgs.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.ehpc.kotlin

import com.pulumi.alicloud.ehpc.ClusterArgs.builder
import com.pulumi.alicloud.ehpc.kotlin.inputs.ClusterAdditionalVolumeArgs
import com.pulumi.alicloud.ehpc.kotlin.inputs.ClusterAdditionalVolumeArgsBuilder
import com.pulumi.alicloud.ehpc.kotlin.inputs.ClusterApplicationArgs
import com.pulumi.alicloud.ehpc.kotlin.inputs.ClusterApplicationArgsBuilder
import com.pulumi.alicloud.ehpc.kotlin.inputs.ClusterPostInstallScriptArgs
import com.pulumi.alicloud.ehpc.kotlin.inputs.ClusterPostInstallScriptArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a Ehpc Cluster resource.
 * For information about Ehpc Cluster and how to use it, see [What is Cluster](https://www.alibabacloud.com/help/en/e-hpc/developer-reference/api-ehpc-2018-04-12-createcluster).
 * > **NOTE:** Available since v1.173.0.
 * ## Example Usage
 * Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as alicloud from "@pulumi/alicloud";
 * const config = new pulumi.Config();
 * const name = config.get("name") || "tf-example";
 * const default = alicloud.getZones({
 *     availableResourceCreation: "VSwitch",
 * });
 * const defaultGetImages = alicloud.ecs.getImages({
 *     nameRegex: "^centos_7_6_x64*",
 *     owners: "system",
 * });
 * const defaultGetInstanceTypes = _default.then(_default => alicloud.ecs.getInstanceTypes({
 *     availabilityZone: _default.zones?.[0]?.id,
 * }));
 * const defaultNetwork = new alicloud.vpc.Network("default", {
 *     vpcName: name,
 *     cidrBlock: "10.0.0.0/8",
 * });
 * const defaultSwitch = new alicloud.vpc.Switch("default", {
 *     vswitchName: name,
 *     cidrBlock: "10.1.0.0/16",
 *     vpcId: defaultNetwork.id,
 *     zoneId: _default.then(_default => _default.zones?.[0]?.id),
 * });
 * const defaultFileSystem = new alicloud.nas.FileSystem("default", {
 *     storageType: "Performance",
 *     protocolType: "NFS",
 * });
 * const defaultMountTarget = new alicloud.nas.MountTarget("default", {
 *     fileSystemId: defaultFileSystem.id,
 *     accessGroupName: "DEFAULT_VPC_GROUP_NAME",
 *     vswitchId: defaultSwitch.id,
 * });
 * const defaultCluster = new alicloud.ehpc.Cluster("default", {
 *     clusterName: name,
 *     deployMode: "Simple",
 *     description: name,
 *     haEnable: false,
 *     imageId: defaultGetImages.then(defaultGetImages => defaultGetImages.images?.[0]?.id),
 *     imageOwnerAlias: "system",
 *     volumeProtocol: "nfs",
 *     volumeId: defaultFileSystem.id,
 *     volumeMountpoint: defaultMountTarget.mountTargetDomain,
 *     computeCount: 1,
 *     computeInstanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
 *     loginCount: 1,
 *     loginInstanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
 *     managerCount: 1,
 *     managerInstanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
 *     osTag: "CentOS_7.6_64",
 *     schedulerType: "pbs",
 *     password: "your-password123",
 *     vswitchId: defaultSwitch.id,
 *     vpcId: defaultNetwork.id,
 *     zoneId: _default.then(_default => _default.zones?.[0]?.id),
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_alicloud as alicloud
 * config = pulumi.Config()
 * name = config.get("name")
 * if name is None:
 *     name = "tf-example"
 * default = alicloud.get_zones(available_resource_creation="VSwitch")
 * default_get_images = alicloud.ecs.get_images(name_regex="^centos_7_6_x64*",
 *     owners="system")
 * default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id)
 * default_network = alicloud.vpc.Network("default",
 *     vpc_name=name,
 *     cidr_block="10.0.0.0/8")
 * default_switch = alicloud.vpc.Switch("default",
 *     vswitch_name=name,
 *     cidr_block="10.1.0.0/16",
 *     vpc_id=default_network.id,
 *     zone_id=default.zones[0].id)
 * default_file_system = alicloud.nas.FileSystem("default",
 *     storage_type="Performance",
 *     protocol_type="NFS")
 * default_mount_target = alicloud.nas.MountTarget("default",
 *     file_system_id=default_file_system.id,
 *     access_group_name="DEFAULT_VPC_GROUP_NAME",
 *     vswitch_id=default_switch.id)
 * default_cluster = alicloud.ehpc.Cluster("default",
 *     cluster_name=name,
 *     deploy_mode="Simple",
 *     description=name,
 *     ha_enable=False,
 *     image_id=default_get_images.images[0].id,
 *     image_owner_alias="system",
 *     volume_protocol="nfs",
 *     volume_id=default_file_system.id,
 *     volume_mountpoint=default_mount_target.mount_target_domain,
 *     compute_count=1,
 *     compute_instance_type=default_get_instance_types.instance_types[0].id,
 *     login_count=1,
 *     login_instance_type=default_get_instance_types.instance_types[0].id,
 *     manager_count=1,
 *     manager_instance_type=default_get_instance_types.instance_types[0].id,
 *     os_tag="CentOS_7.6_64",
 *     scheduler_type="pbs",
 *     password="your-password123",
 *     vswitch_id=default_switch.id,
 *     vpc_id=default_network.id,
 *     zone_id=default.zones[0].id)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AliCloud = Pulumi.AliCloud;
 * return await Deployment.RunAsync(() =>
 * {
 *     var config = new Config();
 *     var name = config.Get("name") ?? "tf-example";
 *     var @default = AliCloud.GetZones.Invoke(new()
 *     {
 *         AvailableResourceCreation = "VSwitch",
 *     });
 *     var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new()
 *     {
 *         NameRegex = "^centos_7_6_x64*",
 *         Owners = "system",
 *     });
 *     var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
 *     {
 *         AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
 *     });
 *     var defaultNetwork = new AliCloud.Vpc.Network("default", new()
 *     {
 *         VpcName = name,
 *         CidrBlock = "10.0.0.0/8",
 *     });
 *     var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
 *     {
 *         VswitchName = name,
 *         CidrBlock = "10.1.0.0/16",
 *         VpcId = defaultNetwork.Id,
 *         ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
 *     });
 *     var defaultFileSystem = new AliCloud.Nas.FileSystem("default", new()
 *     {
 *         StorageType = "Performance",
 *         ProtocolType = "NFS",
 *     });
 *     var defaultMountTarget = new AliCloud.Nas.MountTarget("default", new()
 *     {
 *         FileSystemId = defaultFileSystem.Id,
 *         AccessGroupName = "DEFAULT_VPC_GROUP_NAME",
 *         VswitchId = defaultSwitch.Id,
 *     });
 *     var defaultCluster = new AliCloud.Ehpc.Cluster("default", new()
 *     {
 *         ClusterName = name,
 *         DeployMode = "Simple",
 *         Description = name,
 *         HaEnable = false,
 *         ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
 *         ImageOwnerAlias = "system",
 *         VolumeProtocol = "nfs",
 *         VolumeId = defaultFileSystem.Id,
 *         VolumeMountpoint = defaultMountTarget.MountTargetDomain,
 *         ComputeCount = 1,
 *         ComputeInstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
 *         LoginCount = 1,
 *         LoginInstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
 *         ManagerCount = 1,
 *         ManagerInstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
 *         OsTag = "CentOS_7.6_64",
 *         SchedulerType = "pbs",
 *         Password = "your-password123",
 *         VswitchId = defaultSwitch.Id,
 *         VpcId = defaultNetwork.Id,
 *         ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
 * 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
 * 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ehpc"
 * 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
 * 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		cfg := config.New(ctx, "")
 * 		name := "tf-example"
 * 		if param := cfg.Get("name"); param != "" {
 * 			name = param
 * 		}
 * 		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
 * 			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		defaultGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
 * 			NameRegex: pulumi.StringRef("^centos_7_6_x64*"),
 * 			Owners:    pulumi.StringRef("system"),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		defaultGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
 * 			AvailabilityZone: pulumi.StringRef(_default.Zones[0].Id),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
 * 			VpcName:   pulumi.String(name),
 * 			CidrBlock: pulumi.String("10.0.0.0/8"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
 * 			VswitchName: pulumi.String(name),
 * 			CidrBlock:   pulumi.String("10.1.0.0/16"),
 * 			VpcId:       defaultNetwork.ID(),
 * 			ZoneId:      pulumi.String(_default.Zones[0].Id),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		defaultFileSystem, err := nas.NewFileSystem(ctx, "default", &nas.FileSystemArgs{
 * 			StorageType:  pulumi.String("Performance"),
 * 			ProtocolType: pulumi.String("NFS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		defaultMountTarget, err := nas.NewMountTarget(ctx, "default", &nas.MountTargetArgs{
 * 			FileSystemId:    defaultFileSystem.ID(),
 * 			AccessGroupName: pulumi.String("DEFAULT_VPC_GROUP_NAME"),
 * 			VswitchId:       defaultSwitch.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = ehpc.NewCluster(ctx, "default", &ehpc.ClusterArgs{
 * 			ClusterName:         pulumi.String(name),
 * 			DeployMode:          pulumi.String("Simple"),
 * 			Description:         pulumi.String(name),
 * 			HaEnable:            pulumi.Bool(false),
 * 			ImageId:             pulumi.String(defaultGetImages.Images[0].Id),
 * 			ImageOwnerAlias:     pulumi.String("system"),
 * 			VolumeProtocol:      pulumi.String("nfs"),
 * 			VolumeId:            defaultFileSystem.ID(),
 * 			VolumeMountpoint:    defaultMountTarget.MountTargetDomain,
 * 			ComputeCount:        pulumi.Int(1),
 * 			ComputeInstanceType: pulumi.String(defaultGetInstanceTypes.InstanceTypes[0].Id),
 * 			LoginCount:          pulumi.Int(1),
 * 			LoginInstanceType:   pulumi.String(defaultGetInstanceTypes.InstanceTypes[0].Id),
 * 			ManagerCount:        pulumi.Int(1),
 * 			ManagerInstanceType: pulumi.String(defaultGetInstanceTypes.InstanceTypes[0].Id),
 * 			OsTag:               pulumi.String("CentOS_7.6_64"),
 * 			SchedulerType:       pulumi.String("pbs"),
 * 			Password:            pulumi.String("your-password123"),
 * 			VswitchId:           defaultSwitch.ID(),
 * 			VpcId:               defaultNetwork.ID(),
 * 			ZoneId:              pulumi.String(_default.Zones[0].Id),
 * 		})
 * 		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.alicloud.AlicloudFunctions;
 * import com.pulumi.alicloud.inputs.GetZonesArgs;
 * import com.pulumi.alicloud.ecs.EcsFunctions;
 * import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
 * import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
 * import com.pulumi.alicloud.vpc.Network;
 * import com.pulumi.alicloud.vpc.NetworkArgs;
 * import com.pulumi.alicloud.vpc.Switch;
 * import com.pulumi.alicloud.vpc.SwitchArgs;
 * import com.pulumi.alicloud.nas.FileSystem;
 * import com.pulumi.alicloud.nas.FileSystemArgs;
 * import com.pulumi.alicloud.nas.MountTarget;
 * import com.pulumi.alicloud.nas.MountTargetArgs;
 * import com.pulumi.alicloud.ehpc.Cluster;
 * import com.pulumi.alicloud.ehpc.ClusterArgs;
 * 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 config = ctx.config();
 *         final var name = config.get("name").orElse("tf-example");
 *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
 *             .availableResourceCreation("VSwitch")
 *             .build());
 *         final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
 *             .nameRegex("^centos_7_6_x64*")
 *             .owners("system")
 *             .build());
 *         final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
 *             .availabilityZone(default_.zones()[0].id())
 *             .build());
 *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
 *             .vpcName(name)
 *             .cidrBlock("10.0.0.0/8")
 *             .build());
 *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
 *             .vswitchName(name)
 *             .cidrBlock("10.1.0.0/16")
 *             .vpcId(defaultNetwork.id())
 *             .zoneId(default_.zones()[0].id())
 *             .build());
 *         var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
 *             .storageType("Performance")
 *             .protocolType("NFS")
 *             .build());
 *         var defaultMountTarget = new MountTarget("defaultMountTarget", MountTargetArgs.builder()
 *             .fileSystemId(defaultFileSystem.id())
 *             .accessGroupName("DEFAULT_VPC_GROUP_NAME")
 *             .vswitchId(defaultSwitch.id())
 *             .build());
 *         var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
 *             .clusterName(name)
 *             .deployMode("Simple")
 *             .description(name)
 *             .haEnable(false)
 *             .imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
 *             .imageOwnerAlias("system")
 *             .volumeProtocol("nfs")
 *             .volumeId(defaultFileSystem.id())
 *             .volumeMountpoint(defaultMountTarget.mountTargetDomain())
 *             .computeCount(1)
 *             .computeInstanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
 *             .loginCount(1)
 *             .loginInstanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
 *             .managerCount(1)
 *             .managerInstanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
 *             .osTag("CentOS_7.6_64")
 *             .schedulerType("pbs")
 *             .password("your-password123")
 *             .vswitchId(defaultSwitch.id())
 *             .vpcId(defaultNetwork.id())
 *             .zoneId(default_.zones()[0].id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * configuration:
 *   name:
 *     type: string
 *     default: tf-example
 * resources:
 *   defaultNetwork:
 *     type: alicloud:vpc:Network
 *     name: default
 *     properties:
 *       vpcName: ${name}
 *       cidrBlock: 10.0.0.0/8
 *   defaultSwitch:
 *     type: alicloud:vpc:Switch
 *     name: default
 *     properties:
 *       vswitchName: ${name}
 *       cidrBlock: 10.1.0.0/16
 *       vpcId: ${defaultNetwork.id}
 *       zoneId: ${default.zones[0].id}
 *   defaultFileSystem:
 *     type: alicloud:nas:FileSystem
 *     name: default
 *     properties:
 *       storageType: Performance
 *       protocolType: NFS
 *   defaultMountTarget:
 *     type: alicloud:nas:MountTarget
 *     name: default
 *     properties:
 *       fileSystemId: ${defaultFileSystem.id}
 *       accessGroupName: DEFAULT_VPC_GROUP_NAME
 *       vswitchId: ${defaultSwitch.id}
 *   defaultCluster:
 *     type: alicloud:ehpc:Cluster
 *     name: default
 *     properties:
 *       clusterName: ${name}
 *       deployMode: Simple
 *       description: ${name}
 *       haEnable: false
 *       imageId: ${defaultGetImages.images[0].id}
 *       imageOwnerAlias: system
 *       volumeProtocol: nfs
 *       volumeId: ${defaultFileSystem.id}
 *       volumeMountpoint: ${defaultMountTarget.mountTargetDomain}
 *       computeCount: 1
 *       computeInstanceType: ${defaultGetInstanceTypes.instanceTypes[0].id}
 *       loginCount: 1
 *       loginInstanceType: ${defaultGetInstanceTypes.instanceTypes[0].id}
 *       managerCount: 1
 *       managerInstanceType: ${defaultGetInstanceTypes.instanceTypes[0].id}
 *       osTag: CentOS_7.6_64
 *       schedulerType: pbs
 *       password: your-password123
 *       vswitchId: ${defaultSwitch.id}
 *       vpcId: ${defaultNetwork.id}
 *       zoneId: ${default.zones[0].id}
 * variables:
 *   default:
 *     fn::invoke:
 *       Function: alicloud:getZones
 *       Arguments:
 *         availableResourceCreation: VSwitch
 *   defaultGetImages:
 *     fn::invoke:
 *       Function: alicloud:ecs:getImages
 *       Arguments:
 *         nameRegex: ^centos_7_6_x64*
 *         owners: system
 *   defaultGetInstanceTypes:
 *     fn::invoke:
 *       Function: alicloud:ecs:getInstanceTypes
 *       Arguments:
 *         availabilityZone: ${default.zones[0].id}
 * ```
 * 
 * ## Import
 * Ehpc Cluster can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:ehpc/cluster:Cluster example 
 * ```
 * @property accountType The type of the domain account service. Valid values: `nis`, `ldap`. Default value: `nis`
 * @property additionalVolumes The additional volumes. See `additional_volumes` below.
 * @property applications The application. See `application` below.
 * @property autoRenew Specifies whether to enable auto-renewal for the subscription. Default value: `false`.
 * @property autoRenewPeriod The auto-renewal period of the subscription compute nodes. The parameter takes effect when AutoRenew is set to true.
 * @property clientVersion The version of the E-HPC client. By default, the parameter is set to the latest version number.
 * @property clusterName The name of the cluster. The name must be `2` to `64` characters in length.
 * @property clusterVersion The version of the cluster. Default value: `1.0`.
 * @property computeCount The number of the compute nodes. Valid values: `1` to `99`.
 * @property computeEnableHt Specifies whether the compute nodes support hyper-threading. Default value: `true`.
 * @property computeInstanceType The instance type of the compute nodes.
 * @property computeSpotPriceLimit The maximum hourly price of the compute nodes. A maximum of three decimal places can be used in the value of the parameter. The parameter is valid only when the ComputeSpotStrategy parameter is set to SpotWithPriceLimit.
 * @property computeSpotStrategy The bidding method of the compute nodes. Default value: `NoSpot`. Valid values:
 * - `NoSpot`: The compute nodes are pay-as-you-go instances.
 * - `SpotWithPriceLimit`: The compute nodes are preemptible instances that have a user-defined maximum hourly price.
 * - `SpotAsPriceGo`: The compute nodes are preemptible instances for which the market price at the time of purchase is used as the bid price.
 * @property deployMode The mode in which the cluster is deployed. Valid values: `Standard`, `Simple`, `Tiny`. Default value: Standard.
 * - `Standard`: An account node, a scheduling node, a logon node, and multiple compute nodes are separately deployed.
 * - `Simple`: A management node, a logon node, and multiple compute nodes are deployed. The management node consists of an account node and a scheduling node. The logon node and compute nodes are separately deployed.
 * - `Tiny`: A management node and multiple compute nodes are deployed. The management node consists of an account node, a scheduling node, and a logon node. The compute nodes are separately deployed.
 * @property description The description of the cluster. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
 * @property domain The domain name of the on-premises cluster. This parameter takes effect only when the AccoutType parameter is set to Idap.
 * @property ecsChargeType The billing method of the nodes.
 * @property ehpcVersion The version of E-HPC. By default, the parameter is set to the latest version number.
 * @property haEnable Specifies whether to enable the high availability feature. Default value: `false`.  **Note:** If high availability is enabled, a primary management node and a secondary management node are used.
 * @property imageId The ID of the image.
 * @property imageOwnerAlias The type of the image. Valid values: `others`, `self`, `system`, `marketplace`. Default value: `system`.
 * @property inputFileUrl The URL of the job files that are uploaded to an Object Storage Service (OSS) bucket.
 * @property isComputeEss Specifies whether to enable auto scaling. Default value: `false`.
 * @property jobQueue The queue to which the compute nodes are added.
 * @property keyPairName The name of the AccessKey pair.
 * @property loginCount The number of the logon nodes. Valid values: `1`.
 * @property loginInstanceType The instance type of the logon nodes.
 * @property managerCount The number of the management nodes. Valid values: 1 and 2.
 * @property managerInstanceType The instance type of the management nodes.
 * @property osTag The image tag of the operating system.
 * @property password The root password of the logon node. The password must be 8 to 30 characters in length and contain at least three of the following items: uppercase letters, lowercase letters, digits, and special characters. The password can contain the following special characters: `( ) ~ ! @ # $ % ^ & * - + = { } [ ] : ; ‘ < > , . ? /`. You must specify either `password` or `key_pair_name`. If both are specified, the Password parameter prevails.
 * @property period The duration of the subscription. The unit of the duration is specified by the `period_unit` parameter. Default value: `1`.
 * * If you set PriceUnit to Year, the valid values of the Period parameter are 1, 2, and 3.
 * * If you set PriceUnit to Month, the valid values of the Period parameter are 1, 2, 3, 4, 5, 6, 7, 8, and 9.
 * * If you set PriceUnit to Hour, the valid value of the Period parameter is 1.
 * @property periodUnit The unit of the subscription duration. Valid values: `Year`, `Month`, `Hour`. Default value: `Month`.
 * @property plugin The mode configurations of the plug-in. This parameter takes effect only when the SchedulerType parameter is set to custom. The value must be a JSON string. The parameter contains the following parameters: pluginMod, pluginLocalPath, and pluginOssPath.
 * - pluginMod: the mode of the plug-in. The following modes are supported:
 * - oss: The plug-in is downloaded and decompressed from OSS to a local path. The local path is specified by the pluginLocalPath parameter.
 * - image: By default, the plug-in is stored in a pre-defined local path. The local path is specified by the pluginLocalPath parameter.
 * - pluginLocalPath: the local path where the plug-in is stored. We recommend that you select a shared directory in oss mode and a non-shared directory in image mode.
 * - pluginOssPath: the remote path where the plug-in is stored in OSS. This parameter takes effect only when the pluginMod parameter is set to oss.
 * @property postInstallScripts The post install script. See `post_install_script` below.
 * @property ramNodeTypes The node of the RAM role.
 * @property ramRoleName The name of the Resource Access Management (RAM) role.
 * @property releaseInstance The release instance. Valid values: `true`.
 * @property remoteDirectory The remote directory to which the file system is mounted.
 * @property remoteVisEnable Specifies whether to enable Virtual Network Computing (VNC). Default value: `false`.
 * @property resourceGroupId The ID of the resource group.
 * @property sccClusterId The ID of the Super Computing Cluster (SCC) instance. If you specify the parameter, the SCC instance is moved to a new SCC cluster.
 * @property schedulerType The type of the scheduler. Valid values: `pbs`, `slurm`, `opengridscheduler` and `deadline`. Default value: `pbs`.
 * @property securityGroupId The ID of the security group to which the cluster belongs.
 * @property securityGroupName If you do not use an existing security group, set the parameter to the name of a new security group. A default policy is applied to the new security group.
 * @property systemDiskLevel The performance level of the ESSD that is used as the system disk. Default value: `PL1` For more information, see [ESSDs](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/essds). Valid values:
 * * `PL0`: A single ESSD can deliver up to 10,000 random read/write IOPS.
 * * `PL1`: A single ESSD can deliver up to 50,000 random read/write IOPS.
 * * `PL2`: A single ESSD can deliver up to 100,000 random read/write IOPS.
 * * `PL3`: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
 * @property systemDiskSize The size of the system disk. Unit: `GB`. Valid values: `40` to `500`. Default value: `40`.
 * @property systemDiskType The type of the system disk. Valid values: `cloud_efficiency`, `cloud_ssd`, `cloud_essd` or `cloud`. Default value: `cloud_ssd`.
 * @property volumeId The ID of the file system. If you leave the parameter empty, a Performance NAS file system is created by default.
 * @property volumeMountOption The mount options of the file system.
 * @property volumeMountpoint The mount target of the file system. Take note of the following information:
 * - If you do not specify the VolumeId parameter, you can leave the VolumeMountpoint parameter empty. A mount target is created by default.
 * - If you specify the VolumeId parameter, the VolumeMountpoint parameter is required.
 * @property volumeProtocol The type of the protocol that is used by the file system. Valid values: `NFS`, `SMB`. Default value: `NFS`.
 * @property volumeType The type of the shared storage. Only Apsara File Storage NAS file systems are supported.
 * @property vpcId The ID of the virtual private cloud (VPC) to which the cluster belongs.
 * @property vswitchId The ID of the vSwitch. E-HPC supports only VPC networks.
 * @property withoutAgent Specifies whether not to install the agent. Default value: `false`.
 * @property withoutElasticIp Specifies whether the logon node uses an elastic IP address (EIP). Default value: `false`.
 * @property zoneId The ID of the zone.
 */
public data class ClusterArgs(
    public val accountType: Output? = null,
    public val additionalVolumes: Output>? = null,
    public val applications: Output>? = null,
    public val autoRenew: Output? = null,
    public val autoRenewPeriod: Output? = null,
    public val clientVersion: Output? = null,
    public val clusterName: Output? = null,
    public val clusterVersion: Output? = null,
    public val computeCount: Output? = null,
    public val computeEnableHt: Output? = null,
    public val computeInstanceType: Output? = null,
    public val computeSpotPriceLimit: Output? = null,
    public val computeSpotStrategy: Output? = null,
    public val deployMode: Output? = null,
    public val description: Output? = null,
    public val domain: Output? = null,
    public val ecsChargeType: Output? = null,
    public val ehpcVersion: Output? = null,
    public val haEnable: Output? = null,
    public val imageId: Output? = null,
    public val imageOwnerAlias: Output? = null,
    public val inputFileUrl: Output? = null,
    public val isComputeEss: Output? = null,
    public val jobQueue: Output? = null,
    public val keyPairName: Output? = null,
    public val loginCount: Output? = null,
    public val loginInstanceType: Output? = null,
    public val managerCount: Output? = null,
    public val managerInstanceType: Output? = null,
    public val osTag: Output? = null,
    public val password: Output? = null,
    public val period: Output? = null,
    public val periodUnit: Output? = null,
    public val plugin: Output? = null,
    public val postInstallScripts: Output>? = null,
    public val ramNodeTypes: Output>? = null,
    public val ramRoleName: Output? = null,
    public val releaseInstance: Output? = null,
    public val remoteDirectory: Output? = null,
    public val remoteVisEnable: Output? = null,
    public val resourceGroupId: Output? = null,
    public val sccClusterId: Output? = null,
    public val schedulerType: Output? = null,
    public val securityGroupId: Output? = null,
    public val securityGroupName: Output? = null,
    public val systemDiskLevel: Output? = null,
    public val systemDiskSize: Output? = null,
    public val systemDiskType: Output? = null,
    public val volumeId: Output? = null,
    public val volumeMountOption: Output? = null,
    public val volumeMountpoint: Output? = null,
    public val volumeProtocol: Output? = null,
    public val volumeType: Output? = null,
    public val vpcId: Output? = null,
    public val vswitchId: Output? = null,
    public val withoutAgent: Output? = null,
    public val withoutElasticIp: Output? = null,
    public val zoneId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.ehpc.ClusterArgs =
        com.pulumi.alicloud.ehpc.ClusterArgs.builder()
            .accountType(accountType?.applyValue({ args0 -> args0 }))
            .additionalVolumes(
                additionalVolumes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .applications(
                applications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .autoRenew(autoRenew?.applyValue({ args0 -> args0 }))
            .autoRenewPeriod(autoRenewPeriod?.applyValue({ args0 -> args0 }))
            .clientVersion(clientVersion?.applyValue({ args0 -> args0 }))
            .clusterName(clusterName?.applyValue({ args0 -> args0 }))
            .clusterVersion(clusterVersion?.applyValue({ args0 -> args0 }))
            .computeCount(computeCount?.applyValue({ args0 -> args0 }))
            .computeEnableHt(computeEnableHt?.applyValue({ args0 -> args0 }))
            .computeInstanceType(computeInstanceType?.applyValue({ args0 -> args0 }))
            .computeSpotPriceLimit(computeSpotPriceLimit?.applyValue({ args0 -> args0 }))
            .computeSpotStrategy(computeSpotStrategy?.applyValue({ args0 -> args0 }))
            .deployMode(deployMode?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .domain(domain?.applyValue({ args0 -> args0 }))
            .ecsChargeType(ecsChargeType?.applyValue({ args0 -> args0 }))
            .ehpcVersion(ehpcVersion?.applyValue({ args0 -> args0 }))
            .haEnable(haEnable?.applyValue({ args0 -> args0 }))
            .imageId(imageId?.applyValue({ args0 -> args0 }))
            .imageOwnerAlias(imageOwnerAlias?.applyValue({ args0 -> args0 }))
            .inputFileUrl(inputFileUrl?.applyValue({ args0 -> args0 }))
            .isComputeEss(isComputeEss?.applyValue({ args0 -> args0 }))
            .jobQueue(jobQueue?.applyValue({ args0 -> args0 }))
            .keyPairName(keyPairName?.applyValue({ args0 -> args0 }))
            .loginCount(loginCount?.applyValue({ args0 -> args0 }))
            .loginInstanceType(loginInstanceType?.applyValue({ args0 -> args0 }))
            .managerCount(managerCount?.applyValue({ args0 -> args0 }))
            .managerInstanceType(managerInstanceType?.applyValue({ args0 -> args0 }))
            .osTag(osTag?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .period(period?.applyValue({ args0 -> args0 }))
            .periodUnit(periodUnit?.applyValue({ args0 -> args0 }))
            .plugin(plugin?.applyValue({ args0 -> args0 }))
            .postInstallScripts(
                postInstallScripts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .ramNodeTypes(ramNodeTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ramRoleName(ramRoleName?.applyValue({ args0 -> args0 }))
            .releaseInstance(releaseInstance?.applyValue({ args0 -> args0 }))
            .remoteDirectory(remoteDirectory?.applyValue({ args0 -> args0 }))
            .remoteVisEnable(remoteVisEnable?.applyValue({ args0 -> args0 }))
            .resourceGroupId(resourceGroupId?.applyValue({ args0 -> args0 }))
            .sccClusterId(sccClusterId?.applyValue({ args0 -> args0 }))
            .schedulerType(schedulerType?.applyValue({ args0 -> args0 }))
            .securityGroupId(securityGroupId?.applyValue({ args0 -> args0 }))
            .securityGroupName(securityGroupName?.applyValue({ args0 -> args0 }))
            .systemDiskLevel(systemDiskLevel?.applyValue({ args0 -> args0 }))
            .systemDiskSize(systemDiskSize?.applyValue({ args0 -> args0 }))
            .systemDiskType(systemDiskType?.applyValue({ args0 -> args0 }))
            .volumeId(volumeId?.applyValue({ args0 -> args0 }))
            .volumeMountOption(volumeMountOption?.applyValue({ args0 -> args0 }))
            .volumeMountpoint(volumeMountpoint?.applyValue({ args0 -> args0 }))
            .volumeProtocol(volumeProtocol?.applyValue({ args0 -> args0 }))
            .volumeType(volumeType?.applyValue({ args0 -> args0 }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 }))
            .vswitchId(vswitchId?.applyValue({ args0 -> args0 }))
            .withoutAgent(withoutAgent?.applyValue({ args0 -> args0 }))
            .withoutElasticIp(withoutElasticIp?.applyValue({ args0 -> args0 }))
            .zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterArgs].
 */
@PulumiTagMarker
public class ClusterArgsBuilder internal constructor() {
    private var accountType: Output? = null

    private var additionalVolumes: Output>? = null

    private var applications: Output>? = null

    private var autoRenew: Output? = null

    private var autoRenewPeriod: Output? = null

    private var clientVersion: Output? = null

    private var clusterName: Output? = null

    private var clusterVersion: Output? = null

    private var computeCount: Output? = null

    private var computeEnableHt: Output? = null

    private var computeInstanceType: Output? = null

    private var computeSpotPriceLimit: Output? = null

    private var computeSpotStrategy: Output? = null

    private var deployMode: Output? = null

    private var description: Output? = null

    private var domain: Output? = null

    private var ecsChargeType: Output? = null

    private var ehpcVersion: Output? = null

    private var haEnable: Output? = null

    private var imageId: Output? = null

    private var imageOwnerAlias: Output? = null

    private var inputFileUrl: Output? = null

    private var isComputeEss: Output? = null

    private var jobQueue: Output? = null

    private var keyPairName: Output? = null

    private var loginCount: Output? = null

    private var loginInstanceType: Output? = null

    private var managerCount: Output? = null

    private var managerInstanceType: Output? = null

    private var osTag: Output? = null

    private var password: Output? = null

    private var period: Output? = null

    private var periodUnit: Output? = null

    private var plugin: Output? = null

    private var postInstallScripts: Output>? = null

    private var ramNodeTypes: Output>? = null

    private var ramRoleName: Output? = null

    private var releaseInstance: Output? = null

    private var remoteDirectory: Output? = null

    private var remoteVisEnable: Output? = null

    private var resourceGroupId: Output? = null

    private var sccClusterId: Output? = null

    private var schedulerType: Output? = null

    private var securityGroupId: Output? = null

    private var securityGroupName: Output? = null

    private var systemDiskLevel: Output? = null

    private var systemDiskSize: Output? = null

    private var systemDiskType: Output? = null

    private var volumeId: Output? = null

    private var volumeMountOption: Output? = null

    private var volumeMountpoint: Output? = null

    private var volumeProtocol: Output? = null

    private var volumeType: Output? = null

    private var vpcId: Output? = null

    private var vswitchId: Output? = null

    private var withoutAgent: Output? = null

    private var withoutElasticIp: Output? = null

    private var zoneId: Output? = null

    /**
     * @param value The type of the domain account service. Valid values: `nis`, `ldap`. Default value: `nis`
     */
    @JvmName("iijocuthcfssiedn")
    public suspend fun accountType(`value`: Output) {
        this.accountType = value
    }

    /**
     * @param value The additional volumes. See `additional_volumes` below.
     */
    @JvmName("qmglqyoayiaydlhs")
    public suspend fun additionalVolumes(`value`: Output>) {
        this.additionalVolumes = value
    }

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

    /**
     * @param values The additional volumes. See `additional_volumes` below.
     */
    @JvmName("cllnnxadxcdtpuug")
    public suspend fun additionalVolumes(values: List>) {
        this.additionalVolumes = Output.all(values)
    }

    /**
     * @param value The application. See `application` below.
     */
    @JvmName("djoditdaaanpesrk")
    public suspend fun applications(`value`: Output>) {
        this.applications = value
    }

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

    /**
     * @param values The application. See `application` below.
     */
    @JvmName("fdoqfsswtaebnhbf")
    public suspend fun applications(values: List>) {
        this.applications = Output.all(values)
    }

    /**
     * @param value Specifies whether to enable auto-renewal for the subscription. Default value: `false`.
     */
    @JvmName("kvodvfglxebsdwdu")
    public suspend fun autoRenew(`value`: Output) {
        this.autoRenew = value
    }

    /**
     * @param value The auto-renewal period of the subscription compute nodes. The parameter takes effect when AutoRenew is set to true.
     */
    @JvmName("mdwwtnujktcmjtgf")
    public suspend fun autoRenewPeriod(`value`: Output) {
        this.autoRenewPeriod = value
    }

    /**
     * @param value The version of the E-HPC client. By default, the parameter is set to the latest version number.
     */
    @JvmName("sfdihxodrhmmveph")
    public suspend fun clientVersion(`value`: Output) {
        this.clientVersion = value
    }

    /**
     * @param value The name of the cluster. The name must be `2` to `64` characters in length.
     */
    @JvmName("nupnwxyuyfpenxar")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value The version of the cluster. Default value: `1.0`.
     */
    @JvmName("voemwtvqyjrohkwi")
    public suspend fun clusterVersion(`value`: Output) {
        this.clusterVersion = value
    }

    /**
     * @param value The number of the compute nodes. Valid values: `1` to `99`.
     */
    @JvmName("wfanpqoevuqxwjwt")
    public suspend fun computeCount(`value`: Output) {
        this.computeCount = value
    }

    /**
     * @param value Specifies whether the compute nodes support hyper-threading. Default value: `true`.
     */
    @JvmName("cuamgqtibbggamli")
    public suspend fun computeEnableHt(`value`: Output) {
        this.computeEnableHt = value
    }

    /**
     * @param value The instance type of the compute nodes.
     */
    @JvmName("xlosppyeheggdajx")
    public suspend fun computeInstanceType(`value`: Output) {
        this.computeInstanceType = value
    }

    /**
     * @param value The maximum hourly price of the compute nodes. A maximum of three decimal places can be used in the value of the parameter. The parameter is valid only when the ComputeSpotStrategy parameter is set to SpotWithPriceLimit.
     */
    @JvmName("afujppbfsfnsvlht")
    public suspend fun computeSpotPriceLimit(`value`: Output) {
        this.computeSpotPriceLimit = value
    }

    /**
     * @param value The bidding method of the compute nodes. Default value: `NoSpot`. Valid values:
     * - `NoSpot`: The compute nodes are pay-as-you-go instances.
     * - `SpotWithPriceLimit`: The compute nodes are preemptible instances that have a user-defined maximum hourly price.
     * - `SpotAsPriceGo`: The compute nodes are preemptible instances for which the market price at the time of purchase is used as the bid price.
     */
    @JvmName("encmgjrgvsbhsylt")
    public suspend fun computeSpotStrategy(`value`: Output) {
        this.computeSpotStrategy = value
    }

    /**
     * @param value The mode in which the cluster is deployed. Valid values: `Standard`, `Simple`, `Tiny`. Default value: Standard.
     * - `Standard`: An account node, a scheduling node, a logon node, and multiple compute nodes are separately deployed.
     * - `Simple`: A management node, a logon node, and multiple compute nodes are deployed. The management node consists of an account node and a scheduling node. The logon node and compute nodes are separately deployed.
     * - `Tiny`: A management node and multiple compute nodes are deployed. The management node consists of an account node, a scheduling node, and a logon node. The compute nodes are separately deployed.
     */
    @JvmName("lpxacyaopxsohykr")
    public suspend fun deployMode(`value`: Output) {
        this.deployMode = value
    }

    /**
     * @param value The description of the cluster. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
     */
    @JvmName("sbmnfmtqplapfdck")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The domain name of the on-premises cluster. This parameter takes effect only when the AccoutType parameter is set to Idap.
     */
    @JvmName("ublbvjhbjpkapkop")
    public suspend fun domain(`value`: Output) {
        this.domain = value
    }

    /**
     * @param value The billing method of the nodes.
     */
    @JvmName("kltmpdplwqdwwvbi")
    public suspend fun ecsChargeType(`value`: Output) {
        this.ecsChargeType = value
    }

    /**
     * @param value The version of E-HPC. By default, the parameter is set to the latest version number.
     */
    @JvmName("xnmwajufiwilphbl")
    public suspend fun ehpcVersion(`value`: Output) {
        this.ehpcVersion = value
    }

    /**
     * @param value Specifies whether to enable the high availability feature. Default value: `false`.  **Note:** If high availability is enabled, a primary management node and a secondary management node are used.
     */
    @JvmName("yinvcqxhujxrcelh")
    public suspend fun haEnable(`value`: Output) {
        this.haEnable = value
    }

    /**
     * @param value The ID of the image.
     */
    @JvmName("alqmhvtfwreikqin")
    public suspend fun imageId(`value`: Output) {
        this.imageId = value
    }

    /**
     * @param value The type of the image. Valid values: `others`, `self`, `system`, `marketplace`. Default value: `system`.
     */
    @JvmName("ewrguokrfehjvmoq")
    public suspend fun imageOwnerAlias(`value`: Output) {
        this.imageOwnerAlias = value
    }

    /**
     * @param value The URL of the job files that are uploaded to an Object Storage Service (OSS) bucket.
     */
    @JvmName("yewyljqqwhnsfeue")
    public suspend fun inputFileUrl(`value`: Output) {
        this.inputFileUrl = value
    }

    /**
     * @param value Specifies whether to enable auto scaling. Default value: `false`.
     */
    @JvmName("mtlpwoiyalcqeidd")
    public suspend fun isComputeEss(`value`: Output) {
        this.isComputeEss = value
    }

    /**
     * @param value The queue to which the compute nodes are added.
     */
    @JvmName("cybuxtjnryfapqfy")
    public suspend fun jobQueue(`value`: Output) {
        this.jobQueue = value
    }

    /**
     * @param value The name of the AccessKey pair.
     */
    @JvmName("qqprlbovgyqmktdd")
    public suspend fun keyPairName(`value`: Output) {
        this.keyPairName = value
    }

    /**
     * @param value The number of the logon nodes. Valid values: `1`.
     */
    @JvmName("lbsiacdyyitbtkla")
    public suspend fun loginCount(`value`: Output) {
        this.loginCount = value
    }

    /**
     * @param value The instance type of the logon nodes.
     */
    @JvmName("ktrqtaxxklqfqarh")
    public suspend fun loginInstanceType(`value`: Output) {
        this.loginInstanceType = value
    }

    /**
     * @param value The number of the management nodes. Valid values: 1 and 2.
     */
    @JvmName("wgftdllsmqpvfwyj")
    public suspend fun managerCount(`value`: Output) {
        this.managerCount = value
    }

    /**
     * @param value The instance type of the management nodes.
     */
    @JvmName("dqokwkcbhdwpgvrf")
    public suspend fun managerInstanceType(`value`: Output) {
        this.managerInstanceType = value
    }

    /**
     * @param value The image tag of the operating system.
     */
    @JvmName("pqneqxjgicghjxfw")
    public suspend fun osTag(`value`: Output) {
        this.osTag = value
    }

    /**
     * @param value The root password of the logon node. The password must be 8 to 30 characters in length and contain at least three of the following items: uppercase letters, lowercase letters, digits, and special characters. The password can contain the following special characters: `( ) ~ ! @ # $ % ^ & * - + = { } [ ] : ; ‘ < > , . ? /`. You must specify either `password` or `key_pair_name`. If both are specified, the Password parameter prevails.
     */
    @JvmName("ergwtmbaprmeesiy")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The duration of the subscription. The unit of the duration is specified by the `period_unit` parameter. Default value: `1`.
     * * If you set PriceUnit to Year, the valid values of the Period parameter are 1, 2, and 3.
     * * If you set PriceUnit to Month, the valid values of the Period parameter are 1, 2, 3, 4, 5, 6, 7, 8, and 9.
     * * If you set PriceUnit to Hour, the valid value of the Period parameter is 1.
     */
    @JvmName("vwdmhtihofcbbhra")
    public suspend fun period(`value`: Output) {
        this.period = value
    }

    /**
     * @param value The unit of the subscription duration. Valid values: `Year`, `Month`, `Hour`. Default value: `Month`.
     */
    @JvmName("crwwmvxdqsdmbexr")
    public suspend fun periodUnit(`value`: Output) {
        this.periodUnit = value
    }

    /**
     * @param value The mode configurations of the plug-in. This parameter takes effect only when the SchedulerType parameter is set to custom. The value must be a JSON string. The parameter contains the following parameters: pluginMod, pluginLocalPath, and pluginOssPath.
     * - pluginMod: the mode of the plug-in. The following modes are supported:
     * - oss: The plug-in is downloaded and decompressed from OSS to a local path. The local path is specified by the pluginLocalPath parameter.
     * - image: By default, the plug-in is stored in a pre-defined local path. The local path is specified by the pluginLocalPath parameter.
     * - pluginLocalPath: the local path where the plug-in is stored. We recommend that you select a shared directory in oss mode and a non-shared directory in image mode.
     * - pluginOssPath: the remote path where the plug-in is stored in OSS. This parameter takes effect only when the pluginMod parameter is set to oss.
     */
    @JvmName("xffygowcvojexkwr")
    public suspend fun plugin(`value`: Output) {
        this.plugin = value
    }

    /**
     * @param value The post install script. See `post_install_script` below.
     */
    @JvmName("fdalmajbgobkulcx")
    public suspend fun postInstallScripts(`value`: Output>) {
        this.postInstallScripts = value
    }

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

    /**
     * @param values The post install script. See `post_install_script` below.
     */
    @JvmName("dkmulsbejbydvrtl")
    public suspend fun postInstallScripts(values: List>) {
        this.postInstallScripts = Output.all(values)
    }

    /**
     * @param value The node of the RAM role.
     */
    @JvmName("hcyygddwrswcwbyq")
    public suspend fun ramNodeTypes(`value`: Output>) {
        this.ramNodeTypes = value
    }

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

    /**
     * @param values The node of the RAM role.
     */
    @JvmName("yfkebheppmxoctsv")
    public suspend fun ramNodeTypes(values: List>) {
        this.ramNodeTypes = Output.all(values)
    }

    /**
     * @param value The name of the Resource Access Management (RAM) role.
     */
    @JvmName("vccaflvwsfbhkuqp")
    public suspend fun ramRoleName(`value`: Output) {
        this.ramRoleName = value
    }

    /**
     * @param value The release instance. Valid values: `true`.
     */
    @JvmName("whdcyvvlwqxuoapm")
    public suspend fun releaseInstance(`value`: Output) {
        this.releaseInstance = value
    }

    /**
     * @param value The remote directory to which the file system is mounted.
     */
    @JvmName("gcoyyhlnthvjcktj")
    public suspend fun remoteDirectory(`value`: Output) {
        this.remoteDirectory = value
    }

    /**
     * @param value Specifies whether to enable Virtual Network Computing (VNC). Default value: `false`.
     */
    @JvmName("ftcvpmfttuvibgaj")
    public suspend fun remoteVisEnable(`value`: Output) {
        this.remoteVisEnable = value
    }

    /**
     * @param value The ID of the resource group.
     */
    @JvmName("nkpbxbxijtjdnqag")
    public suspend fun resourceGroupId(`value`: Output) {
        this.resourceGroupId = value
    }

    /**
     * @param value The ID of the Super Computing Cluster (SCC) instance. If you specify the parameter, the SCC instance is moved to a new SCC cluster.
     */
    @JvmName("vexedjnjrptsesou")
    public suspend fun sccClusterId(`value`: Output) {
        this.sccClusterId = value
    }

    /**
     * @param value The type of the scheduler. Valid values: `pbs`, `slurm`, `opengridscheduler` and `deadline`. Default value: `pbs`.
     */
    @JvmName("xohlqgravhsfkhhq")
    public suspend fun schedulerType(`value`: Output) {
        this.schedulerType = value
    }

    /**
     * @param value The ID of the security group to which the cluster belongs.
     */
    @JvmName("iluqmtodhjibvsod")
    public suspend fun securityGroupId(`value`: Output) {
        this.securityGroupId = value
    }

    /**
     * @param value If you do not use an existing security group, set the parameter to the name of a new security group. A default policy is applied to the new security group.
     */
    @JvmName("fydthjlrnlbbdmsi")
    public suspend fun securityGroupName(`value`: Output) {
        this.securityGroupName = value
    }

    /**
     * @param value The performance level of the ESSD that is used as the system disk. Default value: `PL1` For more information, see [ESSDs](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/essds). Valid values:
     * * `PL0`: A single ESSD can deliver up to 10,000 random read/write IOPS.
     * * `PL1`: A single ESSD can deliver up to 50,000 random read/write IOPS.
     * * `PL2`: A single ESSD can deliver up to 100,000 random read/write IOPS.
     * * `PL3`: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
     */
    @JvmName("vwopbdqdefvbbavt")
    public suspend fun systemDiskLevel(`value`: Output) {
        this.systemDiskLevel = value
    }

    /**
     * @param value The size of the system disk. Unit: `GB`. Valid values: `40` to `500`. Default value: `40`.
     */
    @JvmName("ypupgwubsyxyvmwu")
    public suspend fun systemDiskSize(`value`: Output) {
        this.systemDiskSize = value
    }

    /**
     * @param value The type of the system disk. Valid values: `cloud_efficiency`, `cloud_ssd`, `cloud_essd` or `cloud`. Default value: `cloud_ssd`.
     */
    @JvmName("fqtigkeuqlvlhgqe")
    public suspend fun systemDiskType(`value`: Output) {
        this.systemDiskType = value
    }

    /**
     * @param value The ID of the file system. If you leave the parameter empty, a Performance NAS file system is created by default.
     */
    @JvmName("enlddqrovkbjafap")
    public suspend fun volumeId(`value`: Output) {
        this.volumeId = value
    }

    /**
     * @param value The mount options of the file system.
     */
    @JvmName("flgqnwlqmkrdpnvu")
    public suspend fun volumeMountOption(`value`: Output) {
        this.volumeMountOption = value
    }

    /**
     * @param value The mount target of the file system. Take note of the following information:
     * - If you do not specify the VolumeId parameter, you can leave the VolumeMountpoint parameter empty. A mount target is created by default.
     * - If you specify the VolumeId parameter, the VolumeMountpoint parameter is required.
     */
    @JvmName("gjbbmxbbpplesncw")
    public suspend fun volumeMountpoint(`value`: Output) {
        this.volumeMountpoint = value
    }

    /**
     * @param value The type of the protocol that is used by the file system. Valid values: `NFS`, `SMB`. Default value: `NFS`.
     */
    @JvmName("pbusyitnxgcymbqe")
    public suspend fun volumeProtocol(`value`: Output) {
        this.volumeProtocol = value
    }

    /**
     * @param value The type of the shared storage. Only Apsara File Storage NAS file systems are supported.
     */
    @JvmName("sapxkgqrctlichoe")
    public suspend fun volumeType(`value`: Output) {
        this.volumeType = value
    }

    /**
     * @param value The ID of the virtual private cloud (VPC) to which the cluster belongs.
     */
    @JvmName("iqpwyoqurbfemmjy")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The ID of the vSwitch. E-HPC supports only VPC networks.
     */
    @JvmName("naknsskkmcqxgqim")
    public suspend fun vswitchId(`value`: Output) {
        this.vswitchId = value
    }

    /**
     * @param value Specifies whether not to install the agent. Default value: `false`.
     */
    @JvmName("jrbeafgqvrxqeujq")
    public suspend fun withoutAgent(`value`: Output) {
        this.withoutAgent = value
    }

    /**
     * @param value Specifies whether the logon node uses an elastic IP address (EIP). Default value: `false`.
     */
    @JvmName("qdbwqwhbkfsgevtj")
    public suspend fun withoutElasticIp(`value`: Output) {
        this.withoutElasticIp = value
    }

    /**
     * @param value The ID of the zone.
     */
    @JvmName("ywbiwepgdjxqcmbw")
    public suspend fun zoneId(`value`: Output) {
        this.zoneId = value
    }

    /**
     * @param value The type of the domain account service. Valid values: `nis`, `ldap`. Default value: `nis`
     */
    @JvmName("vaomjlwwcnrbobax")
    public suspend fun accountType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountType = mapped
    }

    /**
     * @param value The additional volumes. See `additional_volumes` below.
     */
    @JvmName("fyotrfmsuuatiqva")
    public suspend fun additionalVolumes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalVolumes = mapped
    }

    /**
     * @param argument The additional volumes. See `additional_volumes` below.
     */
    @JvmName("rfqqdrhuyggulbsm")
    public suspend fun additionalVolumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterAdditionalVolumeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVolumes = mapped
    }

    /**
     * @param argument The additional volumes. See `additional_volumes` below.
     */
    @JvmName("vnnvkexiinfjmamw")
    public suspend fun additionalVolumes(vararg argument: suspend ClusterAdditionalVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterAdditionalVolumeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVolumes = mapped
    }

    /**
     * @param argument The additional volumes. See `additional_volumes` below.
     */
    @JvmName("pmvsouqwlysebqef")
    public suspend fun additionalVolumes(argument: suspend ClusterAdditionalVolumeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ClusterAdditionalVolumeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.additionalVolumes = mapped
    }

    /**
     * @param values The additional volumes. See `additional_volumes` below.
     */
    @JvmName("tqotmbaapkjpjjhc")
    public suspend fun additionalVolumes(vararg values: ClusterAdditionalVolumeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalVolumes = mapped
    }

    /**
     * @param value The application. See `application` below.
     */
    @JvmName("xtwkofpqibxulbuo")
    public suspend fun applications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applications = mapped
    }

    /**
     * @param argument The application. See `application` below.
     */
    @JvmName("gpbbsrqeljkivlcf")
    public suspend fun applications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterApplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.applications = mapped
    }

    /**
     * @param argument The application. See `application` below.
     */
    @JvmName("lopdeoddhuypktvg")
    public suspend fun applications(vararg argument: suspend ClusterApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterApplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.applications = mapped
    }

    /**
     * @param argument The application. See `application` below.
     */
    @JvmName("frsytlnseieenebq")
    public suspend fun applications(argument: suspend ClusterApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ClusterApplicationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.applications = mapped
    }

    /**
     * @param values The application. See `application` below.
     */
    @JvmName("aaltneytpixswodp")
    public suspend fun applications(vararg values: ClusterApplicationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applications = mapped
    }

    /**
     * @param value Specifies whether to enable auto-renewal for the subscription. Default value: `false`.
     */
    @JvmName("uatlqhocuwscbaoi")
    public suspend fun autoRenew(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRenew = mapped
    }

    /**
     * @param value The auto-renewal period of the subscription compute nodes. The parameter takes effect when AutoRenew is set to true.
     */
    @JvmName("lfywadkspltbyxla")
    public suspend fun autoRenewPeriod(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRenewPeriod = mapped
    }

    /**
     * @param value The version of the E-HPC client. By default, the parameter is set to the latest version number.
     */
    @JvmName("tpgiqtcyyhskcseo")
    public suspend fun clientVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientVersion = mapped
    }

    /**
     * @param value The name of the cluster. The name must be `2` to `64` characters in length.
     */
    @JvmName("ynhbwsmxhqvftjjm")
    public suspend fun clusterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterName = mapped
    }

    /**
     * @param value The version of the cluster. Default value: `1.0`.
     */
    @JvmName("ctfbytsylgbnxirm")
    public suspend fun clusterVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterVersion = mapped
    }

    /**
     * @param value The number of the compute nodes. Valid values: `1` to `99`.
     */
    @JvmName("irqfreukpdkspevi")
    public suspend fun computeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeCount = mapped
    }

    /**
     * @param value Specifies whether the compute nodes support hyper-threading. Default value: `true`.
     */
    @JvmName("jtlbjgkcqndwqbxp")
    public suspend fun computeEnableHt(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeEnableHt = mapped
    }

    /**
     * @param value The instance type of the compute nodes.
     */
    @JvmName("gfpklsojplakngcd")
    public suspend fun computeInstanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeInstanceType = mapped
    }

    /**
     * @param value The maximum hourly price of the compute nodes. A maximum of three decimal places can be used in the value of the parameter. The parameter is valid only when the ComputeSpotStrategy parameter is set to SpotWithPriceLimit.
     */
    @JvmName("qculkunmnmapkhvj")
    public suspend fun computeSpotPriceLimit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeSpotPriceLimit = mapped
    }

    /**
     * @param value The bidding method of the compute nodes. Default value: `NoSpot`. Valid values:
     * - `NoSpot`: The compute nodes are pay-as-you-go instances.
     * - `SpotWithPriceLimit`: The compute nodes are preemptible instances that have a user-defined maximum hourly price.
     * - `SpotAsPriceGo`: The compute nodes are preemptible instances for which the market price at the time of purchase is used as the bid price.
     */
    @JvmName("spiqivymplcmhpea")
    public suspend fun computeSpotStrategy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeSpotStrategy = mapped
    }

    /**
     * @param value The mode in which the cluster is deployed. Valid values: `Standard`, `Simple`, `Tiny`. Default value: Standard.
     * - `Standard`: An account node, a scheduling node, a logon node, and multiple compute nodes are separately deployed.
     * - `Simple`: A management node, a logon node, and multiple compute nodes are deployed. The management node consists of an account node and a scheduling node. The logon node and compute nodes are separately deployed.
     * - `Tiny`: A management node and multiple compute nodes are deployed. The management node consists of an account node, a scheduling node, and a logon node. The compute nodes are separately deployed.
     */
    @JvmName("eyxafhpmfbayivwo")
    public suspend fun deployMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deployMode = mapped
    }

    /**
     * @param value The description of the cluster. The description must be `2` to `256` characters in length. It cannot start with `http://` or `https://`.
     */
    @JvmName("hfcsgstuxhslllud")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The domain name of the on-premises cluster. This parameter takes effect only when the AccoutType parameter is set to Idap.
     */
    @JvmName("vvrjfsyefncnekju")
    public suspend fun domain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param value The billing method of the nodes.
     */
    @JvmName("otduxtuppippdvga")
    public suspend fun ecsChargeType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ecsChargeType = mapped
    }

    /**
     * @param value The version of E-HPC. By default, the parameter is set to the latest version number.
     */
    @JvmName("ictealqurhfblnwx")
    public suspend fun ehpcVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ehpcVersion = mapped
    }

    /**
     * @param value Specifies whether to enable the high availability feature. Default value: `false`.  **Note:** If high availability is enabled, a primary management node and a secondary management node are used.
     */
    @JvmName("simwscvkpvaxjwes")
    public suspend fun haEnable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.haEnable = mapped
    }

    /**
     * @param value The ID of the image.
     */
    @JvmName("baygaqbpsqlaiaih")
    public suspend fun imageId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageId = mapped
    }

    /**
     * @param value The type of the image. Valid values: `others`, `self`, `system`, `marketplace`. Default value: `system`.
     */
    @JvmName("hnjiqtnewvantqlk")
    public suspend fun imageOwnerAlias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageOwnerAlias = mapped
    }

    /**
     * @param value The URL of the job files that are uploaded to an Object Storage Service (OSS) bucket.
     */
    @JvmName("ptbsrfdycivoxnhy")
    public suspend fun inputFileUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputFileUrl = mapped
    }

    /**
     * @param value Specifies whether to enable auto scaling. Default value: `false`.
     */
    @JvmName("rbjsrfxarvbcciuq")
    public suspend fun isComputeEss(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isComputeEss = mapped
    }

    /**
     * @param value The queue to which the compute nodes are added.
     */
    @JvmName("bplcslltksdmjptb")
    public suspend fun jobQueue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobQueue = mapped
    }

    /**
     * @param value The name of the AccessKey pair.
     */
    @JvmName("aykpattxhthafcoc")
    public suspend fun keyPairName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyPairName = mapped
    }

    /**
     * @param value The number of the logon nodes. Valid values: `1`.
     */
    @JvmName("uqsinctpkqjcidui")
    public suspend fun loginCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loginCount = mapped
    }

    /**
     * @param value The instance type of the logon nodes.
     */
    @JvmName("cccvimrkfjalsbka")
    public suspend fun loginInstanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loginInstanceType = mapped
    }

    /**
     * @param value The number of the management nodes. Valid values: 1 and 2.
     */
    @JvmName("kwfivoojaacrodms")
    public suspend fun managerCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managerCount = mapped
    }

    /**
     * @param value The instance type of the management nodes.
     */
    @JvmName("httnqbjayjmjjuhc")
    public suspend fun managerInstanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managerInstanceType = mapped
    }

    /**
     * @param value The image tag of the operating system.
     */
    @JvmName("degfoatwjaddusji")
    public suspend fun osTag(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osTag = mapped
    }

    /**
     * @param value The root password of the logon node. The password must be 8 to 30 characters in length and contain at least three of the following items: uppercase letters, lowercase letters, digits, and special characters. The password can contain the following special characters: `( ) ~ ! @ # $ % ^ & * - + = { } [ ] : ; ‘ < > , . ? /`. You must specify either `password` or `key_pair_name`. If both are specified, the Password parameter prevails.
     */
    @JvmName("oogbojeucwmlheki")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The duration of the subscription. The unit of the duration is specified by the `period_unit` parameter. Default value: `1`.
     * * If you set PriceUnit to Year, the valid values of the Period parameter are 1, 2, and 3.
     * * If you set PriceUnit to Month, the valid values of the Period parameter are 1, 2, 3, 4, 5, 6, 7, 8, and 9.
     * * If you set PriceUnit to Hour, the valid value of the Period parameter is 1.
     */
    @JvmName("edjbertryrfefvcf")
    public suspend fun period(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.period = mapped
    }

    /**
     * @param value The unit of the subscription duration. Valid values: `Year`, `Month`, `Hour`. Default value: `Month`.
     */
    @JvmName("ljxslplqtwhckqug")
    public suspend fun periodUnit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.periodUnit = mapped
    }

    /**
     * @param value The mode configurations of the plug-in. This parameter takes effect only when the SchedulerType parameter is set to custom. The value must be a JSON string. The parameter contains the following parameters: pluginMod, pluginLocalPath, and pluginOssPath.
     * - pluginMod: the mode of the plug-in. The following modes are supported:
     * - oss: The plug-in is downloaded and decompressed from OSS to a local path. The local path is specified by the pluginLocalPath parameter.
     * - image: By default, the plug-in is stored in a pre-defined local path. The local path is specified by the pluginLocalPath parameter.
     * - pluginLocalPath: the local path where the plug-in is stored. We recommend that you select a shared directory in oss mode and a non-shared directory in image mode.
     * - pluginOssPath: the remote path where the plug-in is stored in OSS. This parameter takes effect only when the pluginMod parameter is set to oss.
     */
    @JvmName("cowgdbjbosrsdsob")
    public suspend fun plugin(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.plugin = mapped
    }

    /**
     * @param value The post install script. See `post_install_script` below.
     */
    @JvmName("kvujthaywmsmbcdn")
    public suspend fun postInstallScripts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postInstallScripts = mapped
    }

    /**
     * @param argument The post install script. See `post_install_script` below.
     */
    @JvmName("qtgwyhhhixbjobfm")
    public suspend fun postInstallScripts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterPostInstallScriptArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.postInstallScripts = mapped
    }

    /**
     * @param argument The post install script. See `post_install_script` below.
     */
    @JvmName("gmjilwcerpiyxkan")
    public suspend fun postInstallScripts(vararg argument: suspend ClusterPostInstallScriptArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterPostInstallScriptArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.postInstallScripts = mapped
    }

    /**
     * @param argument The post install script. See `post_install_script` below.
     */
    @JvmName("fackgkfwgvcbyiae")
    public suspend fun postInstallScripts(argument: suspend ClusterPostInstallScriptArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ClusterPostInstallScriptArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.postInstallScripts = mapped
    }

    /**
     * @param values The post install script. See `post_install_script` below.
     */
    @JvmName("jpyfbrehlnalvgte")
    public suspend fun postInstallScripts(vararg values: ClusterPostInstallScriptArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.postInstallScripts = mapped
    }

    /**
     * @param value The node of the RAM role.
     */
    @JvmName("fftcdcylkystptjn")
    public suspend fun ramNodeTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ramNodeTypes = mapped
    }

    /**
     * @param values The node of the RAM role.
     */
    @JvmName("ygqbwrtailaobmma")
    public suspend fun ramNodeTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ramNodeTypes = mapped
    }

    /**
     * @param value The name of the Resource Access Management (RAM) role.
     */
    @JvmName("cdiyicpsuoeelnkh")
    public suspend fun ramRoleName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ramRoleName = mapped
    }

    /**
     * @param value The release instance. Valid values: `true`.
     */
    @JvmName("dgbxwtyiamxgywua")
    public suspend fun releaseInstance(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.releaseInstance = mapped
    }

    /**
     * @param value The remote directory to which the file system is mounted.
     */
    @JvmName("jlbpwdxfiycbwffk")
    public suspend fun remoteDirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remoteDirectory = mapped
    }

    /**
     * @param value Specifies whether to enable Virtual Network Computing (VNC). Default value: `false`.
     */
    @JvmName("gkquebobqqtbfdrf")
    public suspend fun remoteVisEnable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remoteVisEnable = mapped
    }

    /**
     * @param value The ID of the resource group.
     */
    @JvmName("tkvflwxpjpkrmpvy")
    public suspend fun resourceGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupId = mapped
    }

    /**
     * @param value The ID of the Super Computing Cluster (SCC) instance. If you specify the parameter, the SCC instance is moved to a new SCC cluster.
     */
    @JvmName("guddvouhccarxybp")
    public suspend fun sccClusterId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sccClusterId = mapped
    }

    /**
     * @param value The type of the scheduler. Valid values: `pbs`, `slurm`, `opengridscheduler` and `deadline`. Default value: `pbs`.
     */
    @JvmName("vikgdigbnxyeprsg")
    public suspend fun schedulerType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedulerType = mapped
    }

    /**
     * @param value The ID of the security group to which the cluster belongs.
     */
    @JvmName("xrhiponlsibnnxgw")
    public suspend fun securityGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupId = mapped
    }

    /**
     * @param value If you do not use an existing security group, set the parameter to the name of a new security group. A default policy is applied to the new security group.
     */
    @JvmName("pswcrhlhjnwussdj")
    public suspend fun securityGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupName = mapped
    }

    /**
     * @param value The performance level of the ESSD that is used as the system disk. Default value: `PL1` For more information, see [ESSDs](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/essds). Valid values:
     * * `PL0`: A single ESSD can deliver up to 10,000 random read/write IOPS.
     * * `PL1`: A single ESSD can deliver up to 50,000 random read/write IOPS.
     * * `PL2`: A single ESSD can deliver up to 100,000 random read/write IOPS.
     * * `PL3`: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
     */
    @JvmName("sfcienqavbdfdwps")
    public suspend fun systemDiskLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemDiskLevel = mapped
    }

    /**
     * @param value The size of the system disk. Unit: `GB`. Valid values: `40` to `500`. Default value: `40`.
     */
    @JvmName("krxligiilktcoyrd")
    public suspend fun systemDiskSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemDiskSize = mapped
    }

    /**
     * @param value The type of the system disk. Valid values: `cloud_efficiency`, `cloud_ssd`, `cloud_essd` or `cloud`. Default value: `cloud_ssd`.
     */
    @JvmName("jtgwioktvpkuxoli")
    public suspend fun systemDiskType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemDiskType = mapped
    }

    /**
     * @param value The ID of the file system. If you leave the parameter empty, a Performance NAS file system is created by default.
     */
    @JvmName("bavpehiwssljammp")
    public suspend fun volumeId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeId = mapped
    }

    /**
     * @param value The mount options of the file system.
     */
    @JvmName("iyqfexjmtuyutblo")
    public suspend fun volumeMountOption(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeMountOption = mapped
    }

    /**
     * @param value The mount target of the file system. Take note of the following information:
     * - If you do not specify the VolumeId parameter, you can leave the VolumeMountpoint parameter empty. A mount target is created by default.
     * - If you specify the VolumeId parameter, the VolumeMountpoint parameter is required.
     */
    @JvmName("mefujjmxebrfagob")
    public suspend fun volumeMountpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeMountpoint = mapped
    }

    /**
     * @param value The type of the protocol that is used by the file system. Valid values: `NFS`, `SMB`. Default value: `NFS`.
     */
    @JvmName("eihabrjgqrqhilnk")
    public suspend fun volumeProtocol(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeProtocol = mapped
    }

    /**
     * @param value The type of the shared storage. Only Apsara File Storage NAS file systems are supported.
     */
    @JvmName("whycdtyigsfwhlna")
    public suspend fun volumeType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeType = mapped
    }

    /**
     * @param value The ID of the virtual private cloud (VPC) to which the cluster belongs.
     */
    @JvmName("tlpvlrnecwtlgjqw")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    /**
     * @param value The ID of the vSwitch. E-HPC supports only VPC networks.
     */
    @JvmName("maltuvuwetqlyylw")
    public suspend fun vswitchId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vswitchId = mapped
    }

    /**
     * @param value Specifies whether not to install the agent. Default value: `false`.
     */
    @JvmName("ipyfeoiixeltlkrk")
    public suspend fun withoutAgent(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.withoutAgent = mapped
    }

    /**
     * @param value Specifies whether the logon node uses an elastic IP address (EIP). Default value: `false`.
     */
    @JvmName("tsdnmwivuimfbjfg")
    public suspend fun withoutElasticIp(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.withoutElasticIp = mapped
    }

    /**
     * @param value The ID of the zone.
     */
    @JvmName("dbkrhrubjgiewelq")
    public suspend fun zoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneId = mapped
    }

    internal fun build(): ClusterArgs = ClusterArgs(
        accountType = accountType,
        additionalVolumes = additionalVolumes,
        applications = applications,
        autoRenew = autoRenew,
        autoRenewPeriod = autoRenewPeriod,
        clientVersion = clientVersion,
        clusterName = clusterName,
        clusterVersion = clusterVersion,
        computeCount = computeCount,
        computeEnableHt = computeEnableHt,
        computeInstanceType = computeInstanceType,
        computeSpotPriceLimit = computeSpotPriceLimit,
        computeSpotStrategy = computeSpotStrategy,
        deployMode = deployMode,
        description = description,
        domain = domain,
        ecsChargeType = ecsChargeType,
        ehpcVersion = ehpcVersion,
        haEnable = haEnable,
        imageId = imageId,
        imageOwnerAlias = imageOwnerAlias,
        inputFileUrl = inputFileUrl,
        isComputeEss = isComputeEss,
        jobQueue = jobQueue,
        keyPairName = keyPairName,
        loginCount = loginCount,
        loginInstanceType = loginInstanceType,
        managerCount = managerCount,
        managerInstanceType = managerInstanceType,
        osTag = osTag,
        password = password,
        period = period,
        periodUnit = periodUnit,
        plugin = plugin,
        postInstallScripts = postInstallScripts,
        ramNodeTypes = ramNodeTypes,
        ramRoleName = ramRoleName,
        releaseInstance = releaseInstance,
        remoteDirectory = remoteDirectory,
        remoteVisEnable = remoteVisEnable,
        resourceGroupId = resourceGroupId,
        sccClusterId = sccClusterId,
        schedulerType = schedulerType,
        securityGroupId = securityGroupId,
        securityGroupName = securityGroupName,
        systemDiskLevel = systemDiskLevel,
        systemDiskSize = systemDiskSize,
        systemDiskType = systemDiskType,
        volumeId = volumeId,
        volumeMountOption = volumeMountOption,
        volumeMountpoint = volumeMountpoint,
        volumeProtocol = volumeProtocol,
        volumeType = volumeType,
        vpcId = vpcId,
        vswitchId = vswitchId,
        withoutAgent = withoutAgent,
        withoutElasticIp = withoutElasticIp,
        zoneId = zoneId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy