"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.permissionSetsOutput = exports.permissionSets = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cloud identity permission sets
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooPermissionSet: volcengine.cloud_identity.PermissionSet[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooPermissionSet.push(new volcengine.cloud_identity.PermissionSet(`fooPermissionSet-${range.value}`, {
 *         description: "tf",
 *         sessionDuration: 5000,
 *         permissionPolicies: [
 *             {
 *                 permissionPolicyType: "System",
 *                 permissionPolicyName: "AdministratorAccess",
 *                 inlinePolicyDocument: "",
 *             },
 *             {
 *                 permissionPolicyType: "System",
 *                 permissionPolicyName: "ReadOnlyAccess",
 *                 inlinePolicyDocument: "",
 *             },
 *             {
 *                 permissionPolicyType: "Inline",
 *                 inlinePolicyDocument: "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
 *             },
 *         ],
 *     }));
 * }
 * const fooPermissionSets = volcengine.cloud_identity.getPermissionSetsOutput({
 *     ids: fooPermissionSet.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.cloud_identity.PermissionSets has been deprecated in favor of volcengine.cloud_identity.getPermissionSets */
function permissionSets(args, opts) {
    pulumi.log.warn("permissionSets is deprecated: volcengine.cloud_identity.PermissionSets has been deprecated in favor of volcengine.cloud_identity.getPermissionSets");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cloud_identity/permissionSets:PermissionSets", {
        "ids": args.ids,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
    }, opts);
}
exports.permissionSets = permissionSets;
/**
 * Use this data source to query detailed information of cloud identity permission sets
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooPermissionSet: volcengine.cloud_identity.PermissionSet[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     fooPermissionSet.push(new volcengine.cloud_identity.PermissionSet(`fooPermissionSet-${range.value}`, {
 *         description: "tf",
 *         sessionDuration: 5000,
 *         permissionPolicies: [
 *             {
 *                 permissionPolicyType: "System",
 *                 permissionPolicyName: "AdministratorAccess",
 *                 inlinePolicyDocument: "",
 *             },
 *             {
 *                 permissionPolicyType: "System",
 *                 permissionPolicyName: "ReadOnlyAccess",
 *                 inlinePolicyDocument: "",
 *             },
 *             {
 *                 permissionPolicyType: "Inline",
 *                 inlinePolicyDocument: "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
 *             },
 *         ],
 *     }));
 * }
 * const fooPermissionSets = volcengine.cloud_identity.getPermissionSetsOutput({
 *     ids: fooPermissionSet.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.cloud_identity.PermissionSets has been deprecated in favor of volcengine.cloud_identity.getPermissionSets */
function permissionSetsOutput(args, opts) {
    return pulumi.output(args).apply((a) => permissionSets(a, opts));
}
exports.permissionSetsOutput = permissionSetsOutput;
//# sourceMappingURL=permissionSets.js.map