Class InstanceClusterAttachment
Provides an EDAS instance cluster attachment 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.InstanceClusterAttachment("default", new AliCloud.Edas.InstanceClusterAttachmentArgs
{
ClusterId = @var.Cluster_id,
InstanceIds = @var.Instance_ids,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Edas
Assembly: Pulumi.AliCloud.dll
Syntax
public class InstanceClusterAttachment : CustomResource
Constructors
View SourceInstanceClusterAttachment(String, InstanceClusterAttachmentArgs, CustomResourceOptions)
Create a InstanceClusterAttachment resource with the given unique name, arguments, and options.
Declaration
public InstanceClusterAttachment(string name, InstanceClusterAttachmentArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| InstanceClusterAttachmentArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceClusterId
The ID of the cluster that you want to create the application.
Declaration
public Output<string> ClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClusterMemberIds
The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
Declaration
public Output<ImmutableDictionary<string, string>> ClusterMemberIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
EcuMap
The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
Declaration
public Output<ImmutableDictionary<string, string>> EcuMap { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
InstanceIds
The ID of instance. Type: list.
Declaration
public Output<ImmutableArray<string>> InstanceIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
StatusMap
The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).
Declaration
public Output<ImmutableDictionary<string, int>> StatusMap { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Int32>> |
Methods
View SourceGet(String, Input<String>, InstanceClusterAttachmentState, CustomResourceOptions)
Get an existing InstanceClusterAttachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static InstanceClusterAttachment Get(string name, Input<string> id, InstanceClusterAttachmentState 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. |
| InstanceClusterAttachmentState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| InstanceClusterAttachment |