import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/quotas) for more information on the limits of the number of budgets you can create. * Auto-naming is currently not supported for this resource. */ export declare class Budget extends pulumi.CustomResource { /** * Get an existing Budget resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Budget; /** * Returns true if the given object is an instance of Budget. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Budget; /** * Budgeted amount. */ readonly amount: pulumi.Output; readonly billingAccountId: pulumi.Output; /** * 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: pulumi.Output; /** * User data for display name in UI. The name must be less than or equal to 60 characters. */ readonly displayName: pulumi.Output; /** * 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: pulumi.Output; /** * 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: pulumi.Output; /** * Optional. Rules to apply to notifications sent based on budget spend and thresholds. */ readonly notificationsRule: pulumi.Output; readonly ownershipScope: pulumi.Output; /** * 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: pulumi.Output; /** * Create a Budget resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BudgetArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Budget resource. */ export interface BudgetArgs { /** * Budgeted amount. */ amount: pulumi.Input; billingAccountId: pulumi.Input; /** * 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. */ budgetFilter?: pulumi.Input; /** * User data for display name in UI. The name must be less than or equal to 60 characters. */ displayName?: pulumi.Input; /** * 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. */ etag?: pulumi.Input; /** * Optional. Rules to apply to notifications sent based on budget spend and thresholds. */ notificationsRule?: pulumi.Input; ownershipScope?: pulumi.Input; /** * 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. */ thresholdRules?: pulumi.Input[]>; }