@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
40 lines • 1.48 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.getDataprocClusterOutput = exports.getDataprocCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Yandex Data Proc cluster. For more information, see [the official documentation](https://cloud.yandex.com/docs/data-proc/).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const foo = pulumi.output(yandex.getDataprocCluster({
* name: "test",
* }));
*
* export const serviceAccountId = foo.serviceAccountId;
* ```
*/
function getDataprocCluster(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getDataprocCluster:getDataprocCluster", {
"clusterId": args.clusterId,
"name": args.name,
}, opts);
}
exports.getDataprocCluster = getDataprocCluster;
function getDataprocClusterOutput(args, opts) {
return pulumi.output(args).apply(a => getDataprocCluster(a, opts));
}
exports.getDataprocClusterOutput = getDataprocClusterOutput;
//# sourceMappingURL=getDataprocCluster.js.map