UNPKG

@pulumi/gcp

Version:

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

54 lines 1.7 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.getVPNGatewayOutput = exports.getVPNGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get a VPN gateway within GCE from its name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_vpn_gateway = gcp.compute.getVPNGateway({ * name: "vpn-gateway-us-east1", * }); * ``` */ function getVPNGateway(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getVPNGateway:getVPNGateway", { "name": args.name, "project": args.project, "region": args.region, }, opts); } exports.getVPNGateway = getVPNGateway; /** * Get a VPN gateway within GCE from its name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_vpn_gateway = gcp.compute.getVPNGateway({ * name: "vpn-gateway-us-east1", * }); * ``` */ function getVPNGatewayOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getVPNGateway:getVPNGateway", { "name": args.name, "project": args.project, "region": args.region, }, opts); } exports.getVPNGatewayOutput = getVPNGatewayOutput; //# sourceMappingURL=getVPNGateway.js.map