@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
58 lines • 1.99 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.getFunctionOutput = exports.getFunction = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information about a Google Cloud Function. For more information see
* the [official documentation](https://cloud.google.com/functions/docs/)
* and [API](https://cloud.google.com/functions/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_function = gcp.cloudfunctions.getFunction({
* name: "function",
* });
* ```
*/
function getFunction(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:cloudfunctions/getFunction:getFunction", {
"name": args.name,
"project": args.project,
"region": args.region,
}, opts);
}
exports.getFunction = getFunction;
/**
* Get information about a Google Cloud Function. For more information see
* the [official documentation](https://cloud.google.com/functions/docs/)
* and [API](https://cloud.google.com/functions/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_function = gcp.cloudfunctions.getFunction({
* name: "function",
* });
* ```
*/
function getFunctionOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:cloudfunctions/getFunction:getFunction", {
"name": args.name,
"project": args.project,
"region": args.region,
}, opts);
}
exports.getFunctionOutput = getFunctionOutput;
//# sourceMappingURL=getFunction.js.map
;