Provides a Eflo Hyper Node resource.
Hyper computing node.
For information about Eflo Hyper Node and how to use it, see What is Hyper Node.
NOTE: Available since v1.264.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 = new alicloud.eflo.HyperNode("default", {
zoneId: "ap-southeast-7a",
machineType: "efg3.GN9A.ch72",
hpnZone: "A1",
serverArch: "bmserver",
paymentDuration: 1,
paymentType: "Subscription",
stageNum: "1",
renewalDuration: 2,
renewalStatus: "ManualRenewal",
tags: {
From: "Terraform",
Env: "Product",
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.eflo.HyperNode("default",
zone_id="ap-southeast-7a",
machine_type="efg3.GN9A.ch72",
hpn_zone="A1",
server_arch="bmserver",
payment_duration=1,
payment_type="Subscription",
stage_num="1",
renewal_duration=2,
renewal_status="ManualRenewal",
tags={
"From": "Terraform",
"Env": "Product",
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
"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 := eflo.NewHyperNode(ctx, "default", &eflo.HyperNodeArgs{
ZoneId: pulumi.String("ap-southeast-7a"),
MachineType: pulumi.String("efg3.GN9A.ch72"),
HpnZone: pulumi.String("A1"),
ServerArch: pulumi.String("bmserver"),
PaymentDuration: pulumi.Int(1),
PaymentType: pulumi.String("Subscription"),
StageNum: pulumi.String("1"),
RenewalDuration: pulumi.Int(2),
RenewalStatus: pulumi.String("ManualRenewal"),
Tags: pulumi.StringMap{
"From": pulumi.String("Terraform"),
"Env": pulumi.String("Product"),
},
})
if err != nil {
return err
}
return nil
})
}
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 = new AliCloud.Eflo.HyperNode("default", new()
{
ZoneId = "ap-southeast-7a",
MachineType = "efg3.GN9A.ch72",
HpnZone = "A1",
ServerArch = "bmserver",
PaymentDuration = 1,
PaymentType = "Subscription",
StageNum = "1",
RenewalDuration = 2,
RenewalStatus = "ManualRenewal",
Tags =
{
{ "From", "Terraform" },
{ "Env", "Product" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eflo.HyperNode;
import com.pulumi.alicloud.eflo.HyperNodeArgs;
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");
var default_ = new HyperNode("default", HyperNodeArgs.builder()
.zoneId("ap-southeast-7a")
.machineType("efg3.GN9A.ch72")
.hpnZone("A1")
.serverArch("bmserver")
.paymentDuration(1)
.paymentType("Subscription")
.stageNum("1")
.renewalDuration(2)
.renewalStatus("ManualRenewal")
.tags(Map.ofEntries(
Map.entry("From", "Terraform"),
Map.entry("Env", "Product")
))
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:eflo:HyperNode
properties:
zoneId: ap-southeast-7a
machineType: efg3.GN9A.ch72
hpnZone: A1
serverArch: bmserver
paymentDuration: '1'
paymentType: Subscription
stageNum: '1'
renewalDuration: 2
renewalStatus: ManualRenewal
tags:
From: Terraform
Env: Product
Create HyperNode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HyperNode(name: string, args: HyperNodeArgs, opts?: CustomResourceOptions);@overload
def HyperNode(resource_name: str,
args: HyperNodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HyperNode(resource_name: str,
opts: Optional[ResourceOptions] = None,
payment_type: Optional[str] = None,
hpn_zone: Optional[str] = None,
machine_type: Optional[str] = None,
payment_duration: Optional[int] = None,
renewal_duration: Optional[int] = None,
renewal_status: Optional[str] = None,
resource_group_id: Optional[str] = None,
server_arch: Optional[str] = None,
stage_num: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zone_id: Optional[str] = None)func NewHyperNode(ctx *Context, name string, args HyperNodeArgs, opts ...ResourceOption) (*HyperNode, error)public HyperNode(string name, HyperNodeArgs args, CustomResourceOptions? opts = null)
public HyperNode(String name, HyperNodeArgs args)
public HyperNode(String name, HyperNodeArgs args, CustomResourceOptions options)
type: alicloud:eflo:HyperNode
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HyperNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HyperNodeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HyperNodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HyperNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HyperNodeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hyperNodeResource = new AliCloud.Eflo.HyperNode("hyperNodeResource", new()
{
PaymentType = "string",
HpnZone = "string",
MachineType = "string",
PaymentDuration = 0,
RenewalDuration = 0,
RenewalStatus = "string",
ResourceGroupId = "string",
ServerArch = "string",
StageNum = "string",
Tags =
{
{ "string", "string" },
},
ZoneId = "string",
});
example, err := eflo.NewHyperNode(ctx, "hyperNodeResource", &eflo.HyperNodeArgs{
PaymentType: pulumi.String("string"),
HpnZone: pulumi.String("string"),
MachineType: pulumi.String("string"),
PaymentDuration: pulumi.Int(0),
RenewalDuration: pulumi.Int(0),
RenewalStatus: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
ServerArch: pulumi.String("string"),
StageNum: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ZoneId: pulumi.String("string"),
})
var hyperNodeResource = new HyperNode("hyperNodeResource", HyperNodeArgs.builder()
.paymentType("string")
.hpnZone("string")
.machineType("string")
.paymentDuration(0)
.renewalDuration(0)
.renewalStatus("string")
.resourceGroupId("string")
.serverArch("string")
.stageNum("string")
.tags(Map.of("string", "string"))
.zoneId("string")
.build());
hyper_node_resource = alicloud.eflo.HyperNode("hyperNodeResource",
payment_type="string",
hpn_zone="string",
machine_type="string",
payment_duration=0,
renewal_duration=0,
renewal_status="string",
resource_group_id="string",
server_arch="string",
stage_num="string",
tags={
"string": "string",
},
zone_id="string")
const hyperNodeResource = new alicloud.eflo.HyperNode("hyperNodeResource", {
paymentType: "string",
hpnZone: "string",
machineType: "string",
paymentDuration: 0,
renewalDuration: 0,
renewalStatus: "string",
resourceGroupId: "string",
serverArch: "string",
stageNum: "string",
tags: {
string: "string",
},
zoneId: "string",
});
type: alicloud:eflo:HyperNode
properties:
hpnZone: string
machineType: string
paymentDuration: 0
paymentType: string
renewalDuration: 0
renewalStatus: string
resourceGroupId: string
serverArch: string
stageNum: string
tags:
string: string
zoneId: string
HyperNode Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HyperNode resource accepts the following input properties:
- Payment
Type string - The payment type of the resource
- Hpn
Zone string - Number of the cluster to which the supercompute node belongs
- Machine
Type string - The model used by the super computing node
- Payment
Duration int The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Renewal
Duration int - Number of auto-renewal cycles
- Renewal
Status string - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- Resource
Group stringId - The ID of the resource group
- Server
Arch string - Super Node Architecture
- Stage
Num string The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Dictionary<string, string>
- The tag of the resource
- Zone
Id string - The zone where the super compute node is located
- Payment
Type string - The payment type of the resource
- Hpn
Zone string - Number of the cluster to which the supercompute node belongs
- Machine
Type string - The model used by the super computing node
- Payment
Duration int The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Renewal
Duration int - Number of auto-renewal cycles
- Renewal
Status string - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- Resource
Group stringId - The ID of the resource group
- Server
Arch string - Super Node Architecture
- Stage
Num string The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- map[string]string
- The tag of the resource
- Zone
Id string - The zone where the super compute node is located
- payment
Type String - The payment type of the resource
- hpn
Zone String - Number of the cluster to which the supercompute node belongs
- machine
Type String - The model used by the super computing node
- payment
Duration Integer The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- renewal
Duration Integer - Number of auto-renewal cycles
- renewal
Status String - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource
Group StringId - The ID of the resource group
- server
Arch String - Super Node Architecture
- stage
Num String The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Map<String,String>
- The tag of the resource
- zone
Id String - The zone where the super compute node is located
- payment
Type string - The payment type of the resource
- hpn
Zone string - Number of the cluster to which the supercompute node belongs
- machine
Type string - The model used by the super computing node
- payment
Duration number The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- renewal
Duration number - Number of auto-renewal cycles
- renewal
Status string - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource
Group stringId - The ID of the resource group
- server
Arch string - Super Node Architecture
- stage
Num string The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- {[key: string]: string}
- The tag of the resource
- zone
Id string - The zone where the super compute node is located
- payment_
type str - The payment type of the resource
- hpn_
zone str - Number of the cluster to which the supercompute node belongs
- machine_
type str - The model used by the super computing node
- payment_
duration int The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- renewal_
duration int - Number of auto-renewal cycles
- renewal_
status str - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource_
group_ strid - The ID of the resource group
- server_
arch str - Super Node Architecture
- stage_
num str The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Mapping[str, str]
- The tag of the resource
- zone_
id str - The zone where the super compute node is located
- payment
Type String - The payment type of the resource
- hpn
Zone String - Number of the cluster to which the supercompute node belongs
- machine
Type String - The model used by the super computing node
- payment
Duration Number The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- renewal
Duration Number - Number of auto-renewal cycles
- renewal
Status String - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource
Group StringId - The ID of the resource group
- server
Arch String - Super Node Architecture
- stage
Num String The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Map<String>
- The tag of the resource
- zone
Id String - The zone where the super compute node is located
Outputs
All input properties are implicitly available as output properties. Additionally, the HyperNode resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID of the resource
- Status string
- The status of the resource
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID of the resource
- Status string
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID of the resource
- status String
- The status of the resource
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id string - The region ID of the resource
- status string
- The status of the resource
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- region_
id str - The region ID of the resource
- status str
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID of the resource
- status String
- The status of the resource
Look up Existing HyperNode Resource
Get an existing HyperNode resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HyperNodeState, opts?: CustomResourceOptions): HyperNode@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
hpn_zone: Optional[str] = None,
machine_type: Optional[str] = None,
payment_duration: Optional[int] = None,
payment_type: Optional[str] = None,
region_id: Optional[str] = None,
renewal_duration: Optional[int] = None,
renewal_status: Optional[str] = None,
resource_group_id: Optional[str] = None,
server_arch: Optional[str] = None,
stage_num: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zone_id: Optional[str] = None) -> HyperNodefunc GetHyperNode(ctx *Context, name string, id IDInput, state *HyperNodeState, opts ...ResourceOption) (*HyperNode, error)public static HyperNode Get(string name, Input<string> id, HyperNodeState? state, CustomResourceOptions? opts = null)public static HyperNode get(String name, Output<String> id, HyperNodeState state, CustomResourceOptions options)resources: _: type: alicloud:eflo:HyperNode get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - The creation time of the resource
- Hpn
Zone string - Number of the cluster to which the supercompute node belongs
- Machine
Type string - The model used by the super computing node
- Payment
Duration int The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Payment
Type string - The payment type of the resource
- Region
Id string - The region ID of the resource
- Renewal
Duration int - Number of auto-renewal cycles
- Renewal
Status string - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- Resource
Group stringId - The ID of the resource group
- Server
Arch string - Super Node Architecture
- Stage
Num string The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Status string
- The status of the resource
- Dictionary<string, string>
- The tag of the resource
- Zone
Id string - The zone where the super compute node is located
- Create
Time string - The creation time of the resource
- Hpn
Zone string - Number of the cluster to which the supercompute node belongs
- Machine
Type string - The model used by the super computing node
- Payment
Duration int The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Payment
Type string - The payment type of the resource
- Region
Id string - The region ID of the resource
- Renewal
Duration int - Number of auto-renewal cycles
- Renewal
Status string - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- Resource
Group stringId - The ID of the resource group
- Server
Arch string - Super Node Architecture
- Stage
Num string The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Status string
- The status of the resource
- map[string]string
- The tag of the resource
- Zone
Id string - The zone where the super compute node is located
- create
Time String - The creation time of the resource
- hpn
Zone String - Number of the cluster to which the supercompute node belongs
- machine
Type String - The model used by the super computing node
- payment
Duration Integer The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- payment
Type String - The payment type of the resource
- region
Id String - The region ID of the resource
- renewal
Duration Integer - Number of auto-renewal cycles
- renewal
Status String - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource
Group StringId - The ID of the resource group
- server
Arch String - Super Node Architecture
- stage
Num String The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- status String
- The status of the resource
- Map<String,String>
- The tag of the resource
- zone
Id String - The zone where the super compute node is located
- create
Time string - The creation time of the resource
- hpn
Zone string - Number of the cluster to which the supercompute node belongs
- machine
Type string - The model used by the super computing node
- payment
Duration number The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- payment
Type string - The payment type of the resource
- region
Id string - The region ID of the resource
- renewal
Duration number - Number of auto-renewal cycles
- renewal
Status string - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource
Group stringId - The ID of the resource group
- server
Arch string - Super Node Architecture
- stage
Num string The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- status string
- The status of the resource
- {[key: string]: string}
- The tag of the resource
- zone
Id string - The zone where the super compute node is located
- create_
time str - The creation time of the resource
- hpn_
zone str - Number of the cluster to which the supercompute node belongs
- machine_
type str - The model used by the super computing node
- payment_
duration int The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- payment_
type str - The payment type of the resource
- region_
id str - The region ID of the resource
- renewal_
duration int - Number of auto-renewal cycles
- renewal_
status str - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource_
group_ strid - The ID of the resource group
- server_
arch str - Super Node Architecture
- stage_
num str The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- status str
- The status of the resource
- Mapping[str, str]
- The tag of the resource
- zone_
id str - The zone where the super compute node is located
- create
Time String - The creation time of the resource
- hpn
Zone String - Number of the cluster to which the supercompute node belongs
- machine
Type String - The model used by the super computing node
- payment
Duration Number The duration of the instance purchase, in units.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- payment
Type String - The payment type of the resource
- region
Id String - The region ID of the resource
- renewal
Duration Number - Number of auto-renewal cycles
- renewal
Status String - Automatic renewal status. Value: AutoRenewal: automatic renewal. ManualRenewal: manual renewal. The default ManualRenewal.
- resource
Group StringId - The ID of the resource group
- server
Arch String - Super Node Architecture
- stage
Num String The number of installments of the supercomputing node of the fixed fee installment.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- status String
- The status of the resource
- Map<String>
- The tag of the resource
- zone
Id String - The zone where the super compute node is located
Import
Eflo Hyper Node can be imported using the id, e.g.
$ pulumi import alicloud:eflo/hyperNode:HyperNode example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
