@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
50 lines • 1.97 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.getDefaultServiceAccountOutput = exports.getDefaultServiceAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to retrieve the default App Engine service account for the specified project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.appengine.getDefaultServiceAccount({});
* export const defaultAccount = _default.then(_default => _default.email);
* ```
*/
function getDefaultServiceAccount(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", {
"project": args.project,
}, opts);
}
exports.getDefaultServiceAccount = getDefaultServiceAccount;
/**
* Use this data source to retrieve the default App Engine service account for the specified project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.appengine.getDefaultServiceAccount({});
* export const defaultAccount = _default.then(_default => _default.email);
* ```
*/
function getDefaultServiceAccountOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", {
"project": args.project,
}, opts);
}
exports.getDefaultServiceAccountOutput = getDefaultServiceAccountOutput;
//# sourceMappingURL=getDefaultServiceAccount.js.map
;