Class Cluster
Provides an EDAS cluster resource.
NOTE: Available in 1.82.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Edas.Cluster("default", new AliCloud.Edas.ClusterArgs
{
ClusterName = @var.Cluster_name,
ClusterType = @var.Cluster_type,
NetworkMode = @var.Network_mode,
LogicalRegionId = @var.Logical_region_id,
VpcId = @var.Vpc_id,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Edas
Assembly: Pulumi.AliCloud.dll
Syntax
public class Cluster : CustomResource
Constructors
View SourceCluster(String, ClusterArgs, CustomResourceOptions)
Create a Cluster resource with the given unique name, arguments, and options.
Declaration
public Cluster(string name, ClusterArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ClusterArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceClusterName
The name of the cluster that you want to create.
Declaration
public Output<string> ClusterName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClusterType
The type of the cluster that you want to create. Valid values only: 2: ECS cluster.
Declaration
public Output<int> ClusterType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
LogicalRegionId
The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.
Declaration
public Output<string> LogicalRegionId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NetworkMode
The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
Declaration
public Output<int> NetworkMode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
VpcId
The ID of the Virtual Private Cloud (VPC) for the cluster.
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ClusterState, CustomResourceOptions)
Get an existing Cluster resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Cluster Get(string name, Input<string> id, ClusterState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ClusterState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Cluster |