"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.getVolumesOutput = exports.getVolumes = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of volumes
 * ## 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 fooVolume: volcengine.ebs.Volume[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooVolume.push(new volcengine.ebs.Volume(`fooVolume-${range.value}`, {
 *         volumeName: `acc-test-volume-${range.value}`,
 *         volumeType: "ESSD_PL0",
 *         description: "acc-test",
 *         kind: "data",
 *         size: 60,
 *         zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *         volumeChargeType: "PostPaid",
 *         projectName: "default",
 *     }));
 * }
 * const fooVolumes = volcengine.ebs.getVolumesOutput({
 *     ids: fooVolume.map(__item => __item.id),
 * });
 * ```
 */
function getVolumes(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:ebs/getVolumes:getVolumes", {
        "ids": args.ids,
        "instanceId": args.instanceId,
        "kind": args.kind,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "tags": args.tags,
        "volumeName": args.volumeName,
        "volumeStatus": args.volumeStatus,
        "volumeType": args.volumeType,
        "zoneId": args.zoneId,
    }, opts);
}
exports.getVolumes = getVolumes;
/**
 * Use this data source to query detailed information of volumes
 * ## 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 fooVolume: volcengine.ebs.Volume[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooVolume.push(new volcengine.ebs.Volume(`fooVolume-${range.value}`, {
 *         volumeName: `acc-test-volume-${range.value}`,
 *         volumeType: "ESSD_PL0",
 *         description: "acc-test",
 *         kind: "data",
 *         size: 60,
 *         zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *         volumeChargeType: "PostPaid",
 *         projectName: "default",
 *     }));
 * }
 * const fooVolumes = volcengine.ebs.getVolumesOutput({
 *     ids: fooVolume.map(__item => __item.id),
 * });
 * ```
 */
function getVolumesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getVolumes(a, opts));
}
exports.getVolumesOutput = getVolumesOutput;
//# sourceMappingURL=getVolumes.js.map