@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
47 lines • 1.7 kB
JavaScript
;
// *** 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.getMdbKafkaClusterOutput = exports.getMdbKafkaCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Yandex Managed Kafka cluster. For more information, see
* [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const foo = pulumi.output(yandex.getMdbKafkaCluster({
* name: "test",
* }));
*
* export const networkId = foo.networkId;
* ```
*/
function getMdbKafkaCluster(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getMdbKafkaCluster:getMdbKafkaCluster", {
"clusterId": args.clusterId,
"config": args.config,
"deletionProtection": args.deletionProtection,
"folderId": args.folderId,
"name": args.name,
"subnetIds": args.subnetIds,
"topics": args.topics,
"users": args.users,
}, opts);
}
exports.getMdbKafkaCluster = getMdbKafkaCluster;
function getMdbKafkaClusterOutput(args, opts) {
return pulumi.output(args).apply(a => getMdbKafkaCluster(a, opts));
}
exports.getMdbKafkaClusterOutput = getMdbKafkaClusterOutput;
//# sourceMappingURL=getMdbKafkaCluster.js.map