@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
60 lines • 2.09 kB
JavaScript
;
// *** 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.getFunctionOutput = exports.getFunction = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information about a Google Cloud Function (2nd gen). For more information see:
*
* * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_function = gcp.cloudfunctionsv2.getFunction({
* name: "function",
* location: "us-central1",
* });
* ```
*/
function getFunction(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:cloudfunctionsv2/getFunction:getFunction", {
"location": args.location,
"name": args.name,
"project": args.project,
}, opts);
}
exports.getFunction = getFunction;
/**
* Get information about a Google Cloud Function (2nd gen). For more information see:
*
* * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_function = gcp.cloudfunctionsv2.getFunction({
* name: "function",
* location: "us-central1",
* });
* ```
*/
function getFunctionOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:cloudfunctionsv2/getFunction:getFunction", {
"location": args.location,
"name": args.name,
"project": args.project,
}, opts);
}
exports.getFunctionOutput = getFunctionOutput;
//# sourceMappingURL=getFunction.js.map