volcengine.bioos.Cluster
Explore with Pulumi AI
Provides a resource to manage bioos cluster
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Volcengine.Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Bioos.Cluster("foo", new()
{
Description = "test-description",
SharedConfigs = new[]
{
new Volcengine.Bioos.Inputs.ClusterSharedConfigArgs
{
Enable = true,
},
},
});
});
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.NewCluster(ctx, "foo", &bioos.ClusterArgs{
Description: pulumi.String("test-description"),
SharedConfigs: bioos.ClusterSharedConfigArray{
&bioos.ClusterSharedConfigArgs{
Enable: pulumi.Bool(true),
},
},
})
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.Cluster;
import com.pulumi.volcengine.bioos.ClusterArgs;
import com.pulumi.volcengine.bioos.inputs.ClusterSharedConfigArgs;
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 Cluster("foo", ClusterArgs.builder()
.description("test-description")
.sharedConfigs(ClusterSharedConfigArgs.builder()
.enable(true)
.build())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.bioos.Cluster("foo",
description="test-description",
shared_configs=[volcengine.bioos.ClusterSharedConfigArgs(
enable=True,
)])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.bioos.Cluster("foo", {
description: "test-description",
sharedConfigs: [{
enable: true,
}],
});
resources:
foo:
type: volcengine:bioos:Cluster
properties:
description: test-description
# 必填
# // vke_config { //选填,和shared_config二者中必填一个
# // cluster_id = "ccerdh8fqtofh16uf6q60" //也可替换成volcengine_vke_cluster.example.id
# // storage_class = "ebs-ssd"
# // }
sharedConfigs:
- enable: true
Create Cluster Resource
new Cluster(name: string, args?: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
shared_configs: Optional[Sequence[ClusterSharedConfigArgs]] = None,
vke_configs: Optional[Sequence[ClusterVkeConfigArgs]] = None)
@overload
def Cluster(resource_name: str,
args: Optional[ClusterArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewCluster(ctx *Context, name string, args *ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs? args = null, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: volcengine:bioos:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- 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 ClusterArgs
- 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 ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Cluster 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 Cluster resource accepts the following input properties:
- Description string
The description of the cluster.
- Name string
The name of the cluster.
- List<Volcengine.
Cluster Shared Config> The configuration of the shared cluster.
- Vke
Configs List<Volcengine.Cluster Vke Config> The configuration of the vke cluster.
- Description string
The description of the cluster.
- Name string
The name of the cluster.
- []Cluster
Shared Config Args The configuration of the shared cluster.
- Vke
Configs []ClusterVke Config Args The configuration of the vke cluster.
- description String
The description of the cluster.
- name String
The name of the cluster.
- List<Cluster
Shared Config> The configuration of the shared cluster.
- vke
Configs List<ClusterVke Config> The configuration of the vke cluster.
- description string
The description of the cluster.
- name string
The name of the cluster.
- Cluster
Shared Config[] The configuration of the shared cluster.
- vke
Configs ClusterVke Config[] The configuration of the vke cluster.
- description str
The description of the cluster.
- name str
The name of the cluster.
- Sequence[Cluster
Shared Config Args] The configuration of the shared cluster.
- vke_
configs Sequence[ClusterVke Config Args] The configuration of the vke cluster.
- description String
The description of the cluster.
- name String
The name of the cluster.
- List<Property Map>
The configuration of the shared cluster.
- vke
Configs List<Property Map> The configuration of the vke cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- cluster_
id str The id of the vke cluster.
- id str
The provider-assigned unique ID for this managed resource.
Look up Existing Cluster Resource
Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
shared_configs: Optional[Sequence[ClusterSharedConfigArgs]] = None,
vke_configs: Optional[Sequence[ClusterVkeConfigArgs]] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState 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.
- Cluster
Id string The id of the vke cluster.
- Description string
The description of the cluster.
- Name string
The name of the cluster.
- List<Volcengine.
Cluster Shared Config> The configuration of the shared cluster.
- Vke
Configs List<Volcengine.Cluster Vke Config> The configuration of the vke cluster.
- Cluster
Id string The id of the vke cluster.
- Description string
The description of the cluster.
- Name string
The name of the cluster.
- []Cluster
Shared Config Args The configuration of the shared cluster.
- Vke
Configs []ClusterVke Config Args The configuration of the vke cluster.
- cluster
Id String The id of the vke cluster.
- description String
The description of the cluster.
- name String
The name of the cluster.
- List<Cluster
Shared Config> The configuration of the shared cluster.
- vke
Configs List<ClusterVke Config> The configuration of the vke cluster.
- cluster
Id string The id of the vke cluster.
- description string
The description of the cluster.
- name string
The name of the cluster.
- Cluster
Shared Config[] The configuration of the shared cluster.
- vke
Configs ClusterVke Config[] The configuration of the vke cluster.
- cluster_
id str The id of the vke cluster.
- description str
The description of the cluster.
- name str
The name of the cluster.
- Sequence[Cluster
Shared Config Args] The configuration of the shared cluster.
- vke_
configs Sequence[ClusterVke Config Args] The configuration of the vke cluster.
- cluster
Id String The id of the vke cluster.
- description String
The description of the cluster.
- name String
The name of the cluster.
- List<Property Map>
The configuration of the shared cluster.
- vke
Configs List<Property Map> The configuration of the vke cluster.
Supporting Types
ClusterSharedConfig, ClusterSharedConfigArgs
- Enable bool
Whether to enable a shared cluster.
- Enable bool
Whether to enable a shared cluster.
- enable Boolean
Whether to enable a shared cluster.
- enable boolean
Whether to enable a shared cluster.
- enable bool
Whether to enable a shared cluster.
- enable Boolean
Whether to enable a shared cluster.
ClusterVkeConfig, ClusterVkeConfigArgs
- Cluster
Id string The id of the vke cluster.
- Storage
Class string The name of the StorageClass that the vke cluster has installed.
- Cluster
Id string The id of the vke cluster.
- Storage
Class string The name of the StorageClass that the vke cluster has installed.
- cluster
Id String The id of the vke cluster.
- storage
Class String The name of the StorageClass that the vke cluster has installed.
- cluster
Id string The id of the vke cluster.
- storage
Class string The name of the StorageClass that the vke cluster has installed.
- cluster_
id str The id of the vke cluster.
- storage_
class str The name of the StorageClass that the vke cluster has installed.
- cluster
Id String The id of the vke cluster.
- storage
Class String The name of the StorageClass that the vke cluster has installed.
Import
Cluster can be imported using the id, e.g.
$ pulumi import volcengine:bioos/cluster:Cluster default *****
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
volcengine
Terraform Provider.