UNPKG

@pulumi/gcp

Version:

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

48 lines 2.42 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.getInstanceTemplateOutput = exports.getInstanceTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. * * Get information about a VM instance template resource within GCE. For more information see * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) * and * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). */ function getInstanceTemplate(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", { "filter": args.filter, "mostRecent": args.mostRecent, "name": args.name, "project": args.project, "selfLinkUnique": args.selfLinkUnique, }, opts); } exports.getInstanceTemplate = getInstanceTemplate; /** * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. * * Get information about a VM instance template resource within GCE. For more information see * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) * and * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). */ function getInstanceTemplateOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getInstanceTemplate:getInstanceTemplate", { "filter": args.filter, "mostRecent": args.mostRecent, "name": args.name, "project": args.project, "selfLinkUnique": args.selfLinkUnique, }, opts); } exports.getInstanceTemplateOutput = getInstanceTemplateOutput; //# sourceMappingURL=getInstanceTemplate.js.map