1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. HpcCluster
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.ecs.HpcCluster

Explore with Pulumi AI

Provides a resource to manage ecs hpc cluster

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const foo = new volcengine.ecs.HpcCluster("foo", {
    description: "acc-test",
    zoneId: "cn-beijing-b",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.ecs.HpcCluster("foo",
    description="acc-test",
    zone_id="cn-beijing-b")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ecs.NewHpcCluster(ctx, "foo", &ecs.HpcClusterArgs{
			Description: pulumi.String("acc-test"),
			ZoneId:      pulumi.String("cn-beijing-b"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Ecs.HpcCluster("foo", new()
    {
        Description = "acc-test",
        ZoneId = "cn-beijing-b",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.HpcCluster;
import com.pulumi.volcengine.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 foo = new HpcCluster("foo", HpcClusterArgs.builder()        
            .description("acc-test")
            .zoneId("cn-beijing-b")
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:ecs:HpcCluster
    properties:
      description: acc-test
      zoneId: cn-beijing-b
Copy

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,
               zone_id: Optional[str] = None,
               description: Optional[str] = None,
               name: 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: volcengine:ecs:HpcCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. HpcClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. HpcClusterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. HpcClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Volcengine.Ecs.HpcCluster("hpcClusterResource", new()
{
    ZoneId = "string",
    Description = "string",
    Name = "string",
});
Copy
example, err := ecs.NewHpcCluster(ctx, "hpcClusterResource", &ecs.HpcClusterArgs{
	ZoneId:      pulumi.String("string"),
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var hpcClusterResource = new HpcCluster("hpcClusterResource", HpcClusterArgs.builder()
    .zoneId("string")
    .description("string")
    .name("string")
    .build());
Copy
hpc_cluster_resource = volcengine.ecs.HpcCluster("hpcClusterResource",
    zone_id="string",
    description="string",
    name="string")
Copy
const hpcClusterResource = new volcengine.ecs.HpcCluster("hpcClusterResource", {
    zoneId: "string",
    description: "string",
    name: "string",
});
Copy
type: volcengine:ecs:HpcCluster
properties:
    description: string
    name: string
    zoneId: string
Copy

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:

ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The zone id of the hpc cluster.
Description string
The description of the hpc cluster.
Name string
The name of the hpc cluster.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The zone id of the hpc cluster.
Description string
The description of the hpc cluster.
Name string
The name of the hpc cluster.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The zone id of the hpc cluster.
description String
The description of the hpc cluster.
name String
The name of the hpc cluster.
zoneId
This property is required.
Changes to this property will trigger replacement.
string
The zone id of the hpc cluster.
description string
The description of the hpc cluster.
name string
The name of the hpc cluster.
zone_id
This property is required.
Changes to this property will trigger replacement.
str
The zone id of the hpc cluster.
description str
The description of the hpc cluster.
name str
The name of the hpc cluster.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The zone id of the hpc cluster.
description String
The description of the hpc cluster.
name String
The name of the hpc cluster.

Outputs

All input properties are implicitly available as output properties. Additionally, the HpcCluster resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

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,
        description: Optional[str] = None,
        name: 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: volcengine:ecs:HpcCluster    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Description string
The description of the hpc cluster.
Name string
The name of the hpc cluster.
ZoneId Changes to this property will trigger replacement. string
The zone id of the hpc cluster.
Description string
The description of the hpc cluster.
Name string
The name of the hpc cluster.
ZoneId Changes to this property will trigger replacement. string
The zone id of the hpc cluster.
description String
The description of the hpc cluster.
name String
The name of the hpc cluster.
zoneId Changes to this property will trigger replacement. String
The zone id of the hpc cluster.
description string
The description of the hpc cluster.
name string
The name of the hpc cluster.
zoneId Changes to this property will trigger replacement. string
The zone id of the hpc cluster.
description str
The description of the hpc cluster.
name str
The name of the hpc cluster.
zone_id Changes to this property will trigger replacement. str
The zone id of the hpc cluster.
description String
The description of the hpc cluster.
name String
The name of the hpc cluster.
zoneId Changes to this property will trigger replacement. String
The zone id of the hpc cluster.

Import

EcsHpcCluster can be imported using the id, e.g.

$ pulumi import volcengine:ecs/hpcCluster:HpcCluster default resource_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.