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,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.edas.InstanceClusterAttachment("default",
cluster_id=var["cluster_id"],
instance_ids=var["instance_ids"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.edas.InstanceClusterAttachment("default", {
clusterId: _var.cluster_id,
instanceIds: _var.instance_ids,
});Create a InstanceClusterAttachment Resource
new InstanceClusterAttachment(name: string, args: InstanceClusterAttachmentArgs, opts?: CustomResourceOptions);def InstanceClusterAttachment(resource_name, opts=None, cluster_id=None, instance_ids=None, __props__=None);func NewInstanceClusterAttachment(ctx *Context, name string, args InstanceClusterAttachmentArgs, opts ...ResourceOption) (*InstanceClusterAttachment, error)public InstanceClusterAttachment(string name, InstanceClusterAttachmentArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceClusterAttachmentArgs
- 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 InstanceClusterAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceClusterAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceClusterAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The InstanceClusterAttachment resource accepts the following input properties:
- Cluster
Id string The ID of the cluster that you want to create the application.
- Instance
Ids List<string> The ID of instance. Type: list.
- Cluster
Id string The ID of the cluster that you want to create the application.
- Instance
Ids []string The ID of instance. Type: list.
- cluster
Id string The ID of the cluster that you want to create the application.
- instance
Ids string[] The ID of instance. Type: list.
- cluster_
id str The ID of the cluster that you want to create the application.
- instance_
ids List[str] The ID of instance. Type: list.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceClusterAttachment resource produces the following output properties:
- Cluster
Member Dictionary<string, string>Ids The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- Ecu
Map Dictionary<string, string> The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
Map Dictionary<string, int> 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).
- Cluster
Member map[string]stringIds The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- Ecu
Map map[string]string The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
Map map[string]int 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).
- cluster
Member {[key: string]: string}Ids The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- ecu
Map {[key: string]: string} The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- id string
- The provider-assigned unique ID for this managed resource.
- status
Map {[key: string]: number} 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).
- cluster_
member_ Dict[str, str]ids The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- ecu_
map Dict[str, str] The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- id str
- The provider-assigned unique ID for this managed resource.
- status_
map Dict[str, Integer] 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).
Look up an Existing InstanceClusterAttachment Resource
Get an existing InstanceClusterAttachment 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?: InstanceClusterAttachmentState, opts?: CustomResourceOptions): InstanceClusterAttachmentstatic get(resource_name, id, opts=None, cluster_id=None, cluster_member_ids=None, ecu_map=None, instance_ids=None, status_map=None, __props__=None);func GetInstanceClusterAttachment(ctx *Context, name string, id IDInput, state *InstanceClusterAttachmentState, opts ...ResourceOption) (*InstanceClusterAttachment, error)public static InstanceClusterAttachment Get(string name, Input<string> id, InstanceClusterAttachmentState? 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:
- Cluster
Id string The ID of the cluster that you want to create the application.
- Cluster
Member Dictionary<string, string>Ids The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- Ecu
Map Dictionary<string, string> The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- Instance
Ids List<string> The ID of instance. Type: list.
- Status
Map Dictionary<string, int> 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).
- Cluster
Id string The ID of the cluster that you want to create the application.
- Cluster
Member map[string]stringIds The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- Ecu
Map map[string]string The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- Instance
Ids []string The ID of instance. Type: list.
- Status
Map map[string]int 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).
- cluster
Id string The ID of the cluster that you want to create the application.
- cluster
Member {[key: string]: string}Ids The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- ecu
Map {[key: string]: string} The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- instance
Ids string[] The ID of instance. Type: list.
- status
Map {[key: string]: number} 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).
- cluster_
id str The ID of the cluster that you want to create the application.
- cluster_
member_ Dict[str, str]ids The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.
- ecu_
map Dict[str, str] The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.
- instance_
ids List[str] The ID of instance. Type: list.
- status_
map Dict[str, Integer] 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).
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.