1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. privatelink
  5. VpcEndpointServiceConnection
Alibaba Cloud v3.52.1 published on Thursday, Apr 4, 2024 by Pulumi

alicloud.privatelink.VpcEndpointServiceConnection

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.52.1 published on Thursday, Apr 4, 2024 by Pulumi

    Provides a Private Link Vpc Endpoint Connection resource. vpc endpoint connection.

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

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

    Create VpcEndpointServiceConnection Resource

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

    Constructor syntax

    new VpcEndpointServiceConnection(name: string, args: VpcEndpointServiceConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def VpcEndpointServiceConnection(resource_name: str,
                                     args: VpcEndpointServiceConnectionArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcEndpointServiceConnection(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     endpoint_id: Optional[str] = None,
                                     service_id: Optional[str] = None,
                                     bandwidth: Optional[int] = None,
                                     dry_run: Optional[bool] = None)
    func NewVpcEndpointServiceConnection(ctx *Context, name string, args VpcEndpointServiceConnectionArgs, opts ...ResourceOption) (*VpcEndpointServiceConnection, error)
    public VpcEndpointServiceConnection(string name, VpcEndpointServiceConnectionArgs args, CustomResourceOptions? opts = null)
    public VpcEndpointServiceConnection(String name, VpcEndpointServiceConnectionArgs args)
    public VpcEndpointServiceConnection(String name, VpcEndpointServiceConnectionArgs args, CustomResourceOptions options)
    
    type: alicloud:privatelink:VpcEndpointServiceConnection
    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 VpcEndpointServiceConnectionArgs
    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 VpcEndpointServiceConnectionArgs
    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 VpcEndpointServiceConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcEndpointServiceConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcEndpointServiceConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var vpcEndpointServiceConnectionResource = new AliCloud.PrivateLink.VpcEndpointServiceConnection("vpcEndpointServiceConnectionResource", new()
    {
        EndpointId = "string",
        ServiceId = "string",
        Bandwidth = 0,
        DryRun = false,
    });
    
    example, err := privatelink.NewVpcEndpointServiceConnection(ctx, "vpcEndpointServiceConnectionResource", &privatelink.VpcEndpointServiceConnectionArgs{
    	EndpointId: pulumi.String("string"),
    	ServiceId:  pulumi.String("string"),
    	Bandwidth:  pulumi.Int(0),
    	DryRun:     pulumi.Bool(false),
    })
    
    var vpcEndpointServiceConnectionResource = new VpcEndpointServiceConnection("vpcEndpointServiceConnectionResource", VpcEndpointServiceConnectionArgs.builder()        
        .endpointId("string")
        .serviceId("string")
        .bandwidth(0)
        .dryRun(false)
        .build());
    
    vpc_endpoint_service_connection_resource = alicloud.privatelink.VpcEndpointServiceConnection("vpcEndpointServiceConnectionResource",
        endpoint_id="string",
        service_id="string",
        bandwidth=0,
        dry_run=False)
    
    const vpcEndpointServiceConnectionResource = new alicloud.privatelink.VpcEndpointServiceConnection("vpcEndpointServiceConnectionResource", {
        endpointId: "string",
        serviceId: "string",
        bandwidth: 0,
        dryRun: false,
    });
    
    type: alicloud:privatelink:VpcEndpointServiceConnection
    properties:
        bandwidth: 0
        dryRun: false
        endpointId: string
        serviceId: string
    

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

    EndpointId string
    The endpoint ID.
    ServiceId string
    The endpoint service ID.
    Bandwidth int
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    EndpointId string
    The endpoint ID.
    ServiceId string
    The endpoint service ID.
    Bandwidth int
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpointId String
    The endpoint ID.
    serviceId String
    The endpoint service ID.
    bandwidth Integer
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpointId string
    The endpoint ID.
    serviceId string
    The endpoint service ID.
    bandwidth number
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dryRun boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpoint_id str
    The endpoint ID.
    service_id str
    The endpoint service ID.
    bandwidth int
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dry_run bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpointId String
    The endpoint ID.
    serviceId String
    The endpoint service ID.
    bandwidth Number
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.

    Outputs

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

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

    Look up Existing VpcEndpointServiceConnection Resource

    Get an existing VpcEndpointServiceConnection 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?: VpcEndpointServiceConnectionState, opts?: CustomResourceOptions): VpcEndpointServiceConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bandwidth: Optional[int] = None,
            dry_run: Optional[bool] = None,
            endpoint_id: Optional[str] = None,
            service_id: Optional[str] = None,
            status: Optional[str] = None) -> VpcEndpointServiceConnection
    func GetVpcEndpointServiceConnection(ctx *Context, name string, id IDInput, state *VpcEndpointServiceConnectionState, opts ...ResourceOption) (*VpcEndpointServiceConnection, error)
    public static VpcEndpointServiceConnection Get(string name, Input<string> id, VpcEndpointServiceConnectionState? state, CustomResourceOptions? opts = null)
    public static VpcEndpointServiceConnection get(String name, Output<String> id, VpcEndpointServiceConnectionState 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:
    Bandwidth int
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    EndpointId string
    The endpoint ID.
    ServiceId string
    The endpoint service ID.
    Status string
    The state of the endpoint connection.
    Bandwidth int
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    DryRun bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    EndpointId string
    The endpoint ID.
    ServiceId string
    The endpoint service ID.
    Status string
    The state of the endpoint connection.
    bandwidth Integer
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpointId String
    The endpoint ID.
    serviceId String
    The endpoint service ID.
    status String
    The state of the endpoint connection.
    bandwidth number
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dryRun boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpointId string
    The endpoint ID.
    serviceId string
    The endpoint service ID.
    status string
    The state of the endpoint connection.
    bandwidth int
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dry_run bool
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpoint_id str
    The endpoint ID.
    service_id str
    The endpoint service ID.
    status str
    The state of the endpoint connection.
    bandwidth Number
    The bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.Note: The bandwidth of an endpoint connection is in the range of 100 to 10,240 Mbit/s. The default bandwidth is 1,024 Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is 1,024 to 10,240 Mbit/s.
    dryRun Boolean
    Specifies whether to perform only a dry run, without performing the actual request. Valid values:

    • true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
    • false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
    endpointId String
    The endpoint ID.
    serviceId String
    The endpoint service ID.
    status String
    The state of the endpoint connection.

    Import

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

    $ pulumi import alicloud:privatelink/vpcEndpointServiceConnection:VpcEndpointServiceConnection example <service_id>:<endpoint_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.52.1 published on Thursday, Apr 4, 2024 by Pulumi