UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

115 lines 3.92 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Budgets. * * A Budget allows you to track and control spending across your Scaleway resources. * * ## 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, * }); * ``` * * ## Import * * Budget can be imported using the budget ID. * * ```sh * $ pulumi import scaleway:billing/budget:Budget main 11111111-1111-1111-1111-111111111111 * ``` */ 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 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?: BudgetState, 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; /** * Cost limit for the budget in cents. */ readonly consumptionLimit: pulumi.Output<number>; /** * The date and time of budget creation */ readonly createdAt: pulumi.Output<string>; /** * Whether the budget is enabled or not. Defaults to `true`. */ readonly enabled: pulumi.Output<boolean>; /** * The organization ID. If not provided, the default organization configured in the provider is used. */ readonly organizationId: pulumi.Output<string>; /** * The date and time when the budget was last updated */ readonly updatedAt: pulumi.Output<string>; /** * 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); } /** * Input properties used for looking up and filtering Budget resources. */ export interface BudgetState { /** * Cost limit for the budget in cents. */ consumptionLimit?: pulumi.Input<number | undefined>; /** * The date and time of budget creation */ createdAt?: pulumi.Input<string | undefined>; /** * Whether the budget is enabled or not. Defaults to `true`. */ enabled?: pulumi.Input<boolean | undefined>; /** * The organization ID. If not provided, the default organization configured in the provider is used. */ organizationId?: pulumi.Input<string | undefined>; /** * The date and time when the budget was last updated */ updatedAt?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a Budget resource. */ export interface BudgetArgs { /** * Cost limit for the budget in cents. */ consumptionLimit: pulumi.Input<number>; /** * Whether the budget is enabled or not. Defaults to `true`. */ enabled?: pulumi.Input<boolean | undefined>; /** * The organization ID. If not provided, the default organization configured in the provider is used. */ organizationId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=budget.d.ts.map