@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
60 lines • 1.88 kB
JavaScript
// *** 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.getSubnetworkOutput = exports.getSubnetwork = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get a subnetwork within GCE from its name and region.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_subnetwork = gcp.compute.getSubnetwork({
* name: "default-us-east1",
* region: "us-east1",
* });
* ```
*/
function getSubnetwork(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:compute/getSubnetwork:getSubnetwork", {
"name": args.name,
"project": args.project,
"region": args.region,
"selfLink": args.selfLink,
}, opts);
}
exports.getSubnetwork = getSubnetwork;
/**
* Get a subnetwork within GCE from its name and region.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_subnetwork = gcp.compute.getSubnetwork({
* name: "default-us-east1",
* region: "us-east1",
* });
* ```
*/
function getSubnetworkOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:compute/getSubnetwork:getSubnetwork", {
"name": args.name,
"project": args.project,
"region": args.region,
"selfLink": args.selfLink,
}, opts);
}
exports.getSubnetworkOutput = getSubnetworkOutput;
//# sourceMappingURL=getSubnetwork.js.map
;