UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

107 lines 3.61 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Budget Alerts. * * A Budget Alert triggers notifications when the spending threshold is reached. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.billing.Budget("main", { * organizationId: "11111111-1111-1111-1111-111111111111", * consumptionLimit: 10000, * enabled: true, * }); * const mainBudgetAlert = new scaleway.billing.BudgetAlert("main", { * budgetId: main.id, * threshold: 80, * }); * ``` * * ## Import * * Budget Alert can be imported using the alert ID. * * ```sh * $ pulumi import scaleway:billing/budgetAlert:BudgetAlert main 11111111-1111-1111-1111-111111111111 * ``` */ export declare class BudgetAlert extends pulumi.CustomResource { /** * Get an existing BudgetAlert 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?: BudgetAlertState, opts?: pulumi.CustomResourceOptions): BudgetAlert; /** * Returns true if the given object is an instance of BudgetAlert. 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 BudgetAlert; /** * The ID of the budget to create alert for. */ readonly budgetId: pulumi.Output<string>; /** * The date and time of budget alert creation */ readonly createdAt: pulumi.Output<string>; /** * Threshold percentage above which the alert is sent (0-100). */ readonly threshold: pulumi.Output<number>; /** * The date and time when the budget alert was last updated */ readonly updatedAt: pulumi.Output<string>; /** * Create a BudgetAlert 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: BudgetAlertArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BudgetAlert resources. */ export interface BudgetAlertState { /** * The ID of the budget to create alert for. */ budgetId?: pulumi.Input<string | undefined>; /** * The date and time of budget alert creation */ createdAt?: pulumi.Input<string | undefined>; /** * Threshold percentage above which the alert is sent (0-100). */ threshold?: pulumi.Input<number | undefined>; /** * The date and time when the budget alert was last updated */ updatedAt?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a BudgetAlert resource. */ export interface BudgetAlertArgs { /** * The ID of the budget to create alert for. */ budgetId: pulumi.Input<string>; /** * Threshold percentage above which the alert is sent (0-100). */ threshold: pulumi.Input<number>; } //# sourceMappingURL=budgetAlert.d.ts.map