"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.topicsOutput = exports.topics = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of rocketmq topics
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.rocketmq.getTopics({
 *     instanceId: "rocketmq-cnoeea6b32118fc2",
 * });
 * ```
 */
/** @deprecated volcengine.rocketmq.Topics has been deprecated in favor of volcengine.rocketmq.getTopics */
function topics(args, opts) {
    pulumi.log.warn("topics is deprecated: volcengine.rocketmq.Topics has been deprecated in favor of volcengine.rocketmq.getTopics");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:rocketmq/topics:Topics", {
        "instanceId": args.instanceId,
        "messageType": args.messageType,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "topicName": args.topicName,
    }, opts);
}
exports.topics = topics;
/**
 * Use this data source to query detailed information of rocketmq topics
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.rocketmq.getTopics({
 *     instanceId: "rocketmq-cnoeea6b32118fc2",
 * });
 * ```
 */
/** @deprecated volcengine.rocketmq.Topics has been deprecated in favor of volcengine.rocketmq.getTopics */
function topicsOutput(args, opts) {
    return pulumi.output(args).apply((a) => topics(a, opts));
}
exports.topicsOutput = topicsOutput;
//# sourceMappingURL=topics.js.map