@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
44 lines • 1.51 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.getNodePoolOutput = exports.getNodePool = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* To get the specified node pool in a cluster.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const clusterId = config.requireObject("clusterId");
* const nodePoolName = config.requireObject("nodePoolName");
* const nodePool = huaweicloud.Cce.getNodePool({
* clusterId: clusterId,
* name: nodePoolName,
* });
* ```
*/
function getNodePool(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Cce/getNodePool:getNodePool", {
"clusterId": args.clusterId,
"name": args.name,
"nodePoolId": args.nodePoolId,
"region": args.region,
"status": args.status,
}, opts);
}
exports.getNodePool = getNodePool;
function getNodePoolOutput(args, opts) {
return pulumi.output(args).apply(a => getNodePool(a, opts));
}
exports.getNodePoolOutput = getNodePoolOutput;
//# sourceMappingURL=getNodePool.js.map