"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.snapshotsOutput = exports.snapshots = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of ebs snapshots
 * ## 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 = new volcengine.ebs.Volume("fooVolume", {
 *     volumeName: "acc-test-volume",
 *     volumeType: "ESSD_PL0",
 *     description: "acc-test",
 *     kind: "data",
 *     size: 500,
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     volumeChargeType: "PostPaid",
 *     projectName: "default",
 * });
 * const fooSnapshot: volcengine.ebs.Snapshot[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooSnapshot.push(new volcengine.ebs.Snapshot(`fooSnapshot-${range.value}`, {
 *         volumeId: fooVolume.id,
 *         snapshotName: "acc-test-snapshot",
 *         description: "acc-test",
 *         retentionDays: 3,
 *         projectName: "default",
 *         tags: [{
 *             key: "k1",
 *             value: "v1",
 *         }],
 *     }));
 * }
 * const fooSnapshots = volcengine.ebs.getSnapshotsOutput({
 *     ids: fooSnapshot.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.ebs.Snapshots has been deprecated in favor of volcengine.ebs.getSnapshots */
function snapshots(args, opts) {
    pulumi.log.warn("snapshots is deprecated: volcengine.ebs.Snapshots has been deprecated in favor of volcengine.ebs.getSnapshots");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:ebs/snapshots:Snapshots", {
        "ids": args.ids,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "projectName": args.projectName,
        "snapshotStatuses": args.snapshotStatuses,
        "tags": args.tags,
        "zoneId": args.zoneId,
    }, opts);
}
exports.snapshots = snapshots;
/**
 * Use this data source to query detailed information of ebs snapshots
 * ## 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 = new volcengine.ebs.Volume("fooVolume", {
 *     volumeName: "acc-test-volume",
 *     volumeType: "ESSD_PL0",
 *     description: "acc-test",
 *     kind: "data",
 *     size: 500,
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     volumeChargeType: "PostPaid",
 *     projectName: "default",
 * });
 * const fooSnapshot: volcengine.ebs.Snapshot[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooSnapshot.push(new volcengine.ebs.Snapshot(`fooSnapshot-${range.value}`, {
 *         volumeId: fooVolume.id,
 *         snapshotName: "acc-test-snapshot",
 *         description: "acc-test",
 *         retentionDays: 3,
 *         projectName: "default",
 *         tags: [{
 *             key: "k1",
 *             value: "v1",
 *         }],
 *     }));
 * }
 * const fooSnapshots = volcengine.ebs.getSnapshotsOutput({
 *     ids: fooSnapshot.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.ebs.Snapshots has been deprecated in favor of volcengine.ebs.getSnapshots */
function snapshotsOutput(args, opts) {
    return pulumi.output(args).apply((a) => snapshots(a, opts));
}
exports.snapshotsOutput = snapshotsOutput;
//# sourceMappingURL=snapshots.js.map