volcenginecc.ecs.HpcCluster
高性能计算集群(High Performance Compute Cluster,HPC集群)是一种用于处理大规模计算任务的集群计算环境,通常由大量的计算节点组成,这些节点通过RDMA(Remote Direct Memory Access)高速网络互联,并协同工作以处理复杂的计算任务。高性能计算集群可以提供强大的计算能力、大内存、高速存储和高速网络,以满足对计算密集型、数据密集型或两者结合的工作负载的需求。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const eCSHpcClusterDemo = new volcenginecc.ecs.HpcCluster("ECSHpcClusterDemo", {
name: "ECSHpcClusterDemo",
zoneId: "cn-beijing-a",
description: "ECSHpcClusterDemo description",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
e_cs_hpc_cluster_demo = volcenginecc.ecs.HpcCluster("ECSHpcClusterDemo",
name="ECSHpcClusterDemo",
zone_id="cn-beijing-a",
description="ECSHpcClusterDemo description")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.NewHpcCluster(ctx, "ECSHpcClusterDemo", &ecs.HpcClusterArgs{
Name: pulumi.String("ECSHpcClusterDemo"),
ZoneId: pulumi.String("cn-beijing-a"),
Description: pulumi.String("ECSHpcClusterDemo description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var eCSHpcClusterDemo = new Volcenginecc.Ecs.HpcCluster("ECSHpcClusterDemo", new()
{
Name = "ECSHpcClusterDemo",
ZoneId = "cn-beijing-a",
Description = "ECSHpcClusterDemo description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.ecs.HpcCluster;
import com.volcengine.volcenginecc.ecs.HpcClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var eCSHpcClusterDemo = new HpcCluster("eCSHpcClusterDemo", HpcClusterArgs.builder()
.name("ECSHpcClusterDemo")
.zoneId("cn-beijing-a")
.description("ECSHpcClusterDemo description")
.build());
}
}
resources:
eCSHpcClusterDemo:
type: volcenginecc:ecs:HpcCluster
name: ECSHpcClusterDemo
properties:
name: ECSHpcClusterDemo
zoneId: cn-beijing-a
description: ECSHpcClusterDemo description
Create HpcCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HpcCluster(name: string, args: HpcClusterArgs, opts?: CustomResourceOptions);
@overload
def HpcCluster(resource_name: str,
args: HpcClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HpcCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
zone_id: Optional[str] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
updated_time: Optional[str] = None)
func NewHpcCluster(ctx *Context, name string, args HpcClusterArgs, opts ...ResourceOption) (*HpcCluster, error)
public HpcCluster(string name, HpcClusterArgs args, CustomResourceOptions? opts = null)
public HpcCluster(String name, HpcClusterArgs args)
public HpcCluster(String name, HpcClusterArgs args, CustomResourceOptions options)
type: volcenginecc:ecs:HpcCluster
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 HpcClusterArgs
- 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 HpcClusterArgs
- 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 HpcClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HpcClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HpcClusterArgs
- 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 hpcClusterResource = new Volcenginecc.Ecs.HpcCluster("hpcClusterResource", new()
{
Name = "string",
ZoneId = "string",
CreatedTime = "string",
Description = "string",
UpdatedTime = "string",
});
example, err := ecs.NewHpcCluster(ctx, "hpcClusterResource", &ecs.HpcClusterArgs{
Name: pulumi.String("string"),
ZoneId: pulumi.String("string"),
CreatedTime: pulumi.String("string"),
Description: pulumi.String("string"),
UpdatedTime: pulumi.String("string"),
})
var hpcClusterResource = new HpcCluster("hpcClusterResource", HpcClusterArgs.builder()
.name("string")
.zoneId("string")
.createdTime("string")
.description("string")
.updatedTime("string")
.build());
hpc_cluster_resource = volcenginecc.ecs.HpcCluster("hpcClusterResource",
name="string",
zone_id="string",
created_time="string",
description="string",
updated_time="string")
const hpcClusterResource = new volcenginecc.ecs.HpcCluster("hpcClusterResource", {
name: "string",
zoneId: "string",
createdTime: "string",
description: "string",
updatedTime: "string",
});
type: volcenginecc:ecs:HpcCluster
properties:
createdTime: string
description: string
name: string
updatedTime: string
zoneId: string
HpcCluster 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 HpcCluster resource accepts the following input properties:
- Name string
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- Zone
Id string - 高性能计算集群所属可用区ID。
- Created
Time string - 创建时间,格式满足RFC3339。
- Description string
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- Updated
Time string - 更新时间,格式满足RFC3339。
- Name string
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- Zone
Id string - 高性能计算集群所属可用区ID。
- Created
Time string - 创建时间,格式满足RFC3339。
- Description string
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- Updated
Time string - 更新时间,格式满足RFC3339。
- name String
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- zone
Id String - 高性能计算集群所属可用区ID。
- created
Time String - 创建时间,格式满足RFC3339。
- description String
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- updated
Time String - 更新时间,格式满足RFC3339。
- name string
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- zone
Id string - 高性能计算集群所属可用区ID。
- created
Time string - 创建时间,格式满足RFC3339。
- description string
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- updated
Time string - 更新时间,格式满足RFC3339。
- name str
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- zone_
id str - 高性能计算集群所属可用区ID。
- created_
time str - 创建时间,格式满足RFC3339。
- description str
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- updated_
time str - 更新时间,格式满足RFC3339。
- name String
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- zone
Id String - 高性能计算集群所属可用区ID。
- created
Time String - 创建时间,格式满足RFC3339。
- description String
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- updated
Time String - 更新时间,格式满足RFC3339。
Outputs
All input properties are implicitly available as output properties. Additionally, the HpcCluster resource produces the following output properties:
- Hpc
Cluster stringId - 高性能计算集群ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Vpc
Id string - 私有网络ID。
- Hpc
Cluster stringId - 高性能计算集群ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Vpc
Id string - 私有网络ID。
- hpc
Cluster StringId - 高性能计算集群ID。
- id String
- The provider-assigned unique ID for this managed resource.
- vpc
Id String - 私有网络ID。
- hpc
Cluster stringId - 高性能计算集群ID。
- id string
- The provider-assigned unique ID for this managed resource.
- vpc
Id string - 私有网络ID。
- hpc_
cluster_ strid - 高性能计算集群ID。
- id str
- The provider-assigned unique ID for this managed resource.
- vpc_
id str - 私有网络ID。
- hpc
Cluster StringId - 高性能计算集群ID。
- id String
- The provider-assigned unique ID for this managed resource.
- vpc
Id String - 私有网络ID。
Look up Existing HpcCluster Resource
Get an existing HpcCluster 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?: HpcClusterState, opts?: CustomResourceOptions): HpcCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
name: Optional[str] = None,
updated_time: Optional[str] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None) -> HpcCluster
func GetHpcCluster(ctx *Context, name string, id IDInput, state *HpcClusterState, opts ...ResourceOption) (*HpcCluster, error)
public static HpcCluster Get(string name, Input<string> id, HpcClusterState? state, CustomResourceOptions? opts = null)
public static HpcCluster get(String name, Output<String> id, HpcClusterState state, CustomResourceOptions options)
resources: _: type: volcenginecc:ecs:HpcCluster 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.
- Created
Time string - 创建时间,格式满足RFC3339。
- Description string
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- Hpc
Cluster stringId - 高性能计算集群ID。
- Name string
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- Updated
Time string - 更新时间,格式满足RFC3339。
- Vpc
Id string - 私有网络ID。
- Zone
Id string - 高性能计算集群所属可用区ID。
- Created
Time string - 创建时间,格式满足RFC3339。
- Description string
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- Hpc
Cluster stringId - 高性能计算集群ID。
- Name string
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- Updated
Time string - 更新时间,格式满足RFC3339。
- Vpc
Id string - 私有网络ID。
- Zone
Id string - 高性能计算集群所属可用区ID。
- created
Time String - 创建时间,格式满足RFC3339。
- description String
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- hpc
Cluster StringId - 高性能计算集群ID。
- name String
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- updated
Time String - 更新时间,格式满足RFC3339。
- vpc
Id String - 私有网络ID。
- zone
Id String - 高性能计算集群所属可用区ID。
- created
Time string - 创建时间,格式满足RFC3339。
- description string
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- hpc
Cluster stringId - 高性能计算集群ID。
- name string
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- updated
Time string - 更新时间,格式满足RFC3339。
- vpc
Id string - 私有网络ID。
- zone
Id string - 高性能计算集群所属可用区ID。
- created_
time str - 创建时间,格式满足RFC3339。
- description str
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- hpc_
cluster_ strid - 高性能计算集群ID。
- name str
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- updated_
time str - 更新时间,格式满足RFC3339。
- vpc_
id str - 私有网络ID。
- zone_
id str - 高性能计算集群所属可用区ID。
- created
Time String - 创建时间,格式满足RFC3339。
- description String
- 高性能计算集群描述,默认为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在0~255之间。
- hpc
Cluster StringId - 高性能计算集群ID。
- name String
- 高性能计算集群名称。必须以字母或中文开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1~128之间。
- updated
Time String - 更新时间,格式满足RFC3339。
- vpc
Id String - 私有网络ID。
- zone
Id String - 高性能计算集群所属可用区ID。
Import
$ pulumi import volcenginecc:ecs/hpcCluster:HpcCluster example "hpc_cluster_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.