import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages a Subscription Consumption Budget.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const current = azure.core.getSubscription({});
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example",
 *     location: "eastus",
 * });
 * const exampleActionGroup = new azure.monitoring.ActionGroup("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     shortName: "example",
 * });
 * const exampleBudgetSubscription = new azure.consumption.BudgetSubscription("example", {
 *     name: "example",
 *     subscriptionId: current.then(current => current.id),
 *     amount: 1000,
 *     timeGrain: "Monthly",
 *     timePeriod: {
 *         startDate: "2022-06-01T00:00:00Z",
 *         endDate: "2022-07-01T00:00:00Z",
 *     },
 *     filter: {
 *         dimensions: [{
 *             name: "ResourceGroupName",
 *             values: [example.name],
 *         }],
 *         tags: [{
 *             name: "foo",
 *             values: [
 *                 "bar",
 *                 "baz",
 *             ],
 *         }],
 *     },
 *     notifications: [
 *         {
 *             enabled: true,
 *             threshold: 90,
 *             operator: "EqualTo",
 *             contactEmails: [
 *                 "foo@example.com",
 *                 "bar@example.com",
 *             ],
 *             contactGroups: [exampleActionGroup.id],
 *             contactRoles: ["Owner"],
 *         },
 *         {
 *             enabled: false,
 *             threshold: 100,
 *             operator: "GreaterThan",
 *             thresholdType: "Forecasted",
 *             contactEmails: [
 *                 "foo@example.com",
 *                 "bar@example.com",
 *             ],
 *         },
 *     ],
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Consumption` - 2019-10-01
 *
 * ## Import
 *
 * Subscription Consumption Budgets can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:consumption/budgetSubscription:BudgetSubscription example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/budgets/subscription1
 * ```
 */
export declare class BudgetSubscription extends pulumi.CustomResource {
    /**
     * Get an existing BudgetSubscription 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BudgetSubscriptionState, opts?: pulumi.CustomResourceOptions): BudgetSubscription;
    /**
     * Returns true if the given object is an instance of BudgetSubscription.  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 BudgetSubscription;
    /**
     * The total amount of cost to track with the budget.
     */
    readonly amount: pulumi.Output<number>;
    /**
     * (Optional) The ETag of the Subscription Consumption Budget.
     */
    readonly etag: pulumi.Output<string>;
    /**
     * A `filter` block as defined below.
     */
    readonly filter: pulumi.Output<outputs.consumption.BudgetSubscriptionFilter | undefined>;
    /**
     * The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * One or more `notification` blocks as defined below.
     */
    readonly notifications: pulumi.Output<outputs.consumption.BudgetSubscriptionNotification[]>;
    /**
     * The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
     *
     * > **Note:** The `subscriptionId` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
     */
    readonly subscriptionId: pulumi.Output<string>;
    /**
     * The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
     */
    readonly timeGrain: pulumi.Output<string | undefined>;
    /**
     * A `timePeriod` block as defined below.
     */
    readonly timePeriod: pulumi.Output<outputs.consumption.BudgetSubscriptionTimePeriod>;
    /**
     * Create a BudgetSubscription 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: BudgetSubscriptionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering BudgetSubscription resources.
 */
export interface BudgetSubscriptionState {
    /**
     * The total amount of cost to track with the budget.
     */
    amount?: pulumi.Input<number | undefined>;
    /**
     * (Optional) The ETag of the Subscription Consumption Budget.
     */
    etag?: pulumi.Input<string | undefined>;
    /**
     * A `filter` block as defined below.
     */
    filter?: pulumi.Input<inputs.consumption.BudgetSubscriptionFilter | undefined>;
    /**
     * The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * One or more `notification` blocks as defined below.
     */
    notifications?: pulumi.Input<pulumi.Input<inputs.consumption.BudgetSubscriptionNotification>[] | undefined>;
    /**
     * The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
     *
     * > **Note:** The `subscriptionId` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
     */
    subscriptionId?: pulumi.Input<string | undefined>;
    /**
     * The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
     */
    timeGrain?: pulumi.Input<string | undefined>;
    /**
     * A `timePeriod` block as defined below.
     */
    timePeriod?: pulumi.Input<inputs.consumption.BudgetSubscriptionTimePeriod | undefined>;
}
/**
 * The set of arguments for constructing a BudgetSubscription resource.
 */
export interface BudgetSubscriptionArgs {
    /**
     * The total amount of cost to track with the budget.
     */
    amount: pulumi.Input<number>;
    /**
     * (Optional) The ETag of the Subscription Consumption Budget.
     */
    etag?: pulumi.Input<string | undefined>;
    /**
     * A `filter` block as defined below.
     */
    filter?: pulumi.Input<inputs.consumption.BudgetSubscriptionFilter | undefined>;
    /**
     * The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * One or more `notification` blocks as defined below.
     */
    notifications: pulumi.Input<pulumi.Input<inputs.consumption.BudgetSubscriptionNotification>[]>;
    /**
     * The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
     *
     * > **Note:** The `subscriptionId` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
     */
    subscriptionId: pulumi.Input<string>;
    /**
     * The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
     */
    timeGrain?: pulumi.Input<string | undefined>;
    /**
     * A `timePeriod` block as defined below.
     */
    timePeriod: pulumi.Input<inputs.consumption.BudgetSubscriptionTimePeriod>;
}
//# sourceMappingURL=budgetSubscription.d.ts.map