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

volcengine.bioos.ClusterBind

Explore with Pulumi AI

Provides a resource to manage bioos cluster bind

Example Usage

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

const example = new volcengine.bioos.ClusterBind("example", {
    clusterId: "ucfhp1nteig48u8ufv8s0",
    type: "workflow",
    workspaceId: "wcfhp1vdeig48u8ufv8sg",
});
//必填
Copy
import pulumi
import pulumi_volcengine as volcengine

example = volcengine.bioos.ClusterBind("example",
    cluster_id="ucfhp1nteig48u8ufv8s0",
    type="workflow",
    workspace_id="wcfhp1vdeig48u8ufv8sg")
#必填
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bioos.NewClusterBind(ctx, "example", &bioos.ClusterBindArgs{
			ClusterId:   pulumi.String("ucfhp1nteig48u8ufv8s0"),
			Type:        pulumi.String("workflow"),
			WorkspaceId: pulumi.String("wcfhp1vdeig48u8ufv8sg"),
		})
		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 example = new Volcengine.Bioos.ClusterBind("example", new()
    {
        ClusterId = "ucfhp1nteig48u8ufv8s0",
        Type = "workflow",
        WorkspaceId = "wcfhp1vdeig48u8ufv8sg",
    });

    //必填
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.bioos.ClusterBind;
import com.pulumi.volcengine.bioos.ClusterBindArgs;
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 example = new ClusterBind("example", ClusterBindArgs.builder()        
            .clusterId("ucfhp1nteig48u8ufv8s0")
            .type("workflow")
            .workspaceId("wcfhp1vdeig48u8ufv8sg")
            .build());

        //必填
    }
}
Copy
resources:
  example:
    type: volcengine:bioos:ClusterBind
    properties:
      clusterId: ucfhp1nteig48u8ufv8s0
      # 必填
      type: workflow
      # 必填, workflow 或 notebook
      workspaceId: wcfhp1vdeig48u8ufv8sg
Copy

Create ClusterBind Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ClusterBind(name: string, args: ClusterBindArgs, opts?: CustomResourceOptions);
@overload
def ClusterBind(resource_name: str,
                args: ClusterBindArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def ClusterBind(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                cluster_id: Optional[str] = None,
                type: Optional[str] = None,
                workspace_id: Optional[str] = None)
func NewClusterBind(ctx *Context, name string, args ClusterBindArgs, opts ...ResourceOption) (*ClusterBind, error)
public ClusterBind(string name, ClusterBindArgs args, CustomResourceOptions? opts = null)
public ClusterBind(String name, ClusterBindArgs args)
public ClusterBind(String name, ClusterBindArgs args, CustomResourceOptions options)
type: volcengine:bioos:ClusterBind
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. ClusterBindArgs
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. ClusterBindArgs
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. ClusterBindArgs
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. ClusterBindArgs
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. ClusterBindArgs
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 clusterBindResource = new Volcengine.Bioos.ClusterBind("clusterBindResource", new()
{
    ClusterId = "string",
    Type = "string",
    WorkspaceId = "string",
});
Copy
example, err := bioos.NewClusterBind(ctx, "clusterBindResource", &bioos.ClusterBindArgs{
	ClusterId:   pulumi.String("string"),
	Type:        pulumi.String("string"),
	WorkspaceId: pulumi.String("string"),
})
Copy
var clusterBindResource = new ClusterBind("clusterBindResource", ClusterBindArgs.builder()
    .clusterId("string")
    .type("string")
    .workspaceId("string")
    .build());
Copy
cluster_bind_resource = volcengine.bioos.ClusterBind("clusterBindResource",
    cluster_id="string",
    type="string",
    workspace_id="string")
Copy
const clusterBindResource = new volcengine.bioos.ClusterBind("clusterBindResource", {
    clusterId: "string",
    type: "string",
    workspaceId: "string",
});
Copy
type: volcengine:bioos:ClusterBind
properties:
    clusterId: string
    type: string
    workspaceId: string
Copy

ClusterBind 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 ClusterBind resource accepts the following input properties:

ClusterId
This property is required.
Changes to this property will trigger replacement.
string
The id of the cluster.
Type
This property is required.
Changes to this property will trigger replacement.
string
The type of the cluster bind.
WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string
The id of the workspace.
ClusterId
This property is required.
Changes to this property will trigger replacement.
string
The id of the cluster.
Type
This property is required.
Changes to this property will trigger replacement.
string
The type of the cluster bind.
WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string
The id of the workspace.
clusterId
This property is required.
Changes to this property will trigger replacement.
String
The id of the cluster.
type
This property is required.
Changes to this property will trigger replacement.
String
The type of the cluster bind.
workspaceId
This property is required.
Changes to this property will trigger replacement.
String
The id of the workspace.
clusterId
This property is required.
Changes to this property will trigger replacement.
string
The id of the cluster.
type
This property is required.
Changes to this property will trigger replacement.
string
The type of the cluster bind.
workspaceId
This property is required.
Changes to this property will trigger replacement.
string
The id of the workspace.
cluster_id
This property is required.
Changes to this property will trigger replacement.
str
The id of the cluster.
type
This property is required.
Changes to this property will trigger replacement.
str
The type of the cluster bind.
workspace_id
This property is required.
Changes to this property will trigger replacement.
str
The id of the workspace.
clusterId
This property is required.
Changes to this property will trigger replacement.
String
The id of the cluster.
type
This property is required.
Changes to this property will trigger replacement.
String
The type of the cluster bind.
workspaceId
This property is required.
Changes to this property will trigger replacement.
String
The id of the workspace.

Outputs

All input properties are implicitly available as output properties. Additionally, the ClusterBind 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 ClusterBind Resource

Get an existing ClusterBind 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?: ClusterBindState, opts?: CustomResourceOptions): ClusterBind
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        type: Optional[str] = None,
        workspace_id: Optional[str] = None) -> ClusterBind
func GetClusterBind(ctx *Context, name string, id IDInput, state *ClusterBindState, opts ...ResourceOption) (*ClusterBind, error)
public static ClusterBind Get(string name, Input<string> id, ClusterBindState? state, CustomResourceOptions? opts = null)
public static ClusterBind get(String name, Output<String> id, ClusterBindState state, CustomResourceOptions options)
resources:  _:    type: volcengine:bioos:ClusterBind    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:
ClusterId Changes to this property will trigger replacement. string
The id of the cluster.
Type Changes to this property will trigger replacement. string
The type of the cluster bind.
WorkspaceId Changes to this property will trigger replacement. string
The id of the workspace.
ClusterId Changes to this property will trigger replacement. string
The id of the cluster.
Type Changes to this property will trigger replacement. string
The type of the cluster bind.
WorkspaceId Changes to this property will trigger replacement. string
The id of the workspace.
clusterId Changes to this property will trigger replacement. String
The id of the cluster.
type Changes to this property will trigger replacement. String
The type of the cluster bind.
workspaceId Changes to this property will trigger replacement. String
The id of the workspace.
clusterId Changes to this property will trigger replacement. string
The id of the cluster.
type Changes to this property will trigger replacement. string
The type of the cluster bind.
workspaceId Changes to this property will trigger replacement. string
The id of the workspace.
cluster_id Changes to this property will trigger replacement. str
The id of the cluster.
type Changes to this property will trigger replacement. str
The type of the cluster bind.
workspace_id Changes to this property will trigger replacement. str
The id of the workspace.
clusterId Changes to this property will trigger replacement. String
The id of the cluster.
type Changes to this property will trigger replacement. String
The type of the cluster bind.
workspaceId Changes to this property will trigger replacement. String
The id of the workspace.

Import

Cluster binder can be imported using the workspace id and cluster id, e.g.

$ pulumi import volcengine:bioos/clusterBind:ClusterBind default wc*****:uc***
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.