"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.groupsOutput = exports.groups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cloud identity groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooGroup: volcengine.cloud_identity.Group[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooGroup.push(new volcengine.cloud_identity.Group(`fooGroup-${range.value}`, {
 *         description: "tf",
 *         displayName: `tf-test-group-${range.value}`,
 *         groupName: `acc-test-group-${range.value}`,
 *         joinType: "Manual",
 *     }));
 * }
 * const fooGroups = volcengine.cloud_identity.getGroups({
 *     groupName: "acc-test-group",
 *     joinType: "Manual",
 * });
 * ```
 */
/** @deprecated volcengine.cloud_identity.Groups has been deprecated in favor of volcengine.cloud_identity.getGroups */
function groups(args, opts) {
    pulumi.log.warn("groups is deprecated: volcengine.cloud_identity.Groups has been deprecated in favor of volcengine.cloud_identity.getGroups");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cloud_identity/groups:Groups", {
        "displayName": args.displayName,
        "groupName": args.groupName,
        "joinType": args.joinType,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
    }, opts);
}
exports.groups = groups;
/**
 * Use this data source to query detailed information of cloud identity groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooGroup: volcengine.cloud_identity.Group[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooGroup.push(new volcengine.cloud_identity.Group(`fooGroup-${range.value}`, {
 *         description: "tf",
 *         displayName: `tf-test-group-${range.value}`,
 *         groupName: `acc-test-group-${range.value}`,
 *         joinType: "Manual",
 *     }));
 * }
 * const fooGroups = volcengine.cloud_identity.getGroups({
 *     groupName: "acc-test-group",
 *     joinType: "Manual",
 * });
 * ```
 */
/** @deprecated volcengine.cloud_identity.Groups has been deprecated in favor of volcengine.cloud_identity.getGroups */
function groupsOutput(args, opts) {
    return pulumi.output(args).apply((a) => groups(a, opts));
}
exports.groupsOutput = groupsOutput;
//# sourceMappingURL=groups.js.map