@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
68 lines • 2.46 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.getBillingAccountOutput = exports.getBillingAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about a Google Billing Account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const acct = gcp.organizations.getBillingAccount({
* displayName: "My Billing Account",
* open: true,
* });
* const myProject = new gcp.organizations.Project("my_project", {
* name: "My Project",
* projectId: "your-project-id",
* orgId: "1234567",
* billingAccount: acct.then(acct => acct.id),
* });
* ```
*/
function getBillingAccount(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:organizations/getBillingAccount:getBillingAccount", {
"billingAccount": args.billingAccount,
"displayName": args.displayName,
"lookupProjects": args.lookupProjects,
"open": args.open,
}, opts);
}
exports.getBillingAccount = getBillingAccount;
/**
* Use this data source to get information about a Google Billing Account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const acct = gcp.organizations.getBillingAccount({
* displayName: "My Billing Account",
* open: true,
* });
* const myProject = new gcp.organizations.Project("my_project", {
* name: "My Project",
* projectId: "your-project-id",
* orgId: "1234567",
* billingAccount: acct.then(acct => acct.id),
* });
* ```
*/
function getBillingAccountOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:organizations/getBillingAccount:getBillingAccount", {
"billingAccount": args.billingAccount,
"displayName": args.displayName,
"lookupProjects": args.lookupProjects,
"open": args.open,
}, opts);
}
exports.getBillingAccountOutput = getBillingAccountOutput;
//# sourceMappingURL=getBillingAccount.js.map