UNPKG

@pulumi/yandex

Version:

A Pulumi package for creating and managing yandex cloud resources.

42 lines 1.64 kB
"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.getKubernetesNodeGroupOutput = exports.getKubernetesNodeGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Yandex Kubernetes Node Group. For more information, see * [the official documentation](https://cloud.yandex.com/docs/managed-kubernetes/concepts/#node-group). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const myNodeGroup = pulumi.output(yandex.getKubernetesNodeGroup({ * nodeGroupId: "some_k8s_node_group_id", * })); * * export const my_node_group_status = myNodeGroup.status; * ``` */ function getKubernetesNodeGroup(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("yandex:index/getKubernetesNodeGroup:getKubernetesNodeGroup", { "folderId": args.folderId, "name": args.name, "nodeGroupId": args.nodeGroupId, }, opts); } exports.getKubernetesNodeGroup = getKubernetesNodeGroup; function getKubernetesNodeGroupOutput(args, opts) { return pulumi.output(args).apply(a => getKubernetesNodeGroup(a, opts)); } exports.getKubernetesNodeGroupOutput = getKubernetesNodeGroupOutput; //# sourceMappingURL=getKubernetesNodeGroup.js.map