1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. privatelink
  5. VpcEndpointZone
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.privatelink.VpcEndpointZone

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Private Link Vpc Endpoint Zone resource.

    For information about Private Link Vpc Endpoint Zone and how to use it, see What is Vpc Endpoint Zone.

    NOTE: Available since v1.111.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") || "tf_example";
    const example = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const exampleVpcEndpointService = new alicloud.privatelink.VpcEndpointService("example", {
        serviceDescription: name,
        connectBandwidth: 103,
        autoAcceptConnection: false,
    });
    const exampleNetwork = new alicloud.vpc.Network("example", {
        vpcName: name,
        cidrBlock: "10.0.0.0/8",
    });
    const exampleSwitch = new alicloud.vpc.Switch("example", {
        vswitchName: name,
        cidrBlock: "10.1.0.0/16",
        vpcId: exampleNetwork.id,
        zoneId: example.then(example => example.zones?.[0]?.id),
    });
    const exampleSecurityGroup = new alicloud.ecs.SecurityGroup("example", {
        name: name,
        vpcId: exampleNetwork.id,
    });
    const exampleApplicationLoadBalancer = new alicloud.slb.ApplicationLoadBalancer("example", {
        loadBalancerName: name,
        vswitchId: exampleSwitch.id,
        loadBalancerSpec: "slb.s2.small",
        addressType: "intranet",
    });
    const exampleVpcEndpointServiceResource = new alicloud.privatelink.VpcEndpointServiceResource("example", {
        serviceId: exampleVpcEndpointService.id,
        resourceId: exampleApplicationLoadBalancer.id,
        resourceType: "slb",
    });
    const exampleVpcEndpoint = new alicloud.privatelink.VpcEndpoint("example", {
        serviceId: exampleVpcEndpointServiceResource.serviceId,
        securityGroupIds: [exampleSecurityGroup.id],
        vpcId: exampleNetwork.id,
        vpcEndpointName: name,
    });
    const exampleVpcEndpointZone = new alicloud.privatelink.VpcEndpointZone("example", {
        endpointId: exampleVpcEndpoint.id,
        vswitchId: exampleSwitch.id,
        zoneId: example.then(example => example.zones?.[0]?.id),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    example = alicloud.get_zones(available_resource_creation="VSwitch")
    example_vpc_endpoint_service = alicloud.privatelink.VpcEndpointService("example",
        service_description=name,
        connect_bandwidth=103,
        auto_accept_connection=False)
    example_network = alicloud.vpc.Network("example",
        vpc_name=name,
        cidr_block="10.0.0.0/8")
    example_switch = alicloud.vpc.Switch("example",
        vswitch_name=name,
        cidr_block="10.1.0.0/16",
        vpc_id=example_network.id,
        zone_id=example.zones[0].id)
    example_security_group = alicloud.ecs.SecurityGroup("example",
        name=name,
        vpc_id=example_network.id)
    example_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("example",
        load_balancer_name=name,
        vswitch_id=example_switch.id,
        load_balancer_spec="slb.s2.small",
        address_type="intranet")
    example_vpc_endpoint_service_resource = alicloud.privatelink.VpcEndpointServiceResource("example",
        service_id=example_vpc_endpoint_service.id,
        resource_id=example_application_load_balancer.id,
        resource_type="slb")
    example_vpc_endpoint = alicloud.privatelink.VpcEndpoint("example",
        service_id=example_vpc_endpoint_service_resource.service_id,
        security_group_ids=[example_security_group.id],
        vpc_id=example_network.id,
        vpc_endpoint_name=name)
    example_vpc_endpoint_zone = alicloud.privatelink.VpcEndpointZone("example",
        endpoint_id=example_vpc_endpoint.id,
        vswitch_id=example_switch.id,
        zone_id=example.zones[0].id)
    
    package main
    
    import (
    	"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/privatelink"
    	"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 := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleVpcEndpointService, err := privatelink.NewVpcEndpointService(ctx, "example", &privatelink.VpcEndpointServiceArgs{
    			ServiceDescription:   pulumi.String(name),
    			ConnectBandwidth:     pulumi.Int(103),
    			AutoAcceptConnection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.1.0.0/16"),
    			VpcId:       exampleNetwork.ID(),
    			ZoneId:      pulumi.String(example.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
    			Name:  pulumi.String(name),
    			VpcId: exampleNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleApplicationLoadBalancer, err := slb.NewApplicationLoadBalancer(ctx, "example", &slb.ApplicationLoadBalancerArgs{
    			LoadBalancerName: pulumi.String(name),
    			VswitchId:        exampleSwitch.ID(),
    			LoadBalancerSpec: pulumi.String("slb.s2.small"),
    			AddressType:      pulumi.String("intranet"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVpcEndpointServiceResource, err := privatelink.NewVpcEndpointServiceResource(ctx, "example", &privatelink.VpcEndpointServiceResourceArgs{
    			ServiceId:    exampleVpcEndpointService.ID(),
    			ResourceId:   exampleApplicationLoadBalancer.ID(),
    			ResourceType: pulumi.String("slb"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVpcEndpoint, err := privatelink.NewVpcEndpoint(ctx, "example", &privatelink.VpcEndpointArgs{
    			ServiceId: exampleVpcEndpointServiceResource.ServiceId,
    			SecurityGroupIds: pulumi.StringArray{
    				exampleSecurityGroup.ID(),
    			},
    			VpcId:           exampleNetwork.ID(),
    			VpcEndpointName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = privatelink.NewVpcEndpointZone(ctx, "example", &privatelink.VpcEndpointZoneArgs{
    			EndpointId: exampleVpcEndpoint.ID(),
    			VswitchId:  exampleSwitch.ID(),
    			ZoneId:     pulumi.String(example.Zones[0].Id),
    		})
    		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") ?? "tf_example";
        var example = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var exampleVpcEndpointService = new AliCloud.PrivateLink.VpcEndpointService("example", new()
        {
            ServiceDescription = name,
            ConnectBandwidth = 103,
            AutoAcceptConnection = false,
        });
    
        var exampleNetwork = new AliCloud.Vpc.Network("example", new()
        {
            VpcName = name,
            CidrBlock = "10.0.0.0/8",
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
        {
            VswitchName = name,
            CidrBlock = "10.1.0.0/16",
            VpcId = exampleNetwork.Id,
            ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
        var exampleSecurityGroup = new AliCloud.Ecs.SecurityGroup("example", new()
        {
            Name = name,
            VpcId = exampleNetwork.Id,
        });
    
        var exampleApplicationLoadBalancer = new AliCloud.Slb.ApplicationLoadBalancer("example", new()
        {
            LoadBalancerName = name,
            VswitchId = exampleSwitch.Id,
            LoadBalancerSpec = "slb.s2.small",
            AddressType = "intranet",
        });
    
        var exampleVpcEndpointServiceResource = new AliCloud.PrivateLink.VpcEndpointServiceResource("example", new()
        {
            ServiceId = exampleVpcEndpointService.Id,
            ResourceId = exampleApplicationLoadBalancer.Id,
            ResourceType = "slb",
        });
    
        var exampleVpcEndpoint = new AliCloud.PrivateLink.VpcEndpoint("example", new()
        {
            ServiceId = exampleVpcEndpointServiceResource.ServiceId,
            SecurityGroupIds = new[]
            {
                exampleSecurityGroup.Id,
            },
            VpcId = exampleNetwork.Id,
            VpcEndpointName = name,
        });
    
        var exampleVpcEndpointZone = new AliCloud.PrivateLink.VpcEndpointZone("example", new()
        {
            EndpointId = exampleVpcEndpoint.Id,
            VswitchId = exampleSwitch.Id,
            ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        });
    
    });
    
    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.privatelink.VpcEndpointService;
    import com.pulumi.alicloud.privatelink.VpcEndpointServiceArgs;
    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.slb.ApplicationLoadBalancer;
    import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
    import com.pulumi.alicloud.privatelink.VpcEndpointServiceResource;
    import com.pulumi.alicloud.privatelink.VpcEndpointServiceResourceArgs;
    import com.pulumi.alicloud.privatelink.VpcEndpoint;
    import com.pulumi.alicloud.privatelink.VpcEndpointArgs;
    import com.pulumi.alicloud.privatelink.VpcEndpointZone;
    import com.pulumi.alicloud.privatelink.VpcEndpointZoneArgs;
    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");
            final var example = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var exampleVpcEndpointService = new VpcEndpointService("exampleVpcEndpointService", VpcEndpointServiceArgs.builder()
                .serviceDescription(name)
                .connectBandwidth(103)
                .autoAcceptConnection(false)
                .build());
    
            var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("10.0.0.0/8")
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("10.1.0.0/16")
                .vpcId(exampleNetwork.id())
                .zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
            var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
                .name(name)
                .vpcId(exampleNetwork.id())
                .build());
    
            var exampleApplicationLoadBalancer = new ApplicationLoadBalancer("exampleApplicationLoadBalancer", ApplicationLoadBalancerArgs.builder()
                .loadBalancerName(name)
                .vswitchId(exampleSwitch.id())
                .loadBalancerSpec("slb.s2.small")
                .addressType("intranet")
                .build());
    
            var exampleVpcEndpointServiceResource = new VpcEndpointServiceResource("exampleVpcEndpointServiceResource", VpcEndpointServiceResourceArgs.builder()
                .serviceId(exampleVpcEndpointService.id())
                .resourceId(exampleApplicationLoadBalancer.id())
                .resourceType("slb")
                .build());
    
            var exampleVpcEndpoint = new VpcEndpoint("exampleVpcEndpoint", VpcEndpointArgs.builder()
                .serviceId(exampleVpcEndpointServiceResource.serviceId())
                .securityGroupIds(exampleSecurityGroup.id())
                .vpcId(exampleNetwork.id())
                .vpcEndpointName(name)
                .build());
    
            var exampleVpcEndpointZone = new VpcEndpointZone("exampleVpcEndpointZone", VpcEndpointZoneArgs.builder()
                .endpointId(exampleVpcEndpoint.id())
                .vswitchId(exampleSwitch.id())
                .zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      exampleVpcEndpointService:
        type: alicloud:privatelink:VpcEndpointService
        name: example
        properties:
          serviceDescription: ${name}
          connectBandwidth: 103
          autoAcceptConnection: false
      exampleNetwork:
        type: alicloud:vpc:Network
        name: example
        properties:
          vpcName: ${name}
          cidrBlock: 10.0.0.0/8
      exampleSwitch:
        type: alicloud:vpc:Switch
        name: example
        properties:
          vswitchName: ${name}
          cidrBlock: 10.1.0.0/16
          vpcId: ${exampleNetwork.id}
          zoneId: ${example.zones[0].id}
      exampleSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        name: example
        properties:
          name: ${name}
          vpcId: ${exampleNetwork.id}
      exampleApplicationLoadBalancer:
        type: alicloud:slb:ApplicationLoadBalancer
        name: example
        properties:
          loadBalancerName: ${name}
          vswitchId: ${exampleSwitch.id}
          loadBalancerSpec: slb.s2.small
          addressType: intranet
      exampleVpcEndpointServiceResource:
        type: alicloud:privatelink:VpcEndpointServiceResource
        name: example
        properties:
          serviceId: ${exampleVpcEndpointService.id}
          resourceId: ${exampleApplicationLoadBalancer.id}
          resourceType: slb
      exampleVpcEndpoint:
        type: alicloud:privatelink:VpcEndpoint
        name: example
        properties:
          serviceId: ${exampleVpcEndpointServiceResource.serviceId}
          securityGroupIds:
            - ${exampleSecurityGroup.id}
          vpcId: ${exampleNetwork.id}
          vpcEndpointName: ${name}
      exampleVpcEndpointZone:
        type: alicloud:privatelink:VpcEndpointZone
        name: example
        properties:
          endpointId: ${exampleVpcEndpoint.id}
          vswitchId: ${exampleSwitch.id}
          zoneId: ${example.zones[0].id}
    variables:
      example:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create VpcEndpointZone Resource

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

    Constructor syntax

    new VpcEndpointZone(name: string, args: VpcEndpointZoneArgs, opts?: CustomResourceOptions);
    @overload
    def VpcEndpointZone(resource_name: str,
                        args: VpcEndpointZoneArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcEndpointZone(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        endpoint_id: Optional[str] = None,
                        vswitch_id: Optional[str] = None,
                        dry_run: Optional[bool] = None,
                        eni_ip: Optional[str] = None,
                        zone_id: Optional[str] = None)
    func NewVpcEndpointZone(ctx *Context, name string, args VpcEndpointZoneArgs, opts ...ResourceOption) (*VpcEndpointZone, error)
    public VpcEndpointZone(string name, VpcEndpointZoneArgs args, CustomResourceOptions? opts = null)
    public VpcEndpointZone(String name, VpcEndpointZoneArgs args)
    public VpcEndpointZone(String name, VpcEndpointZoneArgs args, CustomResourceOptions options)
    
    type: alicloud:privatelink:VpcEndpointZone
    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 VpcEndpointZoneArgs
    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 VpcEndpointZoneArgs
    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 VpcEndpointZoneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcEndpointZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcEndpointZoneArgs
    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 vpcEndpointZoneResource = new AliCloud.PrivateLink.VpcEndpointZone("vpcEndpointZoneResource", new()
    {
        EndpointId = "string",
        VswitchId = "string",
        DryRun = false,
        EniIp = "string",
        ZoneId = "string",
    });
    
    example, err := privatelink.NewVpcEndpointZone(ctx, "vpcEndpointZoneResource", &privatelink.VpcEndpointZoneArgs{
    	EndpointId: pulumi.String("string"),
    	VswitchId:  pulumi.String("string"),
    	DryRun:     pulumi.Bool(false),
    	EniIp:      pulumi.String("string"),
    	ZoneId:     pulumi.String("string"),
    })
    
    var vpcEndpointZoneResource = new VpcEndpointZone("vpcEndpointZoneResource", VpcEndpointZoneArgs.builder()
        .endpointId("string")
        .vswitchId("string")
        .dryRun(false)
        .eniIp("string")
        .zoneId("string")
        .build());
    
    vpc_endpoint_zone_resource = alicloud.privatelink.VpcEndpointZone("vpcEndpointZoneResource",
        endpoint_id="string",
        vswitch_id="string",
        dry_run=False,
        eni_ip="string",
        zone_id="string")
    
    const vpcEndpointZoneResource = new alicloud.privatelink.VpcEndpointZone("vpcEndpointZoneResource", {
        endpointId: "string",
        vswitchId: "string",
        dryRun: false,
        eniIp: "string",
        zoneId: "string",
    });
    
    type: alicloud:privatelink:VpcEndpointZone
    properties:
        dryRun: false
        endpointId: string
        eniIp: string
        vswitchId: string
        zoneId: string
    

    VpcEndpointZone 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 VpcEndpointZone resource accepts the following input properties:

    EndpointId string
    The endpoint ID.
    VswitchId string
    The ID of the vSwitch in the zone.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    EniIp string
    The IP address of the endpoint ENI.
    ZoneId string
    The zone ID.
    EndpointId string
    The endpoint ID.
    VswitchId string
    The ID of the vSwitch in the zone.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    EniIp string
    The IP address of the endpoint ENI.
    ZoneId string
    The zone ID.
    endpointId String
    The endpoint ID.
    vswitchId String
    The ID of the vSwitch in the zone.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    eniIp String
    The IP address of the endpoint ENI.
    zoneId String
    The zone ID.
    endpointId string
    The endpoint ID.
    vswitchId string
    The ID of the vSwitch in the zone.
    dryRun boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    eniIp string
    The IP address of the endpoint ENI.
    zoneId string
    The zone ID.
    endpoint_id str
    The endpoint ID.
    vswitch_id str
    The ID of the vSwitch in the zone.
    dry_run bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    eni_ip str
    The IP address of the endpoint ENI.
    zone_id str
    The zone ID.
    endpointId String
    The endpoint ID.
    vswitchId String
    The ID of the vSwitch in the zone.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    eniIp String
    The IP address of the endpoint ENI.
    zoneId String
    The zone ID.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The state of the zone.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The state of the zone.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The state of the zone.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The state of the zone.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The state of the zone.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The state of the zone.

    Look up Existing VpcEndpointZone Resource

    Get an existing VpcEndpointZone 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?: VpcEndpointZoneState, opts?: CustomResourceOptions): VpcEndpointZone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dry_run: Optional[bool] = None,
            endpoint_id: Optional[str] = None,
            eni_ip: Optional[str] = None,
            status: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> VpcEndpointZone
    func GetVpcEndpointZone(ctx *Context, name string, id IDInput, state *VpcEndpointZoneState, opts ...ResourceOption) (*VpcEndpointZone, error)
    public static VpcEndpointZone Get(string name, Input<string> id, VpcEndpointZoneState? state, CustomResourceOptions? opts = null)
    public static VpcEndpointZone get(String name, Output<String> id, VpcEndpointZoneState 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:
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    EndpointId string
    The endpoint ID.
    EniIp string
    The IP address of the endpoint ENI.
    Status string
    The state of the zone.
    VswitchId string
    The ID of the vSwitch in the zone.
    ZoneId string
    The zone ID.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    EndpointId string
    The endpoint ID.
    EniIp string
    The IP address of the endpoint ENI.
    Status string
    The state of the zone.
    VswitchId string
    The ID of the vSwitch in the zone.
    ZoneId string
    The zone ID.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    endpointId String
    The endpoint ID.
    eniIp String
    The IP address of the endpoint ENI.
    status String
    The state of the zone.
    vswitchId String
    The ID of the vSwitch in the zone.
    zoneId String
    The zone ID.
    dryRun boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    endpointId string
    The endpoint ID.
    eniIp string
    The IP address of the endpoint ENI.
    status string
    The state of the zone.
    vswitchId string
    The ID of the vSwitch in the zone.
    zoneId string
    The zone ID.
    dry_run bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    endpoint_id str
    The endpoint ID.
    eni_ip str
    The IP address of the endpoint ENI.
    status str
    The state of the zone.
    vswitch_id str
    The ID of the vSwitch in the zone.
    zone_id str
    The zone ID.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:
    endpointId String
    The endpoint ID.
    eniIp String
    The IP address of the endpoint ENI.
    status String
    The state of the zone.
    vswitchId String
    The ID of the vSwitch in the zone.
    zoneId String
    The zone ID.

    Import

    Private Link Vpc Endpoint Zone can be imported using the id, e.g.

    $ pulumi import alicloud:privatelink/vpcEndpointZone:VpcEndpointZone example <endpoint_id>:<zone_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.66.0 published on Friday, Nov 15, 2024 by Pulumi