"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.consumedTopicsOutput = exports.consumedTopics = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of kafka consumed topics
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooInstance = new volcengine.kafka.Instance("fooInstance", {
 *     instanceName: "acc-test-kafka",
 *     instanceDescription: "tf-test",
 *     version: "2.2.2",
 *     computeSpec: "kafka.20xrate.hw",
 *     subnetId: fooSubnet.id,
 *     userName: "tf-user",
 *     userPassword: "tf-pass!@q1",
 *     chargeType: "PostPaid",
 *     storageSpace: 300,
 *     partitionNumber: 350,
 *     projectName: "default",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 *     parameters: [
 *         {
 *             parameterName: "MessageMaxByte",
 *             parameterValue: "12",
 *         },
 *         {
 *             parameterName: "LogRetentionHours",
 *             parameterValue: "70",
 *         },
 *     ],
 * });
 * const fooGroup = new volcengine.kafka.Group("fooGroup", {
 *     instanceId: fooInstance.id,
 *     groupId: "acc-test-group",
 *     description: "tf-test",
 * });
 * const fooSaslUser = new volcengine.kafka.SaslUser("fooSaslUser", {
 *     userName: "acc-test-user",
 *     instanceId: fooInstance.id,
 *     userPassword: "suqsnis123!",
 *     description: "tf-test",
 *     allAuthority: true,
 *     passwordType: "Scram",
 * });
 * const fooTopic = new volcengine.kafka.Topic("fooTopic", {
 *     topicName: "acc-test-topic",
 *     instanceId: fooInstance.id,
 *     description: "tf-test",
 *     partitionNumber: 15,
 *     replicaNumber: 3,
 *     parameters: {
 *         minInsyncReplicaNumber: 2,
 *         messageMaxByte: 10,
 *         logRetentionHours: 96,
 *     },
 *     allAuthority: false,
 *     accessPolicies: [{
 *         userName: fooSaslUser.userName,
 *         accessPolicy: "Pub",
 *     }],
 * });
 * const default = volcengine.kafka.getConsumedTopicsOutput({
 *     instanceId: fooInstance.id,
 *     groupId: fooGroup.groupId,
 *     topicName: fooTopic.topicName,
 * });
 * ```
 */
/** @deprecated volcengine.kafka.ConsumedTopics has been deprecated in favor of volcengine.kafka.getConsumedTopics */
function consumedTopics(args, opts) {
    pulumi.log.warn("consumedTopics is deprecated: volcengine.kafka.ConsumedTopics has been deprecated in favor of volcengine.kafka.getConsumedTopics");
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:kafka/consumedTopics:ConsumedTopics", {
        "groupId": args.groupId,
        "instanceId": args.instanceId,
        "outputFile": args.outputFile,
        "topicName": args.topicName,
    }, opts);
}
exports.consumedTopics = consumedTopics;
/**
 * Use this data source to query detailed information of kafka consumed topics
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooInstance = new volcengine.kafka.Instance("fooInstance", {
 *     instanceName: "acc-test-kafka",
 *     instanceDescription: "tf-test",
 *     version: "2.2.2",
 *     computeSpec: "kafka.20xrate.hw",
 *     subnetId: fooSubnet.id,
 *     userName: "tf-user",
 *     userPassword: "tf-pass!@q1",
 *     chargeType: "PostPaid",
 *     storageSpace: 300,
 *     partitionNumber: 350,
 *     projectName: "default",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 *     parameters: [
 *         {
 *             parameterName: "MessageMaxByte",
 *             parameterValue: "12",
 *         },
 *         {
 *             parameterName: "LogRetentionHours",
 *             parameterValue: "70",
 *         },
 *     ],
 * });
 * const fooGroup = new volcengine.kafka.Group("fooGroup", {
 *     instanceId: fooInstance.id,
 *     groupId: "acc-test-group",
 *     description: "tf-test",
 * });
 * const fooSaslUser = new volcengine.kafka.SaslUser("fooSaslUser", {
 *     userName: "acc-test-user",
 *     instanceId: fooInstance.id,
 *     userPassword: "suqsnis123!",
 *     description: "tf-test",
 *     allAuthority: true,
 *     passwordType: "Scram",
 * });
 * const fooTopic = new volcengine.kafka.Topic("fooTopic", {
 *     topicName: "acc-test-topic",
 *     instanceId: fooInstance.id,
 *     description: "tf-test",
 *     partitionNumber: 15,
 *     replicaNumber: 3,
 *     parameters: {
 *         minInsyncReplicaNumber: 2,
 *         messageMaxByte: 10,
 *         logRetentionHours: 96,
 *     },
 *     allAuthority: false,
 *     accessPolicies: [{
 *         userName: fooSaslUser.userName,
 *         accessPolicy: "Pub",
 *     }],
 * });
 * const default = volcengine.kafka.getConsumedTopicsOutput({
 *     instanceId: fooInstance.id,
 *     groupId: fooGroup.groupId,
 *     topicName: fooTopic.topicName,
 * });
 * ```
 */
/** @deprecated volcengine.kafka.ConsumedTopics has been deprecated in favor of volcengine.kafka.getConsumedTopics */
function consumedTopicsOutput(args, opts) {
    return pulumi.output(args).apply((a) => consumedTopics(a, opts));
}
exports.consumedTopicsOutput = consumedTopicsOutput;
//# sourceMappingURL=consumedTopics.js.map