1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eais
  5. ClientInstanceAttachment
Alibaba Cloud v3.96.0 published on Tuesday, Mar 3, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.96.0 published on Tuesday, Mar 3, 2026 by Pulumi

    Provides a EAIS Client Instance Attachment resource.

    Bind an ECS or ECI instance.

    For information about EAIS Client Instance Attachment and how to use it, see What is Client Instance Attachment.

    NOTE: Available since v1.246.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const zone = config.get("zone") || "cn-hangzhou-i";
    const ecsImage = config.get("ecsImage") || "ubuntu_20_04_x64_20G_alibase_20230316.vhd";
    const ecsType = config.get("ecsType") || "ecs.g7.large";
    const region = config.get("region") || "cn-hangzhou";
    const category = config.get("category") || "ei";
    const _default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const example = alicloud.ecs.getInstanceTypes({
        availabilityZone: "cn-hangzhou-i",
        cpuCoreCount: 1,
        memorySize: 2,
    });
    const exampleGetImages = alicloud.ecs.getImages({
        nameRegex: "^ubuntu_18.*64",
        owners: "system",
    });
    const exampleNetwork = new alicloud.vpc.Network("example", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const exampleSwitch = new alicloud.vpc.Switch("example", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: exampleNetwork.id,
        zoneId: "cn-hangzhou-i",
    });
    const exampleSecurityGroup = new alicloud.ecs.SecurityGroup("example", {
        securityGroupName: name,
        description: name,
        vpcId: exampleNetwork.id,
    });
    const exampleInstance = new alicloud.ecs.Instance("example", {
        availabilityZone: "cn-hangzhou-i",
        vswitchId: exampleSwitch.id,
        imageId: exampleGetImages.then(exampleGetImages => exampleGetImages.images?.[0]?.id),
        instanceType: example.then(example => example.instanceTypes?.[0]?.id),
        systemDiskCategory: "cloud_efficiency",
        internetChargeType: "PayByTraffic",
        internetMaxBandwidthOut: 5,
        securityGroups: [exampleSecurityGroup.id],
        instanceName: name,
        userData: "echo 'net.ipv4.ip_forward=1'>> /etc/sysctl.conf",
    });
    const eais = new alicloud.eais.Instance("eais", {
        instanceName: name,
        vswitchId: exampleSwitch.id,
        securityGroupId: exampleSecurityGroup.id,
        instanceType: "eais.ei-a6.2xlarge",
        category: "ei",
    });
    const defaultClientInstanceAttachment = new alicloud.eais.ClientInstanceAttachment("default", {
        instanceId: eais.id,
        clientInstanceId: exampleInstance.id,
        category: "ei",
        status: "Bound",
        eiInstanceType: "eais.ei-a6.2xlarge",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    zone = config.get("zone")
    if zone is None:
        zone = "cn-hangzhou-i"
    ecs_image = config.get("ecsImage")
    if ecs_image is None:
        ecs_image = "ubuntu_20_04_x64_20G_alibase_20230316.vhd"
    ecs_type = config.get("ecsType")
    if ecs_type is None:
        ecs_type = "ecs.g7.large"
    region = config.get("region")
    if region is None:
        region = "cn-hangzhou"
    category = config.get("category")
    if category is None:
        category = "ei"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    example = alicloud.ecs.get_instance_types(availability_zone="cn-hangzhou-i",
        cpu_core_count=1,
        memory_size=2)
    example_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
        owners="system")
    example_network = alicloud.vpc.Network("example",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    example_switch = alicloud.vpc.Switch("example",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=example_network.id,
        zone_id="cn-hangzhou-i")
    example_security_group = alicloud.ecs.SecurityGroup("example",
        security_group_name=name,
        description=name,
        vpc_id=example_network.id)
    example_instance = alicloud.ecs.Instance("example",
        availability_zone="cn-hangzhou-i",
        vswitch_id=example_switch.id,
        image_id=example_get_images.images[0].id,
        instance_type=example.instance_types[0].id,
        system_disk_category="cloud_efficiency",
        internet_charge_type="PayByTraffic",
        internet_max_bandwidth_out=5,
        security_groups=[example_security_group.id],
        instance_name=name,
        user_data="echo 'net.ipv4.ip_forward=1'>> /etc/sysctl.conf")
    eais = alicloud.eais.Instance("eais",
        instance_name=name,
        vswitch_id=example_switch.id,
        security_group_id=example_security_group.id,
        instance_type="eais.ei-a6.2xlarge",
        category="ei")
    default_client_instance_attachment = alicloud.eais.ClientInstanceAttachment("default",
        instance_id=eais.id,
        client_instance_id=example_instance.id,
        category="ei",
        status="Bound",
        ei_instance_type="eais.ei-a6.2xlarge")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eais"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		zone := "cn-hangzhou-i"
    		if param := cfg.Get("zone"); param != "" {
    			zone = param
    		}
    		ecsImage := "ubuntu_20_04_x64_20G_alibase_20230316.vhd"
    		if param := cfg.Get("ecsImage"); param != "" {
    			ecsImage = param
    		}
    		ecsType := "ecs.g7.large"
    		if param := cfg.Get("ecsType"); param != "" {
    			ecsType = param
    		}
    		region := "cn-hangzhou"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		category := "ei"
    		if param := cfg.Get("category"); param != "" {
    			category = param
    		}
    		_, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		example, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			AvailabilityZone: pulumi.StringRef("cn-hangzhou-i"),
    			CpuCoreCount:     pulumi.IntRef(1),
    			MemorySize:       pulumi.Float64Ref(2),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
    			NameRegex: pulumi.StringRef("^ubuntu_18.*64"),
    			Owners:    pulumi.StringRef("system"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       exampleNetwork.ID(),
    			ZoneId:      pulumi.String("cn-hangzhou-i"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
    			SecurityGroupName: pulumi.String(name),
    			Description:       pulumi.String(name),
    			VpcId:             exampleNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
    			AvailabilityZone:        pulumi.String("cn-hangzhou-i"),
    			VswitchId:               exampleSwitch.ID(),
    			ImageId:                 pulumi.String(exampleGetImages.Images[0].Id),
    			InstanceType:            pulumi.String(example.InstanceTypes[0].Id),
    			SystemDiskCategory:      pulumi.String("cloud_efficiency"),
    			InternetChargeType:      pulumi.String("PayByTraffic"),
    			InternetMaxBandwidthOut: pulumi.Int(5),
    			SecurityGroups: pulumi.StringArray{
    				exampleSecurityGroup.ID(),
    			},
    			InstanceName: pulumi.String(name),
    			UserData:     pulumi.String("echo 'net.ipv4.ip_forward=1'>> /etc/sysctl.conf"),
    		})
    		if err != nil {
    			return err
    		}
    		eais, err := eais.NewInstance(ctx, "eais", &eais.InstanceArgs{
    			InstanceName:    pulumi.String(name),
    			VswitchId:       exampleSwitch.ID(),
    			SecurityGroupId: exampleSecurityGroup.ID(),
    			InstanceType:    pulumi.String("eais.ei-a6.2xlarge"),
    			Category:        pulumi.String("ei"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = eais.NewClientInstanceAttachment(ctx, "default", &eais.ClientInstanceAttachmentArgs{
    			InstanceId:       eais.ID(),
    			ClientInstanceId: exampleInstance.ID(),
    			Category:         pulumi.String("ei"),
    			Status:           pulumi.String("Bound"),
    			EiInstanceType:   pulumi.String("eais.ei-a6.2xlarge"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var zone = config.Get("zone") ?? "cn-hangzhou-i";
        var ecsImage = config.Get("ecsImage") ?? "ubuntu_20_04_x64_20G_alibase_20230316.vhd";
        var ecsType = config.Get("ecsType") ?? "ecs.g7.large";
        var region = config.Get("region") ?? "cn-hangzhou";
        var category = config.Get("category") ?? "ei";
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var example = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            AvailabilityZone = "cn-hangzhou-i",
            CpuCoreCount = 1,
            MemorySize = 2,
        });
    
        var exampleGetImages = AliCloud.Ecs.GetImages.Invoke(new()
        {
            NameRegex = "^ubuntu_18.*64",
            Owners = "system",
        });
    
        var exampleNetwork = new AliCloud.Vpc.Network("example", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = exampleNetwork.Id,
            ZoneId = "cn-hangzhou-i",
        });
    
        var exampleSecurityGroup = new AliCloud.Ecs.SecurityGroup("example", new()
        {
            SecurityGroupName = name,
            Description = name,
            VpcId = exampleNetwork.Id,
        });
    
        var exampleInstance = new AliCloud.Ecs.Instance("example", new()
        {
            AvailabilityZone = "cn-hangzhou-i",
            VswitchId = exampleSwitch.Id,
            ImageId = exampleGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = example.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
            SystemDiskCategory = "cloud_efficiency",
            InternetChargeType = "PayByTraffic",
            InternetMaxBandwidthOut = 5,
            SecurityGroups = new[]
            {
                exampleSecurityGroup.Id,
            },
            InstanceName = name,
            UserData = "echo 'net.ipv4.ip_forward=1'>> /etc/sysctl.conf",
        });
    
        var eais = new AliCloud.Eais.Instance("eais", new()
        {
            InstanceName = name,
            VswitchId = exampleSwitch.Id,
            SecurityGroupId = exampleSecurityGroup.Id,
            InstanceType = "eais.ei-a6.2xlarge",
            Category = "ei",
        });
    
        var defaultClientInstanceAttachment = new AliCloud.Eais.ClientInstanceAttachment("default", new()
        {
            InstanceId = eais.Id,
            ClientInstanceId = exampleInstance.Id,
            Category = "ei",
            Status = "Bound",
            EiInstanceType = "eais.ei-a6.2xlarge",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.eais.ClientInstanceAttachment;
    import com.pulumi.alicloud.eais.ClientInstanceAttachmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var zone = config.get("zone").orElse("cn-hangzhou-i");
            final var ecsImage = config.get("ecsImage").orElse("ubuntu_20_04_x64_20G_alibase_20230316.vhd");
            final var ecsType = config.get("ecsType").orElse("ecs.g7.large");
            final var region = config.get("region").orElse("cn-hangzhou");
            final var category = config.get("category").orElse("ei");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            final var example = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .availabilityZone("cn-hangzhou-i")
                .cpuCoreCount(1)
                .memorySize(2)
                .build());
    
            final var exampleGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
                .nameRegex("^ubuntu_18.*64")
                .owners("system")
                .build());
    
            var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("10.4.0.0/24")
                .vpcId(exampleNetwork.id())
                .zoneId("cn-hangzhou-i")
                .build());
    
            var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
                .securityGroupName(name)
                .description(name)
                .vpcId(exampleNetwork.id())
                .build());
    
            var exampleInstance = new com.pulumi.alicloud.ecs.Instance("exampleInstance", com.pulumi.alicloud.ecs.InstanceArgs.builder()
                .availabilityZone("cn-hangzhou-i")
                .vswitchId(exampleSwitch.id())
                .imageId(exampleGetImages.images()[0].id())
                .instanceType(example.instanceTypes()[0].id())
                .systemDiskCategory("cloud_efficiency")
                .internetChargeType("PayByTraffic")
                .internetMaxBandwidthOut(5)
                .securityGroups(exampleSecurityGroup.id())
                .instanceName(name)
                .userData("echo 'net.ipv4.ip_forward=1'>> /etc/sysctl.conf")
                .build());
    
            var eais = new com.pulumi.alicloud.eais.Instance("eais", com.pulumi.alicloud.eais.InstanceArgs.builder()
                .instanceName(name)
                .vswitchId(exampleSwitch.id())
                .securityGroupId(exampleSecurityGroup.id())
                .instanceType("eais.ei-a6.2xlarge")
                .category("ei")
                .build());
    
            var defaultClientInstanceAttachment = new ClientInstanceAttachment("defaultClientInstanceAttachment", ClientInstanceAttachmentArgs.builder()
                .instanceId(eais.id())
                .clientInstanceId(exampleInstance.id())
                .category("ei")
                .status("Bound")
                .eiInstanceType("eais.ei-a6.2xlarge")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      zone:
        type: string
        default: cn-hangzhou-i
      ecsImage:
        type: string
        default: ubuntu_20_04_x64_20G_alibase_20230316.vhd
      ecsType:
        type: string
        default: ecs.g7.large
      region:
        type: string
        default: cn-hangzhou
      category:
        type: string
        default: ei
    resources:
      exampleNetwork:
        type: alicloud:vpc:Network
        name: example
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      exampleSwitch:
        type: alicloud:vpc:Switch
        name: example
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${exampleNetwork.id}
          zoneId: cn-hangzhou-i
      exampleSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        name: example
        properties:
          securityGroupName: ${name}
          description: ${name}
          vpcId: ${exampleNetwork.id}
      exampleInstance:
        type: alicloud:ecs:Instance
        name: example
        properties:
          availabilityZone: cn-hangzhou-i
          vswitchId: ${exampleSwitch.id}
          imageId: ${exampleGetImages.images[0].id}
          instanceType: ${example.instanceTypes[0].id}
          systemDiskCategory: cloud_efficiency
          internetChargeType: PayByTraffic
          internetMaxBandwidthOut: 5
          securityGroups:
            - ${exampleSecurityGroup.id}
          instanceName: ${name}
          userData: echo 'net.ipv4.ip_forward=1'>> /etc/sysctl.conf
      eais:
        type: alicloud:eais:Instance
        properties:
          instanceName: ${name}
          vswitchId: ${exampleSwitch.id}
          securityGroupId: ${exampleSecurityGroup.id}
          instanceType: eais.ei-a6.2xlarge
          category: ei
      defaultClientInstanceAttachment:
        type: alicloud:eais:ClientInstanceAttachment
        name: default
        properties:
          instanceId: ${eais.id}
          clientInstanceId: ${exampleInstance.id}
          category: ei
          status: Bound
          eiInstanceType: eais.ei-a6.2xlarge
    variables:
      default:
        fn::invoke:
          function: alicloud:getZones
          arguments:
            availableResourceCreation: VSwitch
      example:
        fn::invoke:
          function: alicloud:ecs:getInstanceTypes
          arguments:
            availabilityZone: cn-hangzhou-i
            cpuCoreCount: 1
            memorySize: 2
      exampleGetImages:
        fn::invoke:
          function: alicloud:ecs:getImages
          arguments:
            nameRegex: ^ubuntu_18.*64
            owners: system
    

    Deleting alicloud.eais.ClientInstanceAttachment or removing it from your configuration

    The alicloud.eais.ClientInstanceAttachment resource allows you to manage category = "eais" instance, but Terraform cannot destroy it. Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance. You can resume managing the subscription instance via the AlibabaCloud Console.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create ClientInstanceAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClientInstanceAttachment(name: string, args: ClientInstanceAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def ClientInstanceAttachment(resource_name: str,
                                 args: ClientInstanceAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClientInstanceAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 client_instance_id: Optional[str] = None,
                                 instance_id: Optional[str] = None,
                                 category: Optional[str] = None,
                                 ei_instance_type: Optional[str] = None,
                                 status: Optional[str] = None)
    func NewClientInstanceAttachment(ctx *Context, name string, args ClientInstanceAttachmentArgs, opts ...ResourceOption) (*ClientInstanceAttachment, error)
    public ClientInstanceAttachment(string name, ClientInstanceAttachmentArgs args, CustomResourceOptions? opts = null)
    public ClientInstanceAttachment(String name, ClientInstanceAttachmentArgs args)
    public ClientInstanceAttachment(String name, ClientInstanceAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:eais:ClientInstanceAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClientInstanceAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClientInstanceAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClientInstanceAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClientInstanceAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClientInstanceAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var clientInstanceAttachmentResource = new AliCloud.Eais.ClientInstanceAttachment("clientInstanceAttachmentResource", new()
    {
        ClientInstanceId = "string",
        InstanceId = "string",
        Category = "string",
        EiInstanceType = "string",
        Status = "string",
    });
    
    example, err := eais.NewClientInstanceAttachment(ctx, "clientInstanceAttachmentResource", &eais.ClientInstanceAttachmentArgs{
    	ClientInstanceId: pulumi.String("string"),
    	InstanceId:       pulumi.String("string"),
    	Category:         pulumi.String("string"),
    	EiInstanceType:   pulumi.String("string"),
    	Status:           pulumi.String("string"),
    })
    
    var clientInstanceAttachmentResource = new ClientInstanceAttachment("clientInstanceAttachmentResource", ClientInstanceAttachmentArgs.builder()
        .clientInstanceId("string")
        .instanceId("string")
        .category("string")
        .eiInstanceType("string")
        .status("string")
        .build());
    
    client_instance_attachment_resource = alicloud.eais.ClientInstanceAttachment("clientInstanceAttachmentResource",
        client_instance_id="string",
        instance_id="string",
        category="string",
        ei_instance_type="string",
        status="string")
    
    const clientInstanceAttachmentResource = new alicloud.eais.ClientInstanceAttachment("clientInstanceAttachmentResource", {
        clientInstanceId: "string",
        instanceId: "string",
        category: "string",
        eiInstanceType: "string",
        status: "string",
    });
    
    type: alicloud:eais:ClientInstanceAttachment
    properties:
        category: string
        clientInstanceId: string
        eiInstanceType: string
        instanceId: string
        status: string
    

    ClientInstanceAttachment Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClientInstanceAttachment resource accepts the following input properties:

    ClientInstanceId string
    The ID of the ECS or ECI instance bound to the EAIS instance.
    InstanceId string
    The EAIS instance ID.
    Category string
    EAIS instance category, valid values: eais, ei, default is eais.
    EiInstanceType string
    The Ei instance specification, which is used to filter matching specifications for updating.
    Status string
    The status of the resource
    ClientInstanceId string
    The ID of the ECS or ECI instance bound to the EAIS instance.
    InstanceId string
    The EAIS instance ID.
    Category string
    EAIS instance category, valid values: eais, ei, default is eais.
    EiInstanceType string
    The Ei instance specification, which is used to filter matching specifications for updating.
    Status string
    The status of the resource
    clientInstanceId String
    The ID of the ECS or ECI instance bound to the EAIS instance.
    instanceId String
    The EAIS instance ID.
    category String
    EAIS instance category, valid values: eais, ei, default is eais.
    eiInstanceType String
    The Ei instance specification, which is used to filter matching specifications for updating.
    status String
    The status of the resource
    clientInstanceId string
    The ID of the ECS or ECI instance bound to the EAIS instance.
    instanceId string
    The EAIS instance ID.
    category string
    EAIS instance category, valid values: eais, ei, default is eais.
    eiInstanceType string
    The Ei instance specification, which is used to filter matching specifications for updating.
    status string
    The status of the resource
    client_instance_id str
    The ID of the ECS or ECI instance bound to the EAIS instance.
    instance_id str
    The EAIS instance ID.
    category str
    EAIS instance category, valid values: eais, ei, default is eais.
    ei_instance_type str
    The Ei instance specification, which is used to filter matching specifications for updating.
    status str
    The status of the resource
    clientInstanceId String
    The ID of the ECS or ECI instance bound to the EAIS instance.
    instanceId String
    The EAIS instance ID.
    category String
    EAIS instance category, valid values: eais, ei, default is eais.
    eiInstanceType String
    The Ei instance specification, which is used to filter matching specifications for updating.
    status String
    The status of the resource

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClientInstanceAttachment resource produces the following output properties:

    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The region ID of the resource
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The region ID of the resource
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The region ID of the resource
    createTime string
    The creation time of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    regionId string
    The region ID of the resource
    create_time str
    The creation time of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    region_id str
    The region ID of the resource
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The region ID of the resource

    Look up Existing ClientInstanceAttachment Resource

    Get an existing ClientInstanceAttachment 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?: ClientInstanceAttachmentState, opts?: CustomResourceOptions): ClientInstanceAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[str] = None,
            client_instance_id: Optional[str] = None,
            create_time: Optional[str] = None,
            ei_instance_type: Optional[str] = None,
            instance_id: Optional[str] = None,
            region_id: Optional[str] = None,
            status: Optional[str] = None) -> ClientInstanceAttachment
    func GetClientInstanceAttachment(ctx *Context, name string, id IDInput, state *ClientInstanceAttachmentState, opts ...ResourceOption) (*ClientInstanceAttachment, error)
    public static ClientInstanceAttachment Get(string name, Input<string> id, ClientInstanceAttachmentState? state, CustomResourceOptions? opts = null)
    public static ClientInstanceAttachment get(String name, Output<String> id, ClientInstanceAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:eais:ClientInstanceAttachment    get:      id: ${id}
    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.
    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:
    Category string
    EAIS instance category, valid values: eais, ei, default is eais.
    ClientInstanceId string
    The ID of the ECS or ECI instance bound to the EAIS instance.
    CreateTime string
    The creation time of the resource
    EiInstanceType string
    The Ei instance specification, which is used to filter matching specifications for updating.
    InstanceId string
    The EAIS instance ID.
    RegionId string
    The region ID of the resource
    Status string
    The status of the resource
    Category string
    EAIS instance category, valid values: eais, ei, default is eais.
    ClientInstanceId string
    The ID of the ECS or ECI instance bound to the EAIS instance.
    CreateTime string
    The creation time of the resource
    EiInstanceType string
    The Ei instance specification, which is used to filter matching specifications for updating.
    InstanceId string
    The EAIS instance ID.
    RegionId string
    The region ID of the resource
    Status string
    The status of the resource
    category String
    EAIS instance category, valid values: eais, ei, default is eais.
    clientInstanceId String
    The ID of the ECS or ECI instance bound to the EAIS instance.
    createTime String
    The creation time of the resource
    eiInstanceType String
    The Ei instance specification, which is used to filter matching specifications for updating.
    instanceId String
    The EAIS instance ID.
    regionId String
    The region ID of the resource
    status String
    The status of the resource
    category string
    EAIS instance category, valid values: eais, ei, default is eais.
    clientInstanceId string
    The ID of the ECS or ECI instance bound to the EAIS instance.
    createTime string
    The creation time of the resource
    eiInstanceType string
    The Ei instance specification, which is used to filter matching specifications for updating.
    instanceId string
    The EAIS instance ID.
    regionId string
    The region ID of the resource
    status string
    The status of the resource
    category str
    EAIS instance category, valid values: eais, ei, default is eais.
    client_instance_id str
    The ID of the ECS or ECI instance bound to the EAIS instance.
    create_time str
    The creation time of the resource
    ei_instance_type str
    The Ei instance specification, which is used to filter matching specifications for updating.
    instance_id str
    The EAIS instance ID.
    region_id str
    The region ID of the resource
    status str
    The status of the resource
    category String
    EAIS instance category, valid values: eais, ei, default is eais.
    clientInstanceId String
    The ID of the ECS or ECI instance bound to the EAIS instance.
    createTime String
    The creation time of the resource
    eiInstanceType String
    The Ei instance specification, which is used to filter matching specifications for updating.
    instanceId String
    The EAIS instance ID.
    regionId String
    The region ID of the resource
    status String
    The status of the resource

    Import

    EAIS Client Instance Attachment can be imported using the id, e.g.

    $ pulumi import alicloud:eais/clientInstanceAttachment:ClientInstanceAttachment example <instance_id>:<client_instance_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.96.0 published on Tuesday, Mar 3, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate