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

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.edas.Cluster("default",
    cluster_name=var["cluster_name"],
    cluster_type=var["cluster_type"],
    network_mode=var["network_mode"],
    logical_region_id=var["logical_region_id"],
    vpc_id=var["vpc_id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.edas.Cluster("default", {
    clusterName: _var.cluster_name,
    clusterType: _var.cluster_type,
    networkMode: _var.network_mode,
    logicalRegionId: _var.logical_region_id,
    vpcId: _var.vpc_id,
});

Create a Cluster Resource

new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
def Cluster(resource_name, opts=None, cluster_name=None, cluster_type=None, logical_region_id=None, network_mode=None, vpc_id=None, __props__=None);
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Cluster Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Cluster resource accepts the following input properties:

ClusterName string

The name of the cluster that you want to create.

ClusterType int

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

NetworkMode int

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

LogicalRegionId string

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

VpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

ClusterName string

The name of the cluster that you want to create.

ClusterType int

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

NetworkMode int

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

LogicalRegionId string

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

VpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

clusterName string

The name of the cluster that you want to create.

clusterType number

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

networkMode number

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

logicalRegionId string

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

vpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

cluster_name str

The name of the cluster that you want to create.

cluster_type float

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

network_mode float

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

logical_region_id str

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

vpc_id str

The ID of the Virtual Private Cloud (VPC) for the cluster.

Outputs

All input properties are implicitly available as output properties. Additionally, the Cluster 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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, cluster_name=None, cluster_type=None, logical_region_id=None, network_mode=None, vpc_id=None, __props__=None);
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)
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.

The following state arguments are supported:

ClusterName string

The name of the cluster that you want to create.

ClusterType int

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

LogicalRegionId string

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

NetworkMode int

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

VpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

ClusterName string

The name of the cluster that you want to create.

ClusterType int

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

LogicalRegionId string

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

NetworkMode int

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

VpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

clusterName string

The name of the cluster that you want to create.

clusterType number

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

logicalRegionId string

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

networkMode number

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

vpcId string

The ID of the Virtual Private Cloud (VPC) for the cluster.

cluster_name str

The name of the cluster that you want to create.

cluster_type float

The type of the cluster that you want to create. Valid values only: 2: ECS cluster.

logical_region_id str

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

network_mode float

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

vpc_id str

The ID of the Virtual Private Cloud (VPC) for the cluster.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.