NodeArgs

data class NodeArgs(val billingCycle: Output<String>? = null, val classify: Output<String>? = null, val computingServer: Output<String>? = null, val discountLevel: Output<String>? = null, val hpnZone: Output<String>? = null, val paymentRatio: Output<String>? = null, val period: Output<Int>? = null, val productForm: Output<String>? = null, val renewPeriod: Output<Int>? = null, val renewalStatus: Output<String>? = null, val resourceGroupId: Output<String>? = null, val serverArch: Output<String>? = null, val stageNum: Output<String>? = null, val status: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val zone: Output<String>? = null) : ConvertibleToJava<NodeArgs>

Provides a Eflo Node resource. Large computing node. For information about Eflo Node and how to use it, see What is Node.

NOTE: Available since v1.246.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.resourcemanager.getResourceGroups({});
const defaultNode = new alicloud.eflo.Node("default", {
period: 36,
discountLevel: "36",
billingCycle: "1month",
classify: "gpuserver",
zone: "cn-hangzhou-b",
productForm: "instance",
paymentRatio: "0",
hpnZone: "B1",
serverArch: "bmserver",
computingServer: "efg1.nvga1n",
stageNum: "36",
renewalStatus: "AutoRenewal",
renewPeriod: 36,
status: "Unused",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.resourcemanager.get_resource_groups()
default_node = alicloud.eflo.Node("default",
period=36,
discount_level="36",
billing_cycle="1month",
classify="gpuserver",
zone="cn-hangzhou-b",
product_form="instance",
payment_ratio="0",
hpn_zone="B1",
server_arch="bmserver",
computing_server="efg1.nvga1n",
stage_num="36",
renewal_status="AutoRenewal",
renew_period=36,
status="Unused")
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") ?? "terraform-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultNode = new AliCloud.Eflo.Node("default", new()
{
Period = 36,
DiscountLevel = "36",
BillingCycle = "1month",
Classify = "gpuserver",
Zone = "cn-hangzhou-b",
ProductForm = "instance",
PaymentRatio = "0",
HpnZone = "B1",
ServerArch = "bmserver",
ComputingServer = "efg1.nvga1n",
StageNum = "36",
RenewalStatus = "AutoRenewal",
RenewPeriod = 36,
Status = "Unused",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
_, err = eflo.NewNode(ctx, "default", &eflo.NodeArgs{
Period: pulumi.Int(36),
DiscountLevel: pulumi.String("36"),
BillingCycle: pulumi.String("1month"),
Classify: pulumi.String("gpuserver"),
Zone: pulumi.String("cn-hangzhou-b"),
ProductForm: pulumi.String("instance"),
PaymentRatio: pulumi.String("0"),
HpnZone: pulumi.String("B1"),
ServerArch: pulumi.String("bmserver"),
ComputingServer: pulumi.String("efg1.nvga1n"),
StageNum: pulumi.String("36"),
RenewalStatus: pulumi.String("AutoRenewal"),
RenewPeriod: pulumi.Int(36),
Status: pulumi.String("Unused"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.eflo.Node;
import com.pulumi.alicloud.eflo.NodeArgs;
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("terraform-example");
final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.build());
var defaultNode = new Node("defaultNode", NodeArgs.builder()
.period(36)
.discountLevel("36")
.billingCycle("1month")
.classify("gpuserver")
.zone("cn-hangzhou-b")
.productForm("instance")
.paymentRatio("0")
.hpnZone("B1")
.serverArch("bmserver")
.computingServer("efg1.nvga1n")
.stageNum("36")
.renewalStatus("AutoRenewal")
.renewPeriod(36)
.status("Unused")
.build());
}
}
configuration:
# Before executing this example, you need to confirm with the product team whether the resources are sufficient or you will get an error message with "Failure to check order before create instance"
name:
type: string
default: terraform-example
resources:
defaultNode:
type: alicloud:eflo:Node
name: default
properties:
period: '36'
discountLevel: '36'
billingCycle: 1month
classify: gpuserver
zone: cn-hangzhou-b
productForm: instance
paymentRatio: '0'
hpnZone: B1
serverArch: bmserver
computingServer: efg1.nvga1n
stageNum: '36'
renewalStatus: AutoRenewal
renewPeriod: '36'
status: Unused
variables:
default:
fn::invoke:
function: alicloud:resourcemanager:getResourceGroups
arguments: {}

Import

Eflo Node can be imported using the id, e.g.

$ pulumi import alicloud:eflo/node:Node example <id>

Constructors

Link copied to clipboard
constructor(billingCycle: Output<String>? = null, classify: Output<String>? = null, computingServer: Output<String>? = null, discountLevel: Output<String>? = null, hpnZone: Output<String>? = null, paymentRatio: Output<String>? = null, period: Output<Int>? = null, productForm: Output<String>? = null, renewPeriod: Output<Int>? = null, renewalStatus: Output<String>? = null, resourceGroupId: Output<String>? = null, serverArch: Output<String>? = null, stageNum: Output<String>? = null, status: Output<String>? = null, tags: Output<Map<String, String>>? = null, zone: Output<String>? = null)

Properties

Link copied to clipboard
val billingCycle: Output<String>? = null

Billing cycle

Link copied to clipboard
val classify: Output<String>? = null

Classification

Link copied to clipboard
val computingServer: Output<String>? = null

Node Model

Link copied to clipboard
val discountLevel: Output<String>? = null

Offer Information

Link copied to clipboard
val hpnZone: Output<String>? = null

Cluster Number

Link copied to clipboard
val paymentRatio: Output<String>? = null

Down payment ratio

Link copied to clipboard
val period: Output<Int>? = null

Prepaid cycle. The unit is Month, please enter an integer multiple of 12 for the annual payment product.

Link copied to clipboard
val productForm: Output<String>? = null

Form

Link copied to clipboard
val renewalStatus: Output<String>? = null

Automatic renewal status, value:

Link copied to clipboard
val renewPeriod: Output<Int>? = null

Automatic renewal period, in months.

Link copied to clipboard
val resourceGroupId: Output<String>? = null

The ID of the resource group

Link copied to clipboard
val serverArch: Output<String>? = null

Architecture

Link copied to clipboard
val stageNum: Output<String>? = null

Number of stages

Link copied to clipboard
val status: Output<String>? = null

The status of the resource

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tag of the resource

Link copied to clipboard
val zone: Output<String>? = null

Availability Zone

Functions

Link copied to clipboard
open override fun toJava(): NodeArgs