"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.consumerGroupsOutput = exports.consumerGroups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of tls consumer groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const all = volcengine.tls.getConsumerGroups({});
 * export const allConsumerGroups = all.then(all => all.consumerGroups);
 * const byName = volcengine.tls.getConsumerGroups({
 *     consumerGroupName: "test-consumer-group",
 * });
 * export const byNameConsumerGroups = byName.then(byName => byName.consumerGroups);
 * const byProject = volcengine.tls.getConsumerGroups({
 *     projectId: "project-123456",
 * });
 * export const byProjectConsumerGroups = byProject.then(byProject => byProject.consumerGroups);
 * const byTopic = volcengine.tls.getConsumerGroups({
 *     topicId: "topic-123456",
 * });
 * export const byTopicConsumerGroups = byTopic.then(byTopic => byTopic.consumerGroups);
 * const withMultipleFilters = volcengine.tls.getConsumerGroups({
 *     projectId: "project-123456",
 *     consumerGroupName: "test",
 * });
 * export const multipleFiltersConsumerGroups = withMultipleFilters.then(withMultipleFilters => withMultipleFilters.consumerGroups);
 * ```
 */
/** @deprecated volcengine.tls.ConsumerGroups has been deprecated in favor of volcengine.tls.getConsumerGroups */
function consumerGroups(args, opts) {
    pulumi.log.warn("consumerGroups is deprecated: volcengine.tls.ConsumerGroups has been deprecated in favor of volcengine.tls.getConsumerGroups");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:tls/consumerGroups:ConsumerGroups", {
        "consumerGroupName": args.consumerGroupName,
        "iamProjectName": args.iamProjectName,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "projectId": args.projectId,
        "projectName": args.projectName,
        "topicId": args.topicId,
        "topicName": args.topicName,
    }, opts);
}
exports.consumerGroups = consumerGroups;
/**
 * Use this data source to query detailed information of tls consumer groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const all = volcengine.tls.getConsumerGroups({});
 * export const allConsumerGroups = all.then(all => all.consumerGroups);
 * const byName = volcengine.tls.getConsumerGroups({
 *     consumerGroupName: "test-consumer-group",
 * });
 * export const byNameConsumerGroups = byName.then(byName => byName.consumerGroups);
 * const byProject = volcengine.tls.getConsumerGroups({
 *     projectId: "project-123456",
 * });
 * export const byProjectConsumerGroups = byProject.then(byProject => byProject.consumerGroups);
 * const byTopic = volcengine.tls.getConsumerGroups({
 *     topicId: "topic-123456",
 * });
 * export const byTopicConsumerGroups = byTopic.then(byTopic => byTopic.consumerGroups);
 * const withMultipleFilters = volcengine.tls.getConsumerGroups({
 *     projectId: "project-123456",
 *     consumerGroupName: "test",
 * });
 * export const multipleFiltersConsumerGroups = withMultipleFilters.then(withMultipleFilters => withMultipleFilters.consumerGroups);
 * ```
 */
/** @deprecated volcengine.tls.ConsumerGroups has been deprecated in favor of volcengine.tls.getConsumerGroups */
function consumerGroupsOutput(args, opts) {
    return pulumi.output(args).apply((a) => consumerGroups(a, opts));
}
exports.consumerGroupsOutput = consumerGroupsOutput;
//# sourceMappingURL=consumerGroups.js.map