1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eipanycast
  5. AnycastEipAddressAttachment
Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi

alicloud.eipanycast.AnycastEipAddressAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi

    Provides a Eipanycast Anycast Eip Address Attachment resource.

    For information about Eipanycast Anycast Eip Address Attachment and how to use it, see What is Anycast Eip Address Attachment.

    NOTE: Available since v1.113.0.

    NOTE: The following regions support currently while Slb instance support bound. [eu-west-1-gb33-a01,cn-hongkong-am4-c04,ap-southeast-os30-a01,us-west-ot7-a01,ap-south-in73-a01,ap-southeast-my88-a01]

    Example Usage

    Basic Usage

    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 defaultZones = AliCloud.Slb.GetZones.Invoke(new()
        {
            AvailableSlbAddressType = "vpc",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.0.0.0/8",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.1.0.0/16",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultApplicationLoadBalancer = new AliCloud.Slb.ApplicationLoadBalancer("defaultApplicationLoadBalancer", new()
        {
            AddressType = "intranet",
            VswitchId = defaultSwitch.Id,
            LoadBalancerName = name,
            LoadBalancerSpec = "slb.s1.small",
            MasterZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var defaultAnycastEipAddress = new AliCloud.EipAnycast.AnycastEipAddress("defaultAnycastEipAddress", new()
        {
            AnycastEipAddressName = name,
            ServiceLocation = "ChineseMainland",
        });
    
        var defaultRegions = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var defaultAnycastEipAddressAttachment = new AliCloud.EipAnycast.AnycastEipAddressAttachment("defaultAnycastEipAddressAttachment", new()
        {
            BindInstanceId = defaultApplicationLoadBalancer.Id,
            BindInstanceType = "SlbInstance",
            BindInstanceRegionId = defaultRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
            AnycastId = defaultAnycastEipAddress.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eipanycast"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"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
    		}
    		defaultZones, err := slb.GetZones(ctx, &slb.GetZonesArgs{
    			AvailableSlbAddressType: pulumi.StringRef("vpc"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.1.0.0/16"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      *pulumi.String(defaultZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultApplicationLoadBalancer, err := slb.NewApplicationLoadBalancer(ctx, "defaultApplicationLoadBalancer", &slb.ApplicationLoadBalancerArgs{
    			AddressType:      pulumi.String("intranet"),
    			VswitchId:        defaultSwitch.ID(),
    			LoadBalancerName: pulumi.String(name),
    			LoadBalancerSpec: pulumi.String("slb.s1.small"),
    			MasterZoneId:     *pulumi.String(defaultZones.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAnycastEipAddress, err := eipanycast.NewAnycastEipAddress(ctx, "defaultAnycastEipAddress", &eipanycast.AnycastEipAddressArgs{
    			AnycastEipAddressName: pulumi.String(name),
    			ServiceLocation:       pulumi.String("ChineseMainland"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = eipanycast.NewAnycastEipAddressAttachment(ctx, "defaultAnycastEipAddressAttachment", &eipanycast.AnycastEipAddressAttachmentArgs{
    			BindInstanceId:       defaultApplicationLoadBalancer.ID(),
    			BindInstanceType:     pulumi.String("SlbInstance"),
    			BindInstanceRegionId: *pulumi.String(defaultRegions.Regions[0].Id),
    			AnycastId:            defaultAnycastEipAddress.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetZonesArgs;
    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.slb.ApplicationLoadBalancer;
    import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddress;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressAttachment;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressAttachmentArgs;
    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 defaultZones = SlbFunctions.getZones(GetZonesArgs.builder()
                .availableSlbAddressType("vpc")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.0.0.0/8")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.1.0.0/16")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultApplicationLoadBalancer = new ApplicationLoadBalancer("defaultApplicationLoadBalancer", ApplicationLoadBalancerArgs.builder()        
                .addressType("intranet")
                .vswitchId(defaultSwitch.id())
                .loadBalancerName(name)
                .loadBalancerSpec("slb.s1.small")
                .masterZoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var defaultAnycastEipAddress = new AnycastEipAddress("defaultAnycastEipAddress", AnycastEipAddressArgs.builder()        
                .anycastEipAddressName(name)
                .serviceLocation("ChineseMainland")
                .build());
    
            final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var defaultAnycastEipAddressAttachment = new AnycastEipAddressAttachment("defaultAnycastEipAddressAttachment", AnycastEipAddressAttachmentArgs.builder()        
                .bindInstanceId(defaultApplicationLoadBalancer.id())
                .bindInstanceType("SlbInstance")
                .bindInstanceRegionId(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
                .anycastId(defaultAnycastEipAddress.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_zones = alicloud.slb.get_zones(available_slb_address_type="vpc")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.0.0.0/8")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.1.0.0/16",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].id)
    default_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("defaultApplicationLoadBalancer",
        address_type="intranet",
        vswitch_id=default_switch.id,
        load_balancer_name=name,
        load_balancer_spec="slb.s1.small",
        master_zone_id=default_zones.zones[0].id)
    default_anycast_eip_address = alicloud.eipanycast.AnycastEipAddress("defaultAnycastEipAddress",
        anycast_eip_address_name=name,
        service_location="ChineseMainland")
    default_regions = alicloud.get_regions(current=True)
    default_anycast_eip_address_attachment = alicloud.eipanycast.AnycastEipAddressAttachment("defaultAnycastEipAddressAttachment",
        bind_instance_id=default_application_load_balancer.id,
        bind_instance_type="SlbInstance",
        bind_instance_region_id=default_regions.regions[0].id,
        anycast_id=default_anycast_eip_address.id)
    
    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 defaultZones = alicloud.slb.getZones({
        availableSlbAddressType: "vpc",
    });
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.0.0.0/8",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.1.0.0/16",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    });
    const defaultApplicationLoadBalancer = new alicloud.slb.ApplicationLoadBalancer("defaultApplicationLoadBalancer", {
        addressType: "intranet",
        vswitchId: defaultSwitch.id,
        loadBalancerName: name,
        loadBalancerSpec: "slb.s1.small",
        masterZoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    });
    const defaultAnycastEipAddress = new alicloud.eipanycast.AnycastEipAddress("defaultAnycastEipAddress", {
        anycastEipAddressName: name,
        serviceLocation: "ChineseMainland",
    });
    const defaultRegions = alicloud.getRegions({
        current: true,
    });
    const defaultAnycastEipAddressAttachment = new alicloud.eipanycast.AnycastEipAddressAttachment("defaultAnycastEipAddressAttachment", {
        bindInstanceId: defaultApplicationLoadBalancer.id,
        bindInstanceType: "SlbInstance",
        bindInstanceRegionId: defaultRegions.then(defaultRegions => defaultRegions.regions?.[0]?.id),
        anycastId: defaultAnycastEipAddress.id,
    });
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.0.0.0/8
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.1.0.0/16
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].id}
      defaultApplicationLoadBalancer:
        type: alicloud:slb:ApplicationLoadBalancer
        properties:
          addressType: intranet
          vswitchId: ${defaultSwitch.id}
          loadBalancerName: ${name}
          loadBalancerSpec: slb.s1.small
          masterZoneId: ${defaultZones.zones[0].id}
      defaultAnycastEipAddress:
        type: alicloud:eipanycast:AnycastEipAddress
        properties:
          anycastEipAddressName: ${name}
          serviceLocation: ChineseMainland
      defaultAnycastEipAddressAttachment:
        type: alicloud:eipanycast:AnycastEipAddressAttachment
        properties:
          bindInstanceId: ${defaultApplicationLoadBalancer.id}
          bindInstanceType: SlbInstance
          bindInstanceRegionId: ${defaultRegions.regions[0].id}
          anycastId: ${defaultAnycastEipAddress.id}
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:slb:getZones
          Arguments:
            availableSlbAddressType: vpc
      defaultRegions:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
    

    , and the new Default origin will take effect. The original Default origin will be changed to a common origin.

    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") ?? "tf-example";
        var beijing = new AliCloud.Provider("beijing", new()
        {
            Region = "cn-beijing",
        });
    
        var hangzhou = new AliCloud.Provider("hangzhou", new()
        {
            Region = "cn-hangzhou",
        });
    
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableDiskCategory = "cloud_efficiency",
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultImages = AliCloud.Ecs.GetImages.Invoke(new()
        {
            NameRegex = "^ubuntu_18.*64",
            MostRecent = true,
            Owners = "system",
        });
    
        var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            CpuCoreCount = 1,
            MemorySize = 2,
        });
    
        var defaultVpc = new AliCloud.Vpc.Network("defaultVpc", new()
        {
            VpcName = name,
            CidrBlock = "192.168.0.0/16",
        }, new CustomResourceOptions
        {
            Provider = "alicloud.beijing",
        });
    
        var defaultVsw = new AliCloud.Vpc.Switch("defaultVsw", new()
        {
            VpcId = defaultVpc.Id,
            CidrBlock = "192.168.0.0/24",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        }, new CustomResourceOptions
        {
            Provider = "alicloud.beijing",
        });
    
        var defaultuBsECI = new AliCloud.Ecs.SecurityGroup("defaultuBsECI", new()
        {
            VpcId = defaultVpc.Id,
        }, new CustomResourceOptions
        {
            Provider = "alicloud.beijing",
        });
    
        var default9KDlN7 = new AliCloud.Ecs.Instance("default9KDlN7", new()
        {
            ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
            InstanceName = name,
            SecurityGroups = new[]
            {
                defaultuBsECI.Id,
            },
            AvailabilityZone = defaultVsw.ZoneId,
            InstanceChargeType = "PostPaid",
            SystemDiskCategory = "cloud_efficiency",
            VswitchId = defaultVsw.Id,
        }, new CustomResourceOptions
        {
            Provider = "alicloud.beijing",
        });
    
        var defaultXkpFRs = new AliCloud.EipAnycast.AnycastEipAddress("defaultXkpFRs", new()
        {
            ServiceLocation = "ChineseMainland",
        }, new CustomResourceOptions
        {
            Provider = "alicloud.hangzhou",
        });
    
        var defaultVpc2 = new AliCloud.Vpc.Network("defaultVpc2", new()
        {
            VpcName = $"{name}6",
            CidrBlock = "192.168.0.0/16",
        }, new CustomResourceOptions
        {
            Provider = "alicloud.hangzhou",
        });
    
        var default2Zones = AliCloud.GetZones.Invoke(new()
        {
            AvailableDiskCategory = "cloud_efficiency",
            AvailableResourceCreation = "VSwitch",
        });
    
        var default2Images = AliCloud.Ecs.GetImages.Invoke(new()
        {
            NameRegex = "^ubuntu_18.*64",
            MostRecent = true,
            Owners = "system",
        });
    
        var default2InstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            AvailabilityZone = default2Zones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            CpuCoreCount = 1,
            MemorySize = 2,
        });
    
        var defaultdsVsw2 = new AliCloud.Vpc.Switch("defaultdsVsw2", new()
        {
            VpcId = defaultVpc2.Id,
            CidrBlock = "192.168.0.0/24",
            ZoneId = default2Zones.Apply(getZonesResult => getZonesResult.Zones[1]?.Id),
        }, new CustomResourceOptions
        {
            Provider = "alicloud.hangzhou",
        });
    
        var defaultuBsECI2 = new AliCloud.Ecs.SecurityGroup("defaultuBsECI2", new()
        {
            VpcId = defaultVpc2.Id,
        }, new CustomResourceOptions
        {
            Provider = "alicloud.hangzhou",
        });
    
        var defaultEcs2 = new AliCloud.Ecs.Instance("defaultEcs2", new()
        {
            ImageId = default2Images.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
            InstanceType = default2InstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
            InstanceName = name,
            SecurityGroups = new[]
            {
                defaultuBsECI2.Id,
            },
            AvailabilityZone = defaultdsVsw2.ZoneId,
            InstanceChargeType = "PostPaid",
            SystemDiskCategory = "cloud_efficiency",
            VswitchId = defaultdsVsw2.Id,
        }, new CustomResourceOptions
        {
            Provider = "alicloud.hangzhou",
        });
    
        var defaultEfYBJY = new AliCloud.EipAnycast.AnycastEipAddressAttachment("defaultEfYBJY", new()
        {
            BindInstanceId = default9KDlN7.NetworkInterfaceId,
            BindInstanceType = "NetworkInterface",
            BindInstanceRegionId = "cn-beijing",
            AnycastId = defaultXkpFRs.Id,
            AssociationMode = "Default",
        }, new CustomResourceOptions
        {
            Provider = "alicloud.beijing",
        });
    
        var normal = new AliCloud.EipAnycast.AnycastEipAddressAttachment("normal", new()
        {
            BindInstanceId = defaultEcs2.NetworkInterfaceId,
            BindInstanceType = "NetworkInterface",
            BindInstanceRegionId = "cn-hangzhou",
            AnycastId = defaultEfYBJY.AnycastId,
        }, new CustomResourceOptions
        {
            Provider = "alicloud.hangzhou",
        });
    
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eipanycast"
    	"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 := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := alicloud.NewProvider(ctx, "beijing", &alicloud.ProviderArgs{
    			Region: pulumi.String("cn-beijing"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alicloud.NewProvider(ctx, "hangzhou", &alicloud.ProviderArgs{
    			Region: pulumi.String("cn-hangzhou"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableDiskCategory:     pulumi.StringRef("cloud_efficiency"),
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
    			NameRegex:  pulumi.StringRef("^ubuntu_18.*64"),
    			MostRecent: pulumi.BoolRef(true),
    			Owners:     pulumi.StringRef("system"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id),
    			CpuCoreCount:     pulumi.IntRef(1),
    			MemorySize:       pulumi.Float64Ref(2),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultVpc, err := vpc.NewNetwork(ctx, "defaultVpc", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		}, pulumi.Provider("alicloud.beijing"))
    		if err != nil {
    			return err
    		}
    		defaultVsw, err := vpc.NewSwitch(ctx, "defaultVsw", &vpc.SwitchArgs{
    			VpcId:     defaultVpc.ID(),
    			CidrBlock: pulumi.String("192.168.0.0/24"),
    			ZoneId:    *pulumi.String(defaultZones.Zones[0].Id),
    		}, pulumi.Provider("alicloud.beijing"))
    		if err != nil {
    			return err
    		}
    		defaultuBsECI, err := ecs.NewSecurityGroup(ctx, "defaultuBsECI", &ecs.SecurityGroupArgs{
    			VpcId: defaultVpc.ID(),
    		}, pulumi.Provider("alicloud.beijing"))
    		if err != nil {
    			return err
    		}
    		default9KDlN7, err := ecs.NewInstance(ctx, "default9KDlN7", &ecs.InstanceArgs{
    			ImageId:      *pulumi.String(defaultImages.Images[0].Id),
    			InstanceType: *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id),
    			InstanceName: pulumi.String(name),
    			SecurityGroups: pulumi.StringArray{
    				defaultuBsECI.ID(),
    			},
    			AvailabilityZone:   defaultVsw.ZoneId,
    			InstanceChargeType: pulumi.String("PostPaid"),
    			SystemDiskCategory: pulumi.String("cloud_efficiency"),
    			VswitchId:          defaultVsw.ID(),
    		}, pulumi.Provider("alicloud.beijing"))
    		if err != nil {
    			return err
    		}
    		defaultXkpFRs, err := eipanycast.NewAnycastEipAddress(ctx, "defaultXkpFRs", &eipanycast.AnycastEipAddressArgs{
    			ServiceLocation: pulumi.String("ChineseMainland"),
    		}, pulumi.Provider("alicloud.hangzhou"))
    		if err != nil {
    			return err
    		}
    		defaultVpc2, err := vpc.NewNetwork(ctx, "defaultVpc2", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(fmt.Sprintf("%v6", name)),
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		}, pulumi.Provider("alicloud.hangzhou"))
    		if err != nil {
    			return err
    		}
    		default2Zones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableDiskCategory:     pulumi.StringRef("cloud_efficiency"),
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		default2Images, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
    			NameRegex:  pulumi.StringRef("^ubuntu_18.*64"),
    			MostRecent: pulumi.BoolRef(true),
    			Owners:     pulumi.StringRef("system"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		default2InstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    			AvailabilityZone: pulumi.StringRef(default2Zones.Zones[0].Id),
    			CpuCoreCount:     pulumi.IntRef(1),
    			MemorySize:       pulumi.Float64Ref(2),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultdsVsw2, err := vpc.NewSwitch(ctx, "defaultdsVsw2", &vpc.SwitchArgs{
    			VpcId:     defaultVpc2.ID(),
    			CidrBlock: pulumi.String("192.168.0.0/24"),
    			ZoneId:    *pulumi.String(default2Zones.Zones[1].Id),
    		}, pulumi.Provider("alicloud.hangzhou"))
    		if err != nil {
    			return err
    		}
    		defaultuBsECI2, err := ecs.NewSecurityGroup(ctx, "defaultuBsECI2", &ecs.SecurityGroupArgs{
    			VpcId: defaultVpc2.ID(),
    		}, pulumi.Provider("alicloud.hangzhou"))
    		if err != nil {
    			return err
    		}
    		defaultEcs2, err := ecs.NewInstance(ctx, "defaultEcs2", &ecs.InstanceArgs{
    			ImageId:      *pulumi.String(default2Images.Images[0].Id),
    			InstanceType: *pulumi.String(default2InstanceTypes.InstanceTypes[0].Id),
    			InstanceName: pulumi.String(name),
    			SecurityGroups: pulumi.StringArray{
    				defaultuBsECI2.ID(),
    			},
    			AvailabilityZone:   defaultdsVsw2.ZoneId,
    			InstanceChargeType: pulumi.String("PostPaid"),
    			SystemDiskCategory: pulumi.String("cloud_efficiency"),
    			VswitchId:          defaultdsVsw2.ID(),
    		}, pulumi.Provider("alicloud.hangzhou"))
    		if err != nil {
    			return err
    		}
    		defaultEfYBJY, err := eipanycast.NewAnycastEipAddressAttachment(ctx, "defaultEfYBJY", &eipanycast.AnycastEipAddressAttachmentArgs{
    			BindInstanceId:       default9KDlN7.NetworkInterfaceId,
    			BindInstanceType:     pulumi.String("NetworkInterface"),
    			BindInstanceRegionId: pulumi.String("cn-beijing"),
    			AnycastId:            defaultXkpFRs.ID(),
    			AssociationMode:      pulumi.String("Default"),
    		}, pulumi.Provider("alicloud.beijing"))
    		if err != nil {
    			return err
    		}
    		_, err = eipanycast.NewAnycastEipAddressAttachment(ctx, "normal", &eipanycast.AnycastEipAddressAttachmentArgs{
    			BindInstanceId:       defaultEcs2.NetworkInterfaceId,
    			BindInstanceType:     pulumi.String("NetworkInterface"),
    			BindInstanceRegionId: pulumi.String("cn-hangzhou"),
    			AnycastId:            defaultEfYBJY.AnycastId,
    		}, pulumi.Provider("alicloud.hangzhou"))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.Provider;
    import com.pulumi.alicloud.ProviderArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    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.ecs.Instance;
    import com.pulumi.alicloud.ecs.InstanceArgs;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddress;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressArgs;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressAttachment;
    import com.pulumi.alicloud.eipanycast.AnycastEipAddressAttachmentArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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("tf-example");
            var beijing = new Provider("beijing", ProviderArgs.builder()        
                .region("cn-beijing")
                .build());
    
            var hangzhou = new Provider("hangzhou", ProviderArgs.builder()        
                .region("cn-hangzhou")
                .build());
    
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableDiskCategory("cloud_efficiency")
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultImages = EcsFunctions.getImages(GetImagesArgs.builder()
                .nameRegex("^ubuntu_18.*64")
                .mostRecent(true)
                .owners("system")
                .build());
    
            final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .cpuCoreCount(1)
                .memorySize(2)
                .build());
    
            var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("192.168.0.0/16")
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.beijing")
                    .build());
    
            var defaultVsw = new Switch("defaultVsw", SwitchArgs.builder()        
                .vpcId(defaultVpc.id())
                .cidrBlock("192.168.0.0/24")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.beijing")
                    .build());
    
            var defaultuBsECI = new SecurityGroup("defaultuBsECI", SecurityGroupArgs.builder()        
                .vpcId(defaultVpc.id())
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.beijing")
                    .build());
    
            var default9KDlN7 = new Instance("default9KDlN7", InstanceArgs.builder()        
                .imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
                .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
                .instanceName(name)
                .securityGroups(defaultuBsECI.id())
                .availabilityZone(defaultVsw.zoneId())
                .instanceChargeType("PostPaid")
                .systemDiskCategory("cloud_efficiency")
                .vswitchId(defaultVsw.id())
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.beijing")
                    .build());
    
            var defaultXkpFRs = new AnycastEipAddress("defaultXkpFRs", AnycastEipAddressArgs.builder()        
                .serviceLocation("ChineseMainland")
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.hangzhou")
                    .build());
    
            var defaultVpc2 = new Network("defaultVpc2", NetworkArgs.builder()        
                .vpcName(String.format("%s6", name))
                .cidrBlock("192.168.0.0/16")
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.hangzhou")
                    .build());
    
            final var default2Zones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableDiskCategory("cloud_efficiency")
                .availableResourceCreation("VSwitch")
                .build());
    
            final var default2Images = EcsFunctions.getImages(GetImagesArgs.builder()
                .nameRegex("^ubuntu_18.*64")
                .mostRecent(true)
                .owners("system")
                .build());
    
            final var default2InstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .availabilityZone(default2Zones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .cpuCoreCount(1)
                .memorySize(2)
                .build());
    
            var defaultdsVsw2 = new Switch("defaultdsVsw2", SwitchArgs.builder()        
                .vpcId(defaultVpc2.id())
                .cidrBlock("192.168.0.0/24")
                .zoneId(default2Zones.applyValue(getZonesResult -> getZonesResult.zones()[1].id()))
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.hangzhou")
                    .build());
    
            var defaultuBsECI2 = new SecurityGroup("defaultuBsECI2", SecurityGroupArgs.builder()        
                .vpcId(defaultVpc2.id())
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.hangzhou")
                    .build());
    
            var defaultEcs2 = new Instance("defaultEcs2", InstanceArgs.builder()        
                .imageId(default2Images.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
                .instanceType(default2InstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
                .instanceName(name)
                .securityGroups(defaultuBsECI2.id())
                .availabilityZone(defaultdsVsw2.zoneId())
                .instanceChargeType("PostPaid")
                .systemDiskCategory("cloud_efficiency")
                .vswitchId(defaultdsVsw2.id())
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.hangzhou")
                    .build());
    
            var defaultEfYBJY = new AnycastEipAddressAttachment("defaultEfYBJY", AnycastEipAddressAttachmentArgs.builder()        
                .bindInstanceId(default9KDlN7.networkInterfaceId())
                .bindInstanceType("NetworkInterface")
                .bindInstanceRegionId("cn-beijing")
                .anycastId(defaultXkpFRs.id())
                .associationMode("Default")
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.beijing")
                    .build());
    
            var normal = new AnycastEipAddressAttachment("normal", AnycastEipAddressAttachmentArgs.builder()        
                .bindInstanceId(defaultEcs2.networkInterfaceId())
                .bindInstanceType("NetworkInterface")
                .bindInstanceRegionId("cn-hangzhou")
                .anycastId(defaultEfYBJY.anycastId())
                .build(), CustomResourceOptions.builder()
                    .provider("alicloud.hangzhou")
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    beijing = alicloud.Provider("beijing", region="cn-beijing")
    hangzhou = alicloud.Provider("hangzhou", region="cn-hangzhou")
    default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
        available_resource_creation="VSwitch")
    default_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
        most_recent=True,
        owners="system")
    default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
        cpu_core_count=1,
        memory_size=2)
    default_vpc = alicloud.vpc.Network("defaultVpc",
        vpc_name=name,
        cidr_block="192.168.0.0/16",
        opts=pulumi.ResourceOptions(provider="alicloud.beijing"))
    default_vsw = alicloud.vpc.Switch("defaultVsw",
        vpc_id=default_vpc.id,
        cidr_block="192.168.0.0/24",
        zone_id=default_zones.zones[0].id,
        opts=pulumi.ResourceOptions(provider="alicloud.beijing"))
    defaultu_bs_eci = alicloud.ecs.SecurityGroup("defaultuBsECI", vpc_id=default_vpc.id,
    opts=pulumi.ResourceOptions(provider="alicloud.beijing"))
    default9_k_dl_n7 = alicloud.ecs.Instance("default9KDlN7",
        image_id=default_images.images[0].id,
        instance_type=default_instance_types.instance_types[0].id,
        instance_name=name,
        security_groups=[defaultu_bs_eci.id],
        availability_zone=default_vsw.zone_id,
        instance_charge_type="PostPaid",
        system_disk_category="cloud_efficiency",
        vswitch_id=default_vsw.id,
        opts=pulumi.ResourceOptions(provider="alicloud.beijing"))
    default_xkp_frs = alicloud.eipanycast.AnycastEipAddress("defaultXkpFRs", service_location="ChineseMainland",
    opts=pulumi.ResourceOptions(provider="alicloud.hangzhou"))
    default_vpc2 = alicloud.vpc.Network("defaultVpc2",
        vpc_name=f"{name}6",
        cidr_block="192.168.0.0/16",
        opts=pulumi.ResourceOptions(provider="alicloud.hangzhou"))
    default2_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
        available_resource_creation="VSwitch")
    default2_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
        most_recent=True,
        owners="system")
    default2_instance_types = alicloud.ecs.get_instance_types(availability_zone=default2_zones.zones[0].id,
        cpu_core_count=1,
        memory_size=2)
    defaultds_vsw2 = alicloud.vpc.Switch("defaultdsVsw2",
        vpc_id=default_vpc2.id,
        cidr_block="192.168.0.0/24",
        zone_id=default2_zones.zones[1].id,
        opts=pulumi.ResourceOptions(provider="alicloud.hangzhou"))
    defaultu_bs_eci2 = alicloud.ecs.SecurityGroup("defaultuBsECI2", vpc_id=default_vpc2.id,
    opts=pulumi.ResourceOptions(provider="alicloud.hangzhou"))
    default_ecs2 = alicloud.ecs.Instance("defaultEcs2",
        image_id=default2_images.images[0].id,
        instance_type=default2_instance_types.instance_types[0].id,
        instance_name=name,
        security_groups=[defaultu_bs_eci2.id],
        availability_zone=defaultds_vsw2.zone_id,
        instance_charge_type="PostPaid",
        system_disk_category="cloud_efficiency",
        vswitch_id=defaultds_vsw2.id,
        opts=pulumi.ResourceOptions(provider="alicloud.hangzhou"))
    default_ef_ybjy = alicloud.eipanycast.AnycastEipAddressAttachment("defaultEfYBJY",
        bind_instance_id=default9_k_dl_n7.network_interface_id,
        bind_instance_type="NetworkInterface",
        bind_instance_region_id="cn-beijing",
        anycast_id=default_xkp_frs.id,
        association_mode="Default",
        opts=pulumi.ResourceOptions(provider="alicloud.beijing"))
    normal = alicloud.eipanycast.AnycastEipAddressAttachment("normal",
        bind_instance_id=default_ecs2.network_interface_id,
        bind_instance_type="NetworkInterface",
        bind_instance_region_id="cn-hangzhou",
        anycast_id=default_ef_ybjy.anycast_id,
        opts=pulumi.ResourceOptions(provider="alicloud.hangzhou"))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const beijing = new alicloud.Provider("beijing", {region: "cn-beijing"});
    const hangzhou = new alicloud.Provider("hangzhou", {region: "cn-hangzhou"});
    const defaultZones = alicloud.getZones({
        availableDiskCategory: "cloud_efficiency",
        availableResourceCreation: "VSwitch",
    });
    const defaultImages = alicloud.ecs.getImages({
        nameRegex: "^ubuntu_18.*64",
        mostRecent: true,
        owners: "system",
    });
    const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
        availabilityZone: defaultZones.zones?.[0]?.id,
        cpuCoreCount: 1,
        memorySize: 2,
    }));
    const defaultVpc = new alicloud.vpc.Network("defaultVpc", {
        vpcName: name,
        cidrBlock: "192.168.0.0/16",
    }, {
        provider: "alicloud.beijing",
    });
    const defaultVsw = new alicloud.vpc.Switch("defaultVsw", {
        vpcId: defaultVpc.id,
        cidrBlock: "192.168.0.0/24",
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    }, {
        provider: "alicloud.beijing",
    });
    const defaultuBsECI = new alicloud.ecs.SecurityGroup("defaultuBsECI", {vpcId: defaultVpc.id}, {
        provider: "alicloud.beijing",
    });
    const default9KDlN7 = new alicloud.ecs.Instance("default9KDlN7", {
        imageId: defaultImages.then(defaultImages => defaultImages.images?.[0]?.id),
        instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id),
        instanceName: name,
        securityGroups: [defaultuBsECI.id],
        availabilityZone: defaultVsw.zoneId,
        instanceChargeType: "PostPaid",
        systemDiskCategory: "cloud_efficiency",
        vswitchId: defaultVsw.id,
    }, {
        provider: "alicloud.beijing",
    });
    const defaultXkpFRs = new alicloud.eipanycast.AnycastEipAddress("defaultXkpFRs", {serviceLocation: "ChineseMainland"}, {
        provider: "alicloud.hangzhou",
    });
    const defaultVpc2 = new alicloud.vpc.Network("defaultVpc2", {
        vpcName: `${name}6`,
        cidrBlock: "192.168.0.0/16",
    }, {
        provider: "alicloud.hangzhou",
    });
    const default2Zones = alicloud.getZones({
        availableDiskCategory: "cloud_efficiency",
        availableResourceCreation: "VSwitch",
    });
    const default2Images = alicloud.ecs.getImages({
        nameRegex: "^ubuntu_18.*64",
        mostRecent: true,
        owners: "system",
    });
    const default2InstanceTypes = default2Zones.then(default2Zones => alicloud.ecs.getInstanceTypes({
        availabilityZone: default2Zones.zones?.[0]?.id,
        cpuCoreCount: 1,
        memorySize: 2,
    }));
    const defaultdsVsw2 = new alicloud.vpc.Switch("defaultdsVsw2", {
        vpcId: defaultVpc2.id,
        cidrBlock: "192.168.0.0/24",
        zoneId: default2Zones.then(default2Zones => default2Zones.zones?.[1]?.id),
    }, {
        provider: "alicloud.hangzhou",
    });
    const defaultuBsECI2 = new alicloud.ecs.SecurityGroup("defaultuBsECI2", {vpcId: defaultVpc2.id}, {
        provider: "alicloud.hangzhou",
    });
    const defaultEcs2 = new alicloud.ecs.Instance("defaultEcs2", {
        imageId: default2Images.then(default2Images => default2Images.images?.[0]?.id),
        instanceType: default2InstanceTypes.then(default2InstanceTypes => default2InstanceTypes.instanceTypes?.[0]?.id),
        instanceName: name,
        securityGroups: [defaultuBsECI2.id],
        availabilityZone: defaultdsVsw2.zoneId,
        instanceChargeType: "PostPaid",
        systemDiskCategory: "cloud_efficiency",
        vswitchId: defaultdsVsw2.id,
    }, {
        provider: "alicloud.hangzhou",
    });
    const defaultEfYBJY = new alicloud.eipanycast.AnycastEipAddressAttachment("defaultEfYBJY", {
        bindInstanceId: default9KDlN7.networkInterfaceId,
        bindInstanceType: "NetworkInterface",
        bindInstanceRegionId: "cn-beijing",
        anycastId: defaultXkpFRs.id,
        associationMode: "Default",
    }, {
        provider: "alicloud.beijing",
    });
    const normal = new alicloud.eipanycast.AnycastEipAddressAttachment("normal", {
        bindInstanceId: defaultEcs2.networkInterfaceId,
        bindInstanceType: "NetworkInterface",
        bindInstanceRegionId: "cn-hangzhou",
        anycastId: defaultEfYBJY.anycastId,
    }, {
        provider: "alicloud.hangzhou",
    });
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      beijing:
        type: pulumi:providers:alicloud
        properties:
          region: cn-beijing
      hangzhou:
        type: pulumi:providers:alicloud
        properties:
          region: cn-hangzhou
      defaultVpc:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 192.168.0.0/16
        options:
          provider: alicloud.beijing
      defaultVsw:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultVpc.id}
          cidrBlock: 192.168.0.0/24
          zoneId: ${defaultZones.zones[0].id}
        options:
          provider: alicloud.beijing
      defaultuBsECI:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultVpc.id}
        options:
          provider: alicloud.beijing
      default9KDlN7:
        type: alicloud:ecs:Instance
        properties:
          imageId: ${defaultImages.images[0].id}
          instanceType: ${defaultInstanceTypes.instanceTypes[0].id}
          instanceName: ${name}
          securityGroups:
            - ${defaultuBsECI.id}
          availabilityZone: ${defaultVsw.zoneId}
          instanceChargeType: PostPaid
          systemDiskCategory: cloud_efficiency
          vswitchId: ${defaultVsw.id}
        options:
          provider: alicloud.beijing
      defaultXkpFRs:
        type: alicloud:eipanycast:AnycastEipAddress
        properties:
          serviceLocation: ChineseMainland
        options:
          provider: alicloud.hangzhou
      defaultVpc2:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}6
          cidrBlock: 192.168.0.0/16
        options:
          provider: alicloud.hangzhou
      defaultdsVsw2:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultVpc2.id}
          cidrBlock: 192.168.0.0/24
          zoneId: ${default2Zones.zones[1].id}
        options:
          provider: alicloud.hangzhou
      defaultuBsECI2:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultVpc2.id}
        options:
          provider: alicloud.hangzhou
      defaultEcs2:
        type: alicloud:ecs:Instance
        properties:
          imageId: ${default2Images.images[0].id}
          instanceType: ${default2InstanceTypes.instanceTypes[0].id}
          instanceName: ${name}
          securityGroups:
            - ${defaultuBsECI2.id}
          availabilityZone: ${defaultdsVsw2.zoneId}
          instanceChargeType: PostPaid
          systemDiskCategory: cloud_efficiency
          vswitchId: ${defaultdsVsw2.id}
        options:
          provider: alicloud.hangzhou
      defaultEfYBJY:
        type: alicloud:eipanycast:AnycastEipAddressAttachment
        properties:
          bindInstanceId: ${default9KDlN7.networkInterfaceId}
          bindInstanceType: NetworkInterface
          bindInstanceRegionId: cn-beijing
          anycastId: ${defaultXkpFRs.id}
          associationMode: Default
        options:
          provider: alicloud.beijing
      normal:
        type: alicloud:eipanycast:AnycastEipAddressAttachment
        properties:
          bindInstanceId: ${defaultEcs2.networkInterfaceId}
          bindInstanceType: NetworkInterface
          bindInstanceRegionId: cn-hangzhou
          anycastId: ${defaultEfYBJY.anycastId}
        options:
          provider: alicloud.hangzhou
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableDiskCategory: cloud_efficiency
            availableResourceCreation: VSwitch
      defaultImages:
        fn::invoke:
          Function: alicloud:ecs:getImages
          Arguments:
            nameRegex: ^ubuntu_18.*64
            mostRecent: true
            owners: system
      defaultInstanceTypes:
        fn::invoke:
          Function: alicloud:ecs:getInstanceTypes
          Arguments:
            availabilityZone: ${defaultZones.zones[0].id}
            cpuCoreCount: 1
            memorySize: 2
      default2Zones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableDiskCategory: cloud_efficiency
            availableResourceCreation: VSwitch
      default2Images:
        fn::invoke:
          Function: alicloud:ecs:getImages
          Arguments:
            nameRegex: ^ubuntu_18.*64
            mostRecent: true
            owners: system
      default2InstanceTypes:
        fn::invoke:
          Function: alicloud:ecs:getInstanceTypes
          Arguments:
            availabilityZone: ${default2Zones.zones[0].id}
            cpuCoreCount: 1
            memorySize: 2
    

    Create AnycastEipAddressAttachment Resource

    new AnycastEipAddressAttachment(name: string, args: AnycastEipAddressAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def AnycastEipAddressAttachment(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    anycast_id: Optional[str] = None,
                                    association_mode: Optional[str] = None,
                                    bind_instance_id: Optional[str] = None,
                                    bind_instance_region_id: Optional[str] = None,
                                    bind_instance_type: Optional[str] = None,
                                    pop_locations: Optional[Sequence[AnycastEipAddressAttachmentPopLocationArgs]] = None,
                                    private_ip_address: Optional[str] = None)
    @overload
    def AnycastEipAddressAttachment(resource_name: str,
                                    args: AnycastEipAddressAttachmentArgs,
                                    opts: Optional[ResourceOptions] = None)
    func NewAnycastEipAddressAttachment(ctx *Context, name string, args AnycastEipAddressAttachmentArgs, opts ...ResourceOption) (*AnycastEipAddressAttachment, error)
    public AnycastEipAddressAttachment(string name, AnycastEipAddressAttachmentArgs args, CustomResourceOptions? opts = null)
    public AnycastEipAddressAttachment(String name, AnycastEipAddressAttachmentArgs args)
    public AnycastEipAddressAttachment(String name, AnycastEipAddressAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:eipanycast:AnycastEipAddressAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AnycastEipAddressAttachmentArgs
    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 AnycastEipAddressAttachmentArgs
    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 AnycastEipAddressAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnycastEipAddressAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnycastEipAddressAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AnycastEipAddressAttachment Resource Properties

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

    Inputs

    The AnycastEipAddressAttachment resource accepts the following input properties:

    AnycastId string

    The ID of the Anycast EIP instance.

    BindInstanceId string

    The ID of the cloud resource instance to be bound.

    BindInstanceRegionId string

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    BindInstanceType string

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    AssociationMode string

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    PopLocations List<Pulumi.AliCloud.EipAnycast.Inputs.AnycastEipAddressAttachmentPopLocation>

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    PrivateIpAddress string

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    AnycastId string

    The ID of the Anycast EIP instance.

    BindInstanceId string

    The ID of the cloud resource instance to be bound.

    BindInstanceRegionId string

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    BindInstanceType string

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    AssociationMode string

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    PopLocations []AnycastEipAddressAttachmentPopLocationArgs

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    PrivateIpAddress string

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    anycastId String

    The ID of the Anycast EIP instance.

    bindInstanceId String

    The ID of the cloud resource instance to be bound.

    bindInstanceRegionId String

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bindInstanceType String

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    associationMode String

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    popLocations List<AnycastEipAddressAttachmentPopLocation>

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    privateIpAddress String

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    anycastId string

    The ID of the Anycast EIP instance.

    bindInstanceId string

    The ID of the cloud resource instance to be bound.

    bindInstanceRegionId string

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bindInstanceType string

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    associationMode string

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    popLocations AnycastEipAddressAttachmentPopLocation[]

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    privateIpAddress string

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    anycast_id str

    The ID of the Anycast EIP instance.

    bind_instance_id str

    The ID of the cloud resource instance to be bound.

    bind_instance_region_id str

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bind_instance_type str

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    association_mode str

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    pop_locations Sequence[AnycastEipAddressAttachmentPopLocationArgs]

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    private_ip_address str

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    anycastId String

    The ID of the Anycast EIP instance.

    bindInstanceId String

    The ID of the cloud resource instance to be bound.

    bindInstanceRegionId String

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bindInstanceType String

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    associationMode String

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    popLocations List<Property Map>

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    privateIpAddress String

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    Outputs

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

    BindTime string

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    BindTime string

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    bindTime String

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    bindTime string

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    bind_time str

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    bindTime String

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    Look up Existing AnycastEipAddressAttachment Resource

    Get an existing AnycastEipAddressAttachment 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?: AnycastEipAddressAttachmentState, opts?: CustomResourceOptions): AnycastEipAddressAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            anycast_id: Optional[str] = None,
            association_mode: Optional[str] = None,
            bind_instance_id: Optional[str] = None,
            bind_instance_region_id: Optional[str] = None,
            bind_instance_type: Optional[str] = None,
            bind_time: Optional[str] = None,
            pop_locations: Optional[Sequence[AnycastEipAddressAttachmentPopLocationArgs]] = None,
            private_ip_address: Optional[str] = None,
            status: Optional[str] = None) -> AnycastEipAddressAttachment
    func GetAnycastEipAddressAttachment(ctx *Context, name string, id IDInput, state *AnycastEipAddressAttachmentState, opts ...ResourceOption) (*AnycastEipAddressAttachment, error)
    public static AnycastEipAddressAttachment Get(string name, Input<string> id, AnycastEipAddressAttachmentState? state, CustomResourceOptions? opts = null)
    public static AnycastEipAddressAttachment get(String name, Output<String> id, AnycastEipAddressAttachmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AnycastId string

    The ID of the Anycast EIP instance.

    AssociationMode string

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    BindInstanceId string

    The ID of the cloud resource instance to be bound.

    BindInstanceRegionId string

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    BindInstanceType string

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    BindTime string

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    PopLocations List<Pulumi.AliCloud.EipAnycast.Inputs.AnycastEipAddressAttachmentPopLocation>

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    PrivateIpAddress string

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    Status string

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    AnycastId string

    The ID of the Anycast EIP instance.

    AssociationMode string

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    BindInstanceId string

    The ID of the cloud resource instance to be bound.

    BindInstanceRegionId string

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    BindInstanceType string

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    BindTime string

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    PopLocations []AnycastEipAddressAttachmentPopLocationArgs

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    PrivateIpAddress string

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    Status string

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    anycastId String

    The ID of the Anycast EIP instance.

    associationMode String

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    bindInstanceId String

    The ID of the cloud resource instance to be bound.

    bindInstanceRegionId String

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bindInstanceType String

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    bindTime String

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    popLocations List<AnycastEipAddressAttachmentPopLocation>

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    privateIpAddress String

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    status String

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    anycastId string

    The ID of the Anycast EIP instance.

    associationMode string

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    bindInstanceId string

    The ID of the cloud resource instance to be bound.

    bindInstanceRegionId string

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bindInstanceType string

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    bindTime string

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    popLocations AnycastEipAddressAttachmentPopLocation[]

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    privateIpAddress string

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    status string

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    anycast_id str

    The ID of the Anycast EIP instance.

    association_mode str

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    bind_instance_id str

    The ID of the cloud resource instance to be bound.

    bind_instance_region_id str

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bind_instance_type str

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    bind_time str

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    pop_locations Sequence[AnycastEipAddressAttachmentPopLocationArgs]

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    private_ip_address str

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    status str

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    anycastId String

    The ID of the Anycast EIP instance.

    associationMode String

    Binding mode, value:

    • Default: The Default mode. The cloud resource instance to be bound is set as the Default origin.
    • Normal: In Normal mode, the cloud resource instance to be bound is set to the common source station.
    bindInstanceId String

    The ID of the cloud resource instance to be bound.

    bindInstanceRegionId String

    The region ID of the cloud resource instance to be bound.You can only bind cloud resource instances in some regions. You can call the describeanystserverregions operation to obtain the region ID of the cloud resource instances that can be bound.

    bindInstanceType String

    The type of the cloud resource instance to be bound. Value:

    • SlbInstance: a private network SLB instance.
    • NetworkInterface: ENI.
    bindTime String

    Binding time.Time is expressed according to ISO8601 standard and UTC time is used. The format is: 'YYYY-MM-DDThh:mm:ssZ'.

    popLocations List<Property Map>

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas. See pop_locations below.

    privateIpAddress String

    The secondary private IP address of the elastic network card to be bound.This parameter takes effect only when BindInstanceType is set to **NetworkInterface. When you do not enter, this parameter is the primary private IP of the ENI by default.

    status String

    The status of the bound cloud resource instance. Value:BINDING: BINDING.Bound: Bound.UNBINDING: UNBINDING.DELETED: DELETED.MODIFYING: being modified.

    Supporting Types

    AnycastEipAddressAttachmentPopLocation, AnycastEipAddressAttachmentPopLocationArgs

    PopLocation string

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas.

    PopLocation string

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas.

    popLocation String

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas.

    popLocation string

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas.

    pop_location str

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas.

    popLocation String

    The access point information of the associated access area when the cloud resource instance is bound.If you are binding for the first time, this parameter does not need to be configured, and the system automatically associates all access areas.

    Import

    Eipanycast Anycast Eip Address Attachment can be imported using the id, e.g.

     $ pulumi import alicloud:eipanycast/anycastEipAddressAttachment:AnycastEipAddressAttachment example <anycast_id>:<bind_instance_id>:<bind_instance_region_id>:<bind_instance_type>
    

    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.44.0 published on Thursday, Sep 28, 2023 by Pulumi