"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.getRulesOutput = exports.getRules = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cloud monitor rules
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.cloud_monitor.getRules({
 *     ids: ["174402785374661****"],
 * });
 * ```
 */
function getRules(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cloud_monitor/getRules:getRules", {
        "alertStates": args.alertStates,
        "enableStates": args.enableStates,
        "ids": args.ids,
        "levels": args.levels,
        "nameRegex": args.nameRegex,
        "namespaces": args.namespaces,
        "outputFile": args.outputFile,
        "ruleName": args.ruleName,
        "tags": args.tags,
    }, opts);
}
exports.getRules = getRules;
/**
 * Use this data source to query detailed information of cloud monitor rules
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.cloud_monitor.getRules({
 *     ids: ["174402785374661****"],
 * });
 * ```
 */
function getRulesOutput(args, opts) {
    return pulumi.output(args).apply((a) => getRules(a, opts));
}
exports.getRulesOutput = getRulesOutput;
//# sourceMappingURL=getRules.js.map