@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
60 lines • 2.01 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.getServiceOutput = exports.getService = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information about a Google Cloud Run Service. For more information see
* the [official documentation](https://cloud.google.com/run/docs/)
* and [API](https://cloud.google.com/run/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const run_service = gcp.cloudrun.getService({
* name: "my-service",
* location: "us-central1",
* });
* ```
*/
function getService(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:cloudrun/getService:getService", {
"location": args.location,
"name": args.name,
"project": args.project,
}, opts);
}
exports.getService = getService;
/**
* Get information about a Google Cloud Run Service. For more information see
* the [official documentation](https://cloud.google.com/run/docs/)
* and [API](https://cloud.google.com/run/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const run_service = gcp.cloudrun.getService({
* name: "my-service",
* location: "us-central1",
* });
* ```
*/
function getServiceOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:cloudrun/getService:getService", {
"location": args.location,
"name": args.name,
"project": args.project,
}, opts);
}
exports.getServiceOutput = getServiceOutput;
//# sourceMappingURL=getService.js.map
;