"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.getRuleFilesOutput = exports.getRuleFiles = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of vmp rule files
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooWorkspace = new volcengine.vmp.Workspace("fooWorkspace", {
 *     instanceTypeId: "vmp.standard.15d",
 *     deleteProtectionEnabled: false,
 *     description: "acc-test-1",
 *     username: "admin123",
 *     password: "*********",
 * });
 * const fooRuleFile = new volcengine.vmp.RuleFile("fooRuleFile", {
 *     workspaceId: fooWorkspace.id,
 *     description: "acc-test-1",
 *     content: `groups:
 *     - interval: 10s
 *       name: recording_rules
 *       rules:
 *         - expr: sum(irate(container_cpu_usage_seconds_total{image!=""}[5m])) by (pod) *100
 *           labels:
 *             team: operations
 *           record: pod:cpu:useage
 * `,
 * });
 * const fooRuleFiles = volcengine.vmp.getRuleFilesOutput({
 *     ids: [fooRuleFile.ruleFileId],
 *     workspaceId: fooWorkspace.id,
 * });
 * ```
 */
function getRuleFiles(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vmp/getRuleFiles:getRuleFiles", {
        "ids": args.ids,
        "name": args.name,
        "outputFile": args.outputFile,
        "status": args.status,
        "workspaceId": args.workspaceId,
    }, opts);
}
exports.getRuleFiles = getRuleFiles;
/**
 * Use this data source to query detailed information of vmp rule files
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooWorkspace = new volcengine.vmp.Workspace("fooWorkspace", {
 *     instanceTypeId: "vmp.standard.15d",
 *     deleteProtectionEnabled: false,
 *     description: "acc-test-1",
 *     username: "admin123",
 *     password: "*********",
 * });
 * const fooRuleFile = new volcengine.vmp.RuleFile("fooRuleFile", {
 *     workspaceId: fooWorkspace.id,
 *     description: "acc-test-1",
 *     content: `groups:
 *     - interval: 10s
 *       name: recording_rules
 *       rules:
 *         - expr: sum(irate(container_cpu_usage_seconds_total{image!=""}[5m])) by (pod) *100
 *           labels:
 *             team: operations
 *           record: pod:cpu:useage
 * `,
 * });
 * const fooRuleFiles = volcengine.vmp.getRuleFilesOutput({
 *     ids: [fooRuleFile.ruleFileId],
 *     workspaceId: fooWorkspace.id,
 * });
 * ```
 */
function getRuleFilesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getRuleFiles(a, opts));
}
exports.getRuleFilesOutput = getRuleFilesOutput;
//# sourceMappingURL=getRuleFiles.js.map