"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.albsOutput = exports.albs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of albs
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.alb.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const subnet1 = new volcengine.vpc.Subnet("subnet1", {
 *     subnetName: "acc-test-subnet-1",
 *     cidrBlock: "172.16.1.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const subnet2 = new volcengine.vpc.Subnet("subnet2", {
 *     subnetName: "acc-test-subnet-2",
 *     cidrBlock: "172.16.2.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooAlb: volcengine.alb.Alb[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooAlb.push(new volcengine.alb.Alb(`fooAlb-${range.value}`, {
 *         addressIpVersion: "IPv4",
 *         type: "private",
 *         loadBalancerName: `acc-test-alb-private-${range.value}`,
 *         description: "acc-test",
 *         subnetIds: [
 *             subnet1.id,
 *             subnet2.id,
 *         ],
 *         projectName: "default",
 *         deleteProtection: "off",
 *         tags: [{
 *             key: "k1",
 *             value: "v1",
 *         }],
 *     }));
 * }
 * const fooAlbs = volcengine.alb.getAlbsOutput({
 *     ids: fooAlb.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.alb.Albs has been deprecated in favor of volcengine.alb.getAlbs */
function albs(args, opts) {
    pulumi.log.warn("albs is deprecated: volcengine.alb.Albs has been deprecated in favor of volcengine.alb.getAlbs");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:alb/albs:Albs", {
        "eipAddress": args.eipAddress,
        "eniAddress": args.eniAddress,
        "ids": args.ids,
        "loadBalancerName": args.loadBalancerName,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "project": args.project,
        "tags": args.tags,
        "type": args.type,
        "vpcId": args.vpcId,
    }, opts);
}
exports.albs = albs;
/**
 * Use this data source to query detailed information of albs
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.alb.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const subnet1 = new volcengine.vpc.Subnet("subnet1", {
 *     subnetName: "acc-test-subnet-1",
 *     cidrBlock: "172.16.1.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const subnet2 = new volcengine.vpc.Subnet("subnet2", {
 *     subnetName: "acc-test-subnet-2",
 *     cidrBlock: "172.16.2.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooAlb: volcengine.alb.Alb[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooAlb.push(new volcengine.alb.Alb(`fooAlb-${range.value}`, {
 *         addressIpVersion: "IPv4",
 *         type: "private",
 *         loadBalancerName: `acc-test-alb-private-${range.value}`,
 *         description: "acc-test",
 *         subnetIds: [
 *             subnet1.id,
 *             subnet2.id,
 *         ],
 *         projectName: "default",
 *         deleteProtection: "off",
 *         tags: [{
 *             key: "k1",
 *             value: "v1",
 *         }],
 *     }));
 * }
 * const fooAlbs = volcengine.alb.getAlbsOutput({
 *     ids: fooAlb.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.alb.Albs has been deprecated in favor of volcengine.alb.getAlbs */
function albsOutput(args, opts) {
    return pulumi.output(args).apply((a) => albs(a, opts));
}
exports.albsOutput = albsOutput;
//# sourceMappingURL=albs.js.map