"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.getBandwidthPackagesOutput = exports.getBandwidthPackages = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cen bandwidth packages
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooBandwidthPackage: volcengine.cen.BandwidthPackage[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooBandwidthPackage.push(new volcengine.cen.BandwidthPackage(`fooBandwidthPackage-${range.value}`, {
 *         localGeographicRegionSetId: "China",
 *         peerGeographicRegionSetId: "China",
 *         bandwidth: 2,
 *         cenBandwidthPackageName: `acc-test-cen-bp-${range.value}`,
 *         description: "acc-test",
 *         billingType: "PrePaid",
 *         periodUnit: "Month",
 *         period: 1,
 *         projectName: "default",
 *         tags: [{
 *             key: "k1",
 *             value: "v1",
 *         }],
 *     }));
 * }
 * const fooBandwidthPackages = volcengine.cen.getBandwidthPackagesOutput({
 *     ids: fooBandwidthPackage.map(__item => __item.id),
 * });
 * ```
 */
function getBandwidthPackages(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cen/getBandwidthPackages:getBandwidthPackages", {
        "cenBandwidthPackageNames": args.cenBandwidthPackageNames,
        "cenId": args.cenId,
        "ids": args.ids,
        "localGeographicRegionSetId": args.localGeographicRegionSetId,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "peerGeographicRegionSetId": args.peerGeographicRegionSetId,
        "tags": args.tags,
    }, opts);
}
exports.getBandwidthPackages = getBandwidthPackages;
/**
 * Use this data source to query detailed information of cen bandwidth packages
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooBandwidthPackage: volcengine.cen.BandwidthPackage[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooBandwidthPackage.push(new volcengine.cen.BandwidthPackage(`fooBandwidthPackage-${range.value}`, {
 *         localGeographicRegionSetId: "China",
 *         peerGeographicRegionSetId: "China",
 *         bandwidth: 2,
 *         cenBandwidthPackageName: `acc-test-cen-bp-${range.value}`,
 *         description: "acc-test",
 *         billingType: "PrePaid",
 *         periodUnit: "Month",
 *         period: 1,
 *         projectName: "default",
 *         tags: [{
 *             key: "k1",
 *             value: "v1",
 *         }],
 *     }));
 * }
 * const fooBandwidthPackages = volcengine.cen.getBandwidthPackagesOutput({
 *     ids: fooBandwidthPackage.map(__item => __item.id),
 * });
 * ```
 */
function getBandwidthPackagesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getBandwidthPackages(a, opts));
}
exports.getBandwidthPackagesOutput = getBandwidthPackagesOutput;
//# sourceMappingURL=getBandwidthPackages.js.map