"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.permissionGroupsOutput = exports.permissionGroups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of nas permission groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const foo = new volcengine.nas.PermissionGroup("foo", {
 *     permissionGroupName: "acc-test",
 *     description: "acctest",
 *     permissionRules: [
 *         {
 *             cidrIp: "*",
 *             rwMode: "RW",
 *             useMode: "All_squash",
 *         },
 *         {
 *             cidrIp: "192.168.0.0",
 *             rwMode: "RO",
 *             useMode: "All_squash",
 *         },
 *     ],
 * });
 * const default = volcengine.nas.getPermissionGroupsOutput({
 *     filters: [{
 *         key: "PermissionGroupId",
 *         value: foo.id,
 *     }],
 * });
 * ```
 */
/** @deprecated volcengine.nas.PermissionGroups has been deprecated in favor of volcengine.nas.getPermissionGroups */
function permissionGroups(args, opts) {
    pulumi.log.warn("permissionGroups is deprecated: volcengine.nas.PermissionGroups has been deprecated in favor of volcengine.nas.getPermissionGroups");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:nas/permissionGroups:PermissionGroups", {
        "filters": args.filters,
        "outputFile": args.outputFile,
    }, opts);
}
exports.permissionGroups = permissionGroups;
/**
 * Use this data source to query detailed information of nas permission groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const foo = new volcengine.nas.PermissionGroup("foo", {
 *     permissionGroupName: "acc-test",
 *     description: "acctest",
 *     permissionRules: [
 *         {
 *             cidrIp: "*",
 *             rwMode: "RW",
 *             useMode: "All_squash",
 *         },
 *         {
 *             cidrIp: "192.168.0.0",
 *             rwMode: "RO",
 *             useMode: "All_squash",
 *         },
 *     ],
 * });
 * const default = volcengine.nas.getPermissionGroupsOutput({
 *     filters: [{
 *         key: "PermissionGroupId",
 *         value: foo.id,
 *     }],
 * });
 * ```
 */
/** @deprecated volcengine.nas.PermissionGroups has been deprecated in favor of volcengine.nas.getPermissionGroups */
function permissionGroupsOutput(args, opts) {
    return pulumi.output(args).apply((a) => permissionGroups(a, opts));
}
exports.permissionGroupsOutput = permissionGroupsOutput;
//# sourceMappingURL=permissionGroups.js.map