import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Returns a budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console. */ export declare function getBudget(args: GetBudgetArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetBudgetArgs { billingAccountId: string; budgetId: string; } export interface GetBudgetResult { /** * Budgeted amount. */ readonly amount: outputs.billingbudgets.v1.GoogleCloudBillingBudgetsV1BudgetAmountResponse; /** * Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters. */ readonly budgetFilter: outputs.billingbudgets.v1.GoogleCloudBillingBudgetsV1FilterResponse; /** * User data for display name in UI. The name must be less than or equal to 60 characters. */ readonly displayName: string; /** * Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes. */ readonly etag: string; /** * Resource name of the budget. The resource name implies the scope of a budget. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. */ readonly name: string; /** * Optional. Rules to apply to notifications sent based on budget spend and thresholds. */ readonly notificationsRule: outputs.billingbudgets.v1.GoogleCloudBillingBudgetsV1NotificationsRuleResponse; readonly ownershipScope: string; /** * Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget. Optional for `pubsubTopic` notifications. Required if using email notifications. */ readonly thresholdRules: outputs.billingbudgets.v1.GoogleCloudBillingBudgetsV1ThresholdRuleResponse[]; } /** * Returns a budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console. */ export declare function getBudgetOutput(args: GetBudgetOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetBudgetOutputArgs { billingAccountId: pulumi.Input; budgetId: pulumi.Input; }