UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

89 lines 2.43 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieves information about a Scaleway Budget. * * Use this data source to get details of an existing budget by its ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = scaleway.billing.getBudget({ * budgetId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getBudget(args: GetBudgetArgs, opts?: pulumi.InvokeOptions): Promise<GetBudgetResult>; /** * A collection of arguments for invoking getBudget. */ export interface GetBudgetArgs { /** * The ID of the budget to retrieve. */ budgetId: string; /** * The organization ID. If not provided, the default organization configured in the provider is used. */ organizationId?: string; } /** * A collection of values returned by getBudget. */ export interface GetBudgetResult { readonly budgetId: string; /** * Cost limit for the budget in cents */ readonly consumptionLimit: number; /** * The date and time of budget creation */ readonly createdAt: string; /** * Whether the budget is enabled or not */ readonly enabled: boolean; /** * The ID of the budget */ readonly id: string; readonly organizationId: string; /** * The date and time when the budget was last updated */ readonly updatedAt: string; } /** * Retrieves information about a Scaleway Budget. * * Use this data source to get details of an existing budget by its ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = scaleway.billing.getBudget({ * budgetId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getBudgetOutput(args: GetBudgetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBudgetResult>; /** * A collection of arguments for invoking getBudget. */ export interface GetBudgetOutputArgs { /** * The ID of the budget to retrieve. */ budgetId: pulumi.Input<string>; /** * The organization ID. If not provided, the default organization configured in the provider is used. */ organizationId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getBudget.d.ts.map