@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
56 lines • 1.92 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.getMetastoreServiceOutput = exports.getMetastoreService = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get a Dataproc Metastore service from Google Cloud by its id and location.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.dataproc.getMetastoreService({
* serviceId: "foo-bar",
* location: "global",
* });
* ```
*/
function getMetastoreService(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:dataproc/getMetastoreService:getMetastoreService", {
"location": args.location,
"project": args.project,
"serviceId": args.serviceId,
}, opts);
}
exports.getMetastoreService = getMetastoreService;
/**
* Get a Dataproc Metastore service from Google Cloud by its id and location.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.dataproc.getMetastoreService({
* serviceId: "foo-bar",
* location: "global",
* });
* ```
*/
function getMetastoreServiceOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:dataproc/getMetastoreService:getMetastoreService", {
"location": args.location,
"project": args.project,
"serviceId": args.serviceId,
}, opts);
}
exports.getMetastoreServiceOutput = getMetastoreServiceOutput;
//# sourceMappingURL=getMetastoreService.js.map