com.pulumi.alicloud.ehpc.kotlin.ClusterArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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