@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
134 lines • 4.77 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.getAppEngineServiceOutput = exports.getAppEngineService = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* A Monitoring Service is the root resource under which operational aspects of a
* generic service are accessible. A service is some discrete, autonomous, and
* network-accessible unit, designed to solve an individual concern
*
* An App Engine monitoring service is automatically created by GCP to monitor
* App Engine services.
*
* To get more information about Service, see:
*
* * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services)
* * How-to Guides
* * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring)
* * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/)
*
* ## Example Usage
*
* ### Monitoring App Engine Service
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const bucket = new gcp.storage.Bucket("bucket", {
* name: "appengine-static-content",
* location: "US",
* });
* const object = new gcp.storage.BucketObject("object", {
* name: "hello-world.zip",
* bucket: bucket.name,
* source: new pulumi.asset.FileAsset("./test-fixtures/hello-world.zip"),
* });
* const myapp = new gcp.appengine.StandardAppVersion("myapp", {
* versionId: "v1",
* service: "myapp",
* runtime: "nodejs20",
* entrypoint: {
* shell: "node ./app.js",
* },
* deployment: {
* zip: {
* sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
* },
* },
* envVariables: {
* port: "8080",
* },
* deleteServiceOnDestroy: false,
* });
* // Monitors the default AppEngine service
* const srv = gcp.monitoring.getAppEngineServiceOutput({
* moduleId: myapp.service,
* });
* ```
*/
function getAppEngineService(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:monitoring/getAppEngineService:getAppEngineService", {
"moduleId": args.moduleId,
"project": args.project,
}, opts);
}
exports.getAppEngineService = getAppEngineService;
/**
* A Monitoring Service is the root resource under which operational aspects of a
* generic service are accessible. A service is some discrete, autonomous, and
* network-accessible unit, designed to solve an individual concern
*
* An App Engine monitoring service is automatically created by GCP to monitor
* App Engine services.
*
* To get more information about Service, see:
*
* * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services)
* * How-to Guides
* * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring)
* * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/)
*
* ## Example Usage
*
* ### Monitoring App Engine Service
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const bucket = new gcp.storage.Bucket("bucket", {
* name: "appengine-static-content",
* location: "US",
* });
* const object = new gcp.storage.BucketObject("object", {
* name: "hello-world.zip",
* bucket: bucket.name,
* source: new pulumi.asset.FileAsset("./test-fixtures/hello-world.zip"),
* });
* const myapp = new gcp.appengine.StandardAppVersion("myapp", {
* versionId: "v1",
* service: "myapp",
* runtime: "nodejs20",
* entrypoint: {
* shell: "node ./app.js",
* },
* deployment: {
* zip: {
* sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
* },
* },
* envVariables: {
* port: "8080",
* },
* deleteServiceOnDestroy: false,
* });
* // Monitors the default AppEngine service
* const srv = gcp.monitoring.getAppEngineServiceOutput({
* moduleId: myapp.service,
* });
* ```
*/
function getAppEngineServiceOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:monitoring/getAppEngineService:getAppEngineService", {
"moduleId": args.moduleId,
"project": args.project,
}, opts);
}
exports.getAppEngineServiceOutput = getAppEngineServiceOutput;
//# sourceMappingURL=getAppEngineService.js.map
;