1. Packages
  2. Volcengine
  3. API Docs
  4. bioos
  5. ClusterBind
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.bioos.ClusterBind

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage bioos cluster bind

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Volcengine.Bioos.ClusterBind("example", new()
        {
            ClusterId = "ucfhp1nteig48u8ufv8s0",
            Type = "workflow",
            WorkspaceId = "wcfhp1vdeig48u8ufv8sg",
        });
    
        //必填
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.bioos.ClusterBind("example",
        cluster_id="ucfhp1nteig48u8ufv8s0",
        type="workflow",
        workspace_id="wcfhp1vdeig48u8ufv8sg")
    #必填
    
    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",
    });
    //必填
    
    resources:
      example:
        type: volcengine:bioos:ClusterBind
        properties:
          clusterId: ucfhp1nteig48u8ufv8s0
          # 必填
          type: workflow
          # 必填, workflow 或 notebook
          workspaceId: wcfhp1vdeig48u8ufv8sg
    

    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 string
    The unique name of the resource.
    args ClusterBindArgs
    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 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 string
    The unique name of the resource.
    args ClusterBindArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterBindArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterBindArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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",
    });
    
    example, err := bioos.NewClusterBind(ctx, "clusterBindResource", &bioos.ClusterBindArgs{
    	ClusterId:   pulumi.String("string"),
    	Type:        pulumi.String("string"),
    	WorkspaceId: pulumi.String("string"),
    })
    
    var clusterBindResource = new ClusterBind("clusterBindResource", ClusterBindArgs.builder()        
        .clusterId("string")
        .type("string")
        .workspaceId("string")
        .build());
    
    cluster_bind_resource = volcengine.bioos.ClusterBind("clusterBindResource",
        cluster_id="string",
        type="string",
        workspace_id="string")
    
    const clusterBindResource = new volcengine.bioos.ClusterBind("clusterBindResource", {
        clusterId: "string",
        type: "string",
        workspaceId: "string",
    });
    
    type: volcengine:bioos:ClusterBind
    properties:
        clusterId: string
        type: string
        workspaceId: string
    

    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

    The ClusterBind resource accepts the following input properties:

    ClusterId string
    The id of the cluster.
    Type string
    The type of the cluster bind.
    WorkspaceId string
    The id of the workspace.
    ClusterId string
    The id of the cluster.
    Type string
    The type of the cluster bind.
    WorkspaceId string
    The id of the workspace.
    clusterId String
    The id of the cluster.
    type String
    The type of the cluster bind.
    workspaceId String
    The id of the workspace.
    clusterId string
    The id of the cluster.
    type string
    The type of the cluster bind.
    workspaceId string
    The id of the workspace.
    cluster_id str
    The id of the cluster.
    type str
    The type of the cluster bind.
    workspace_id str
    The id of the workspace.
    clusterId String
    The id of the cluster.
    type String
    The type of the cluster bind.
    workspaceId 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    ClusterId string
    The id of the cluster.
    Type string
    The type of the cluster bind.
    WorkspaceId string
    The id of the workspace.
    ClusterId string
    The id of the cluster.
    Type string
    The type of the cluster bind.
    WorkspaceId string
    The id of the workspace.
    clusterId String
    The id of the cluster.
    type String
    The type of the cluster bind.
    workspaceId String
    The id of the workspace.
    clusterId string
    The id of the cluster.
    type string
    The type of the cluster bind.
    workspaceId string
    The id of the workspace.
    cluster_id str
    The id of the cluster.
    type str
    The type of the cluster bind.
    workspace_id str
    The id of the workspace.
    clusterId String
    The id of the cluster.
    type String
    The type of the cluster bind.
    workspaceId 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***
    

    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.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine