UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

66 lines 2.43 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getNodeTypesOutput = exports.getNodeTypes = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides available node types for Compute Engine sole-tenant nodes in a zone * for a given project. For more information, see [the official documentation](https://cloud.google.com/compute/docs/nodes/#types) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const central1b = gcp.compute.getNodeTypes({ * zone: "us-central1-b", * }); * const tmpl = new gcp.compute.NodeTemplate("tmpl", { * name: "test-tmpl", * region: "us-central1", * nodeType: types.names[0], * }); * ``` */ function getNodeTypes(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getNodeTypes:getNodeTypes", { "project": args.project, "zone": args.zone, }, opts); } exports.getNodeTypes = getNodeTypes; /** * Provides available node types for Compute Engine sole-tenant nodes in a zone * for a given project. For more information, see [the official documentation](https://cloud.google.com/compute/docs/nodes/#types) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const central1b = gcp.compute.getNodeTypes({ * zone: "us-central1-b", * }); * const tmpl = new gcp.compute.NodeTemplate("tmpl", { * name: "test-tmpl", * region: "us-central1", * nodeType: types.names[0], * }); * ``` */ function getNodeTypesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getNodeTypes:getNodeTypes", { "project": args.project, "zone": args.zone, }, opts); } exports.getNodeTypesOutput = getNodeTypesOutput; //# sourceMappingURL=getNodeTypes.js.map