1. Packages
  2. Volcengine
  3. API Docs
  4. privatelink
  5. VpcEndpointConnection
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.privatelink.VpcEndpointConnection

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage privatelink vpc endpoint connection

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooZones = Volcengine.Ecs.Zones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
        {
            SecurityGroupName = "acc-test-security-group",
            VpcId = fooVpc.Id,
        });
    
        var fooClb = new Volcengine.Clb.Clb("fooClb", new()
        {
            Type = "public",
            SubnetId = fooSubnet.Id,
            LoadBalancerSpec = "small_1",
            Description = "acc-test-demo",
            LoadBalancerName = "acc-test-clb",
            LoadBalancerBillingType = "PostPaid",
            EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
            {
                Isp = "BGP",
                EipBillingType = "PostPaidByBandwidth",
                Bandwidth = 1,
            },
            Tags = new[]
            {
                new Volcengine.Clb.Inputs.ClbTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
        var fooVpcEndpointService = new Volcengine.Privatelink.VpcEndpointService("fooVpcEndpointService", new()
        {
            Resources = new[]
            {
                new Volcengine.Privatelink.Inputs.VpcEndpointServiceResourceArgs
                {
                    ResourceId = fooClb.Id,
                    ResourceType = "CLB",
                },
            },
            Description = "acc-test",
        });
    
        var fooVpcEndpoint = new Volcengine.Privatelink.VpcEndpoint("fooVpcEndpoint", new()
        {
            SecurityGroupIds = new[]
            {
                fooSecurityGroup.Id,
            },
            ServiceId = fooVpcEndpointService.Id,
            EndpointName = "acc-test-ep",
            Description = "acc-test",
        });
    
        //resource "volcengine_privatelink_vpc_endpoint_connection" "foo" {
        //  endpoint_id = volcengine_privatelink_vpc_endpoint.foo.id
        //  service_id  = volcengine_privatelink_vpc_endpoint_service.foo.id
        //}
        var fooVpcEndpointZone = new Volcengine.Privatelink.VpcEndpointZone("fooVpcEndpointZone", new()
        {
            EndpointId = fooVpcEndpoint.Id,
            SubnetId = fooSubnet.Id,
            PrivateIpAddress = "172.16.0.251",
        });
    
        var fooVpcEndpointConnection = new Volcengine.Privatelink.VpcEndpointConnection("fooVpcEndpointConnection", new()
        {
            EndpointId = fooVpcEndpoint.Id,
            ServiceId = fooVpcEndpointService.Id,
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                fooVpcEndpointZone,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/clb"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/privatelink"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := ecs.Zones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
    			SecurityGroupName: pulumi.String("acc-test-security-group"),
    			VpcId:             fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		fooClb, err := clb.NewClb(ctx, "fooClb", &clb.ClbArgs{
    			Type:                    pulumi.String("public"),
    			SubnetId:                fooSubnet.ID(),
    			LoadBalancerSpec:        pulumi.String("small_1"),
    			Description:             pulumi.String("acc-test-demo"),
    			LoadBalancerName:        pulumi.String("acc-test-clb"),
    			LoadBalancerBillingType: pulumi.String("PostPaid"),
    			EipBillingConfig: &clb.ClbEipBillingConfigArgs{
    				Isp:            pulumi.String("BGP"),
    				EipBillingType: pulumi.String("PostPaidByBandwidth"),
    				Bandwidth:      pulumi.Int(1),
    			},
    			Tags: clb.ClbTagArray{
    				&clb.ClbTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooVpcEndpointService, err := privatelink.NewVpcEndpointService(ctx, "fooVpcEndpointService", &privatelink.VpcEndpointServiceArgs{
    			Resources: privatelink.VpcEndpointServiceResourceTypeArray{
    				&privatelink.VpcEndpointServiceResourceTypeArgs{
    					ResourceId:   fooClb.ID(),
    					ResourceType: pulumi.String("CLB"),
    				},
    			},
    			Description: pulumi.String("acc-test"),
    		})
    		if err != nil {
    			return err
    		}
    		fooVpcEndpoint, err := privatelink.NewVpcEndpoint(ctx, "fooVpcEndpoint", &privatelink.VpcEndpointArgs{
    			SecurityGroupIds: pulumi.StringArray{
    				fooSecurityGroup.ID(),
    			},
    			ServiceId:    fooVpcEndpointService.ID(),
    			EndpointName: pulumi.String("acc-test-ep"),
    			Description:  pulumi.String("acc-test"),
    		})
    		if err != nil {
    			return err
    		}
    		fooVpcEndpointZone, err := privatelink.NewVpcEndpointZone(ctx, "fooVpcEndpointZone", &privatelink.VpcEndpointZoneArgs{
    			EndpointId:       fooVpcEndpoint.ID(),
    			SubnetId:         fooSubnet.ID(),
    			PrivateIpAddress: pulumi.String("172.16.0.251"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = privatelink.NewVpcEndpointConnection(ctx, "fooVpcEndpointConnection", &privatelink.VpcEndpointConnectionArgs{
    			EndpointId: fooVpcEndpoint.ID(),
    			ServiceId:  fooVpcEndpointService.ID(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			fooVpcEndpointZone,
    		}))
    		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.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.vpc.SecurityGroup;
    import com.pulumi.volcengine.vpc.SecurityGroupArgs;
    import com.pulumi.volcengine.clb.Clb;
    import com.pulumi.volcengine.clb.ClbArgs;
    import com.pulumi.volcengine.clb.inputs.ClbEipBillingConfigArgs;
    import com.pulumi.volcengine.clb.inputs.ClbTagArgs;
    import com.pulumi.volcengine.privatelink.VpcEndpointService;
    import com.pulumi.volcengine.privatelink.VpcEndpointServiceArgs;
    import com.pulumi.volcengine.privatelink.inputs.VpcEndpointServiceResourceArgs;
    import com.pulumi.volcengine.privatelink.VpcEndpoint;
    import com.pulumi.volcengine.privatelink.VpcEndpointArgs;
    import com.pulumi.volcengine.privatelink.VpcEndpointZone;
    import com.pulumi.volcengine.privatelink.VpcEndpointZoneArgs;
    import com.pulumi.volcengine.privatelink.VpcEndpointConnection;
    import com.pulumi.volcengine.privatelink.VpcEndpointConnectionArgs;
    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 fooZones = EcsFunctions.Zones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()        
                .securityGroupName("acc-test-security-group")
                .vpcId(fooVpc.id())
                .build());
    
            var fooClb = new Clb("fooClb", ClbArgs.builder()        
                .type("public")
                .subnetId(fooSubnet.id())
                .loadBalancerSpec("small_1")
                .description("acc-test-demo")
                .loadBalancerName("acc-test-clb")
                .loadBalancerBillingType("PostPaid")
                .eipBillingConfig(ClbEipBillingConfigArgs.builder()
                    .isp("BGP")
                    .eipBillingType("PostPaidByBandwidth")
                    .bandwidth(1)
                    .build())
                .tags(ClbTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
            var fooVpcEndpointService = new VpcEndpointService("fooVpcEndpointService", VpcEndpointServiceArgs.builder()        
                .resources(VpcEndpointServiceResourceArgs.builder()
                    .resourceId(fooClb.id())
                    .resourceType("CLB")
                    .build())
                .description("acc-test")
                .build());
    
            var fooVpcEndpoint = new VpcEndpoint("fooVpcEndpoint", VpcEndpointArgs.builder()        
                .securityGroupIds(fooSecurityGroup.id())
                .serviceId(fooVpcEndpointService.id())
                .endpointName("acc-test-ep")
                .description("acc-test")
                .build());
    
            var fooVpcEndpointZone = new VpcEndpointZone("fooVpcEndpointZone", VpcEndpointZoneArgs.builder()        
                .endpointId(fooVpcEndpoint.id())
                .subnetId(fooSubnet.id())
                .privateIpAddress("172.16.0.251")
                .build());
    
            var fooVpcEndpointConnection = new VpcEndpointConnection("fooVpcEndpointConnection", VpcEndpointConnectionArgs.builder()        
                .endpointId(fooVpcEndpoint.id())
                .serviceId(fooVpcEndpointService.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(fooVpcEndpointZone)
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.ecs.zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        vpc_id=foo_vpc.id)
    foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
        security_group_name="acc-test-security-group",
        vpc_id=foo_vpc.id)
    foo_clb = volcengine.clb.Clb("fooClb",
        type="public",
        subnet_id=foo_subnet.id,
        load_balancer_spec="small_1",
        description="acc-test-demo",
        load_balancer_name="acc-test-clb",
        load_balancer_billing_type="PostPaid",
        eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
            isp="BGP",
            eip_billing_type="PostPaidByBandwidth",
            bandwidth=1,
        ),
        tags=[volcengine.clb.ClbTagArgs(
            key="k1",
            value="v1",
        )])
    foo_vpc_endpoint_service = volcengine.privatelink.VpcEndpointService("fooVpcEndpointService",
        resources=[volcengine.privatelink.VpcEndpointServiceResourceArgs(
            resource_id=foo_clb.id,
            resource_type="CLB",
        )],
        description="acc-test")
    foo_vpc_endpoint = volcengine.privatelink.VpcEndpoint("fooVpcEndpoint",
        security_group_ids=[foo_security_group.id],
        service_id=foo_vpc_endpoint_service.id,
        endpoint_name="acc-test-ep",
        description="acc-test")
    #resource "volcengine_privatelink_vpc_endpoint_connection" "foo" {
    #  endpoint_id = volcengine_privatelink_vpc_endpoint.foo.id
    #  service_id  = volcengine_privatelink_vpc_endpoint_service.foo.id
    #}
    foo_vpc_endpoint_zone = volcengine.privatelink.VpcEndpointZone("fooVpcEndpointZone",
        endpoint_id=foo_vpc_endpoint.id,
        subnet_id=foo_subnet.id,
        private_ip_address="172.16.0.251")
    foo_vpc_endpoint_connection = volcengine.privatelink.VpcEndpointConnection("fooVpcEndpointConnection",
        endpoint_id=foo_vpc_endpoint.id,
        service_id=foo_vpc_endpoint_service.id,
        opts=pulumi.ResourceOptions(depends_on=[foo_vpc_endpoint_zone]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooZones = volcengine.ecs.Zones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
        securityGroupName: "acc-test-security-group",
        vpcId: fooVpc.id,
    });
    const fooClb = new volcengine.clb.Clb("fooClb", {
        type: "public",
        subnetId: fooSubnet.id,
        loadBalancerSpec: "small_1",
        description: "acc-test-demo",
        loadBalancerName: "acc-test-clb",
        loadBalancerBillingType: "PostPaid",
        eipBillingConfig: {
            isp: "BGP",
            eipBillingType: "PostPaidByBandwidth",
            bandwidth: 1,
        },
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    const fooVpcEndpointService = new volcengine.privatelink.VpcEndpointService("fooVpcEndpointService", {
        resources: [{
            resourceId: fooClb.id,
            resourceType: "CLB",
        }],
        description: "acc-test",
    });
    const fooVpcEndpoint = new volcengine.privatelink.VpcEndpoint("fooVpcEndpoint", {
        securityGroupIds: [fooSecurityGroup.id],
        serviceId: fooVpcEndpointService.id,
        endpointName: "acc-test-ep",
        description: "acc-test",
    });
    //resource "volcengine_privatelink_vpc_endpoint_connection" "foo" {
    //  endpoint_id = volcengine_privatelink_vpc_endpoint.foo.id
    //  service_id  = volcengine_privatelink_vpc_endpoint_service.foo.id
    //}
    const fooVpcEndpointZone = new volcengine.privatelink.VpcEndpointZone("fooVpcEndpointZone", {
        endpointId: fooVpcEndpoint.id,
        subnetId: fooSubnet.id,
        privateIpAddress: "172.16.0.251",
    });
    const fooVpcEndpointConnection = new volcengine.privatelink.VpcEndpointConnection("fooVpcEndpointConnection", {
        endpointId: fooVpcEndpoint.id,
        serviceId: fooVpcEndpointService.id,
    }, {
        dependsOn: [fooVpcEndpointZone],
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          vpcId: ${fooVpc.id}
      fooSecurityGroup:
        type: volcengine:vpc:SecurityGroup
        properties:
          securityGroupName: acc-test-security-group
          vpcId: ${fooVpc.id}
      fooClb:
        type: volcengine:clb:Clb
        properties:
          type: public
          subnetId: ${fooSubnet.id}
          loadBalancerSpec: small_1
          description: acc-test-demo
          loadBalancerName: acc-test-clb
          loadBalancerBillingType: PostPaid
          eipBillingConfig:
            isp: BGP
            eipBillingType: PostPaidByBandwidth
            bandwidth: 1
          tags:
            - key: k1
              value: v1
      fooVpcEndpointService:
        type: volcengine:privatelink:VpcEndpointService
        properties:
          resources:
            - resourceId: ${fooClb.id}
              resourceType: CLB
          description: acc-test
      fooVpcEndpoint: #resource "volcengine_privatelink_vpc_endpoint_connection" "foo" {
      #  endpoint_id = volcengine_privatelink_vpc_endpoint.foo.id
      #  service_id  = volcengine_privatelink_vpc_endpoint_service.foo.id
      #}
        type: volcengine:privatelink:VpcEndpoint
        properties:
          securityGroupIds:
            - ${fooSecurityGroup.id}
          serviceId: ${fooVpcEndpointService.id}
          endpointName: acc-test-ep
          description: acc-test
      fooVpcEndpointZone:
        type: volcengine:privatelink:VpcEndpointZone
        properties:
          endpointId: ${fooVpcEndpoint.id}
          subnetId: ${fooSubnet.id}
          privateIpAddress: 172.16.0.251
      fooVpcEndpointConnection:
        type: volcengine:privatelink:VpcEndpointConnection
        properties:
          endpointId: ${fooVpcEndpoint.id}
          serviceId: ${fooVpcEndpointService.id}
        options:
          dependson:
            - ${fooVpcEndpointZone}
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
    

    Create VpcEndpointConnection Resource

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

    Constructor syntax

    new VpcEndpointConnection(name: string, args: VpcEndpointConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def VpcEndpointConnection(resource_name: str,
                              args: VpcEndpointConnectionArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcEndpointConnection(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              endpoint_id: Optional[str] = None,
                              service_id: Optional[str] = None)
    func NewVpcEndpointConnection(ctx *Context, name string, args VpcEndpointConnectionArgs, opts ...ResourceOption) (*VpcEndpointConnection, error)
    public VpcEndpointConnection(string name, VpcEndpointConnectionArgs args, CustomResourceOptions? opts = null)
    public VpcEndpointConnection(String name, VpcEndpointConnectionArgs args)
    public VpcEndpointConnection(String name, VpcEndpointConnectionArgs args, CustomResourceOptions options)
    
    type: volcengine:privatelink:VpcEndpointConnection
    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 VpcEndpointConnectionArgs
    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 VpcEndpointConnectionArgs
    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 VpcEndpointConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcEndpointConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcEndpointConnectionArgs
    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 vpcEndpointConnectionResource = new Volcengine.Privatelink.VpcEndpointConnection("vpcEndpointConnectionResource", new()
    {
        EndpointId = "string",
        ServiceId = "string",
    });
    
    example, err := privatelink.NewVpcEndpointConnection(ctx, "vpcEndpointConnectionResource", &privatelink.VpcEndpointConnectionArgs{
    	EndpointId: pulumi.String("string"),
    	ServiceId:  pulumi.String("string"),
    })
    
    var vpcEndpointConnectionResource = new VpcEndpointConnection("vpcEndpointConnectionResource", VpcEndpointConnectionArgs.builder()
        .endpointId("string")
        .serviceId("string")
        .build());
    
    vpc_endpoint_connection_resource = volcengine.privatelink.VpcEndpointConnection("vpcEndpointConnectionResource",
        endpoint_id="string",
        service_id="string")
    
    const vpcEndpointConnectionResource = new volcengine.privatelink.VpcEndpointConnection("vpcEndpointConnectionResource", {
        endpointId: "string",
        serviceId: "string",
    });
    
    type: volcengine:privatelink:VpcEndpointConnection
    properties:
        endpointId: string
        serviceId: string
    

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

    EndpointId string
    The id of the endpoint.
    ServiceId string
    The id of the security group.
    EndpointId string
    The id of the endpoint.
    ServiceId string
    The id of the security group.
    endpointId String
    The id of the endpoint.
    serviceId String
    The id of the security group.
    endpointId string
    The id of the endpoint.
    serviceId string
    The id of the security group.
    endpoint_id str
    The id of the endpoint.
    service_id str
    The id of the security group.
    endpointId String
    The id of the endpoint.
    serviceId String
    The id of the security group.

    Outputs

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

    ConnectionStatus string
    The status of the connection.
    CreationTime string
    The create time of the connection.
    EndpointOwnerAccountId string
    The account id of the vpc endpoint.
    EndpointVpcId string
    The vpc id of the vpc endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The update time of the connection.
    Zones List<Pulumi.Volcengine.Privatelink.Outputs.VpcEndpointConnectionZone>
    The available zones.
    ConnectionStatus string
    The status of the connection.
    CreationTime string
    The create time of the connection.
    EndpointOwnerAccountId string
    The account id of the vpc endpoint.
    EndpointVpcId string
    The vpc id of the vpc endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The update time of the connection.
    Zones []VpcEndpointConnectionZone
    The available zones.
    connectionStatus String
    The status of the connection.
    creationTime String
    The create time of the connection.
    endpointOwnerAccountId String
    The account id of the vpc endpoint.
    endpointVpcId String
    The vpc id of the vpc endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The update time of the connection.
    zones List<VpcEndpointConnectionZone>
    The available zones.
    connectionStatus string
    The status of the connection.
    creationTime string
    The create time of the connection.
    endpointOwnerAccountId string
    The account id of the vpc endpoint.
    endpointVpcId string
    The vpc id of the vpc endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    The update time of the connection.
    zones VpcEndpointConnectionZone[]
    The available zones.
    connection_status str
    The status of the connection.
    creation_time str
    The create time of the connection.
    endpoint_owner_account_id str
    The account id of the vpc endpoint.
    endpoint_vpc_id str
    The vpc id of the vpc endpoint.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    The update time of the connection.
    zones Sequence[VpcEndpointConnectionZone]
    The available zones.
    connectionStatus String
    The status of the connection.
    creationTime String
    The create time of the connection.
    endpointOwnerAccountId String
    The account id of the vpc endpoint.
    endpointVpcId String
    The vpc id of the vpc endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The update time of the connection.
    zones List<Property Map>
    The available zones.

    Look up Existing VpcEndpointConnection Resource

    Get an existing VpcEndpointConnection 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?: VpcEndpointConnectionState, opts?: CustomResourceOptions): VpcEndpointConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connection_status: Optional[str] = None,
            creation_time: Optional[str] = None,
            endpoint_id: Optional[str] = None,
            endpoint_owner_account_id: Optional[str] = None,
            endpoint_vpc_id: Optional[str] = None,
            service_id: Optional[str] = None,
            update_time: Optional[str] = None,
            zones: Optional[Sequence[VpcEndpointConnectionZoneArgs]] = None) -> VpcEndpointConnection
    func GetVpcEndpointConnection(ctx *Context, name string, id IDInput, state *VpcEndpointConnectionState, opts ...ResourceOption) (*VpcEndpointConnection, error)
    public static VpcEndpointConnection Get(string name, Input<string> id, VpcEndpointConnectionState? state, CustomResourceOptions? opts = null)
    public static VpcEndpointConnection get(String name, Output<String> id, VpcEndpointConnectionState 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:
    ConnectionStatus string
    The status of the connection.
    CreationTime string
    The create time of the connection.
    EndpointId string
    The id of the endpoint.
    EndpointOwnerAccountId string
    The account id of the vpc endpoint.
    EndpointVpcId string
    The vpc id of the vpc endpoint.
    ServiceId string
    The id of the security group.
    UpdateTime string
    The update time of the connection.
    Zones List<Pulumi.Volcengine.Privatelink.Inputs.VpcEndpointConnectionZone>
    The available zones.
    ConnectionStatus string
    The status of the connection.
    CreationTime string
    The create time of the connection.
    EndpointId string
    The id of the endpoint.
    EndpointOwnerAccountId string
    The account id of the vpc endpoint.
    EndpointVpcId string
    The vpc id of the vpc endpoint.
    ServiceId string
    The id of the security group.
    UpdateTime string
    The update time of the connection.
    Zones []VpcEndpointConnectionZoneArgs
    The available zones.
    connectionStatus String
    The status of the connection.
    creationTime String
    The create time of the connection.
    endpointId String
    The id of the endpoint.
    endpointOwnerAccountId String
    The account id of the vpc endpoint.
    endpointVpcId String
    The vpc id of the vpc endpoint.
    serviceId String
    The id of the security group.
    updateTime String
    The update time of the connection.
    zones List<VpcEndpointConnectionZone>
    The available zones.
    connectionStatus string
    The status of the connection.
    creationTime string
    The create time of the connection.
    endpointId string
    The id of the endpoint.
    endpointOwnerAccountId string
    The account id of the vpc endpoint.
    endpointVpcId string
    The vpc id of the vpc endpoint.
    serviceId string
    The id of the security group.
    updateTime string
    The update time of the connection.
    zones VpcEndpointConnectionZone[]
    The available zones.
    connection_status str
    The status of the connection.
    creation_time str
    The create time of the connection.
    endpoint_id str
    The id of the endpoint.
    endpoint_owner_account_id str
    The account id of the vpc endpoint.
    endpoint_vpc_id str
    The vpc id of the vpc endpoint.
    service_id str
    The id of the security group.
    update_time str
    The update time of the connection.
    zones Sequence[VpcEndpointConnectionZoneArgs]
    The available zones.
    connectionStatus String
    The status of the connection.
    creationTime String
    The create time of the connection.
    endpointId String
    The id of the endpoint.
    endpointOwnerAccountId String
    The account id of the vpc endpoint.
    endpointVpcId String
    The vpc id of the vpc endpoint.
    serviceId String
    The id of the security group.
    updateTime String
    The update time of the connection.
    zones List<Property Map>
    The available zones.

    Supporting Types

    VpcEndpointConnectionZone, VpcEndpointConnectionZoneArgs

    NetworkInterfaceId string
    The id of the network interface.
    NetworkInterfaceIp string
    The ip address of the network interface.
    ResourceId string
    The id of the resource.
    SubnetId string
    The id of the subnet.
    ZoneDomain string
    The domain of the zone.
    ZoneId string
    The id of the zone.
    ZoneStatus string
    The status of the zone.
    NetworkInterfaceId string
    The id of the network interface.
    NetworkInterfaceIp string
    The ip address of the network interface.
    ResourceId string
    The id of the resource.
    SubnetId string
    The id of the subnet.
    ZoneDomain string
    The domain of the zone.
    ZoneId string
    The id of the zone.
    ZoneStatus string
    The status of the zone.
    networkInterfaceId String
    The id of the network interface.
    networkInterfaceIp String
    The ip address of the network interface.
    resourceId String
    The id of the resource.
    subnetId String
    The id of the subnet.
    zoneDomain String
    The domain of the zone.
    zoneId String
    The id of the zone.
    zoneStatus String
    The status of the zone.
    networkInterfaceId string
    The id of the network interface.
    networkInterfaceIp string
    The ip address of the network interface.
    resourceId string
    The id of the resource.
    subnetId string
    The id of the subnet.
    zoneDomain string
    The domain of the zone.
    zoneId string
    The id of the zone.
    zoneStatus string
    The status of the zone.
    network_interface_id str
    The id of the network interface.
    network_interface_ip str
    The ip address of the network interface.
    resource_id str
    The id of the resource.
    subnet_id str
    The id of the subnet.
    zone_domain str
    The domain of the zone.
    zone_id str
    The id of the zone.
    zone_status str
    The status of the zone.
    networkInterfaceId String
    The id of the network interface.
    networkInterfaceIp String
    The ip address of the network interface.
    resourceId String
    The id of the resource.
    subnetId String
    The id of the subnet.
    zoneDomain String
    The domain of the zone.
    zoneId String
    The id of the zone.
    zoneStatus String
    The status of the zone.

    Import

    PrivateLink Vpc Endpoint Connection Service can be imported using the endpoint id and service id, e.g.

     $ pulumi import volcengine:privatelink/vpcEndpointConnection:VpcEndpointConnection default ep-3rel74u229dz45zsk2i6l69qa:epsvc-2byz5mykk9y4g2dx0efs4aqz3
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine