Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Cluster
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Edas
Assembly: Pulumi.AliCloud.dll
Syntax
public class Cluster : CustomResource

Constructors

View Source

Cluster(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 Source

ClusterName

The name of the cluster that you want to create.

Declaration
public Output<string> ClusterName { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.