"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.getUsersOutput = exports.getUsers = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cloud identity users
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooUser: volcengine.cloud_identity.User[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooUser.push(new volcengine.cloud_identity.User(`fooUser-${range.value}`, {
 *         description: "tf",
 *         displayName: `tf-test-user-${range.value}`,
 *         email: "88@qq.com",
 *         phone: "181",
 *         userName: `acc-test-user-${range.value}`,
 *     }));
 * }
 * const fooUsers = volcengine.cloud_identity.getUsers({
 *     source: "Manual",
 *     userName: "acc-test-user",
 * });
 * ```
 */
function getUsers(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cloud_identity/getUsers:getUsers", {
        "departmentId": args.departmentId,
        "displayName": args.displayName,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "source": args.source,
        "userName": args.userName,
    }, opts);
}
exports.getUsers = getUsers;
/**
 * Use this data source to query detailed information of cloud identity users
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooUser: volcengine.cloud_identity.User[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooUser.push(new volcengine.cloud_identity.User(`fooUser-${range.value}`, {
 *         description: "tf",
 *         displayName: `tf-test-user-${range.value}`,
 *         email: "88@qq.com",
 *         phone: "181",
 *         userName: `acc-test-user-${range.value}`,
 *     }));
 * }
 * const fooUsers = volcengine.cloud_identity.getUsers({
 *     source: "Manual",
 *     userName: "acc-test-user",
 * });
 * ```
 */
function getUsersOutput(args, opts) {
    return pulumi.output(args).apply((a) => getUsers(a, opts));
}
exports.getUsersOutput = getUsersOutput;
//# sourceMappingURL=getUsers.js.map