"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVpcEndpointConnectionsOutput = exports.getVpcEndpointConnections = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of privatelink vpc endpoint connections
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * 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",
 * });
 * 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],
 * });
 * const fooVpcEndpointConnections = volcengine.privatelink.getVpcEndpointConnectionsOutput({
 *     endpointId: fooVpcEndpointConnection.endpointId,
 *     serviceId: fooVpcEndpointConnection.serviceId,
 * });
 * ```
 */
function getVpcEndpointConnections(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", {
        "endpointId": args.endpointId,
        "endpointOwnerAccountId": args.endpointOwnerAccountId,
        "outputFile": args.outputFile,
        "serviceId": args.serviceId,
    }, opts);
}
exports.getVpcEndpointConnections = getVpcEndpointConnections;
/**
 * Use this data source to query detailed information of privatelink vpc endpoint connections
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * 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",
 * });
 * 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],
 * });
 * const fooVpcEndpointConnections = volcengine.privatelink.getVpcEndpointConnectionsOutput({
 *     endpointId: fooVpcEndpointConnection.endpointId,
 *     serviceId: fooVpcEndpointConnection.serviceId,
 * });
 * ```
 */
function getVpcEndpointConnectionsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getVpcEndpointConnections(a, opts));
}
exports.getVpcEndpointConnectionsOutput = getVpcEndpointConnectionsOutput;
//# sourceMappingURL=getVpcEndpointConnections.js.map