published on Thursday, Jul 9, 2026 by pulumiverse
published on Thursday, Jul 9, 2026 by pulumiverse
Creates and manages Scaleway Budgets.
A Budget allows you to track and control spending across your Scaleway resources.
Example Usage
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 pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.billing.Budget("main",
organization_id="11111111-1111-1111-1111-111111111111",
consumption_limit=10000,
enabled=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/billing"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := billing.NewBudget(ctx, "main", &billing.BudgetArgs{
OrganizationId: pulumi.String("11111111-1111-1111-1111-111111111111"),
ConsumptionLimit: pulumi.Int(10000),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Billing.Budget("main", new()
{
OrganizationId = "11111111-1111-1111-1111-111111111111",
ConsumptionLimit = 10000,
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.billing.Budget;
import com.pulumi.scaleway.billing.BudgetArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new Budget("main", BudgetArgs.builder()
.organizationId("11111111-1111-1111-1111-111111111111")
.consumptionLimit(10000)
.enabled(true)
.build());
}
}
resources:
main:
type: scaleway:billing:Budget
properties:
organizationId: 11111111-1111-1111-1111-111111111111
consumptionLimit: 10000
enabled: true
Example coming soon!
Create Budget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Budget(name: string, args: BudgetArgs, opts?: CustomResourceOptions);@overload
def Budget(resource_name: str,
args: BudgetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Budget(resource_name: str,
opts: Optional[ResourceOptions] = None,
consumption_limit: Optional[int] = None,
enabled: Optional[bool] = None,
organization_id: Optional[str] = None)func NewBudget(ctx *Context, name string, args BudgetArgs, opts ...ResourceOption) (*Budget, error)public Budget(string name, BudgetArgs args, CustomResourceOptions? opts = null)
public Budget(String name, BudgetArgs args)
public Budget(String name, BudgetArgs args, CustomResourceOptions options)
type: scaleway:billing:Budget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "scaleway_billing_budget" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var budgetResource = new Scaleway.Billing.Budget("budgetResource", new()
{
ConsumptionLimit = 0,
Enabled = false,
OrganizationId = "string",
});
example, err := billing.NewBudget(ctx, "budgetResource", &billing.BudgetArgs{
ConsumptionLimit: pulumi.Int(0),
Enabled: pulumi.Bool(false),
OrganizationId: pulumi.String("string"),
})
resource "scaleway_billing_budget" "budgetResource" {
consumption_limit = 0
enabled = false
organization_id = "string"
}
var budgetResource = new Budget("budgetResource", BudgetArgs.builder()
.consumptionLimit(0)
.enabled(false)
.organizationId("string")
.build());
budget_resource = scaleway.billing.Budget("budgetResource",
consumption_limit=0,
enabled=False,
organization_id="string")
const budgetResource = new scaleway.billing.Budget("budgetResource", {
consumptionLimit: 0,
enabled: false,
organizationId: "string",
});
type: scaleway:billing:Budget
properties:
consumptionLimit: 0
enabled: false
organizationId: string
Budget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Budget resource accepts the following input properties:
- Consumption
Limit int - Cost limit for the budget in cents.
- Enabled bool
- Whether the budget is enabled or not. Defaults to
true. - Organization
Id string - The organization ID. If not provided, the default organization configured in the provider is used.
- Consumption
Limit int - Cost limit for the budget in cents.
- Enabled bool
- Whether the budget is enabled or not. Defaults to
true. - Organization
Id string - The organization ID. If not provided, the default organization configured in the provider is used.
- consumption_
limit number - Cost limit for the budget in cents.
- enabled bool
- Whether the budget is enabled or not. Defaults to
true. - organization_
id string - The organization ID. If not provided, the default organization configured in the provider is used.
- consumption
Limit Integer - Cost limit for the budget in cents.
- enabled Boolean
- Whether the budget is enabled or not. Defaults to
true. - organization
Id String - The organization ID. If not provided, the default organization configured in the provider is used.
- consumption
Limit number - Cost limit for the budget in cents.
- enabled boolean
- Whether the budget is enabled or not. Defaults to
true. - organization
Id string - The organization ID. If not provided, the default organization configured in the provider is used.
- consumption_
limit int - Cost limit for the budget in cents.
- enabled bool
- Whether the budget is enabled or not. Defaults to
true. - organization_
id str - The organization ID. If not provided, the default organization configured in the provider is used.
- consumption
Limit Number - Cost limit for the budget in cents.
- enabled Boolean
- Whether the budget is enabled or not. Defaults to
true. - organization
Id String - The organization ID. If not provided, the default organization configured in the provider is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Budget resource produces the following output properties:
- created_
at string - The date and time of budget creation
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - The date and time when the budget was last updated
- created_
at str - The date and time of budget creation
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The date and time when the budget was last updated
Look up Existing Budget Resource
Get an existing Budget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BudgetState, opts?: CustomResourceOptions): Budget@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
consumption_limit: Optional[int] = None,
created_at: Optional[str] = None,
enabled: Optional[bool] = None,
organization_id: Optional[str] = None,
updated_at: Optional[str] = None) -> Budgetfunc GetBudget(ctx *Context, name string, id IDInput, state *BudgetState, opts ...ResourceOption) (*Budget, error)public static Budget Get(string name, Input<string> id, BudgetState? state, CustomResourceOptions? opts = null)public static Budget get(String name, Output<String> id, BudgetState state, CustomResourceOptions options)resources: _: type: scaleway:billing:Budget get: id: ${id}import {
to = scaleway_billing_budget.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Consumption
Limit int - Cost limit for the budget in cents.
- Created
At string - The date and time of budget creation
- Enabled bool
- Whether the budget is enabled or not. Defaults to
true. - Organization
Id string - The organization ID. If not provided, the default organization configured in the provider is used.
- Updated
At string - The date and time when the budget was last updated
- Consumption
Limit int - Cost limit for the budget in cents.
- Created
At string - The date and time of budget creation
- Enabled bool
- Whether the budget is enabled or not. Defaults to
true. - Organization
Id string - The organization ID. If not provided, the default organization configured in the provider is used.
- Updated
At string - The date and time when the budget was last updated
- consumption_
limit number - Cost limit for the budget in cents.
- created_
at string - The date and time of budget creation
- enabled bool
- Whether the budget is enabled or not. Defaults to
true. - organization_
id string - The organization ID. If not provided, the default organization configured in the provider is used.
- updated_
at string - The date and time when the budget was last updated
- consumption
Limit Integer - Cost limit for the budget in cents.
- created
At String - The date and time of budget creation
- enabled Boolean
- Whether the budget is enabled or not. Defaults to
true. - organization
Id String - The organization ID. If not provided, the default organization configured in the provider is used.
- updated
At String - The date and time when the budget was last updated
- consumption
Limit number - Cost limit for the budget in cents.
- created
At string - The date and time of budget creation
- enabled boolean
- Whether the budget is enabled or not. Defaults to
true. - organization
Id string - The organization ID. If not provided, the default organization configured in the provider is used.
- updated
At string - The date and time when the budget was last updated
- consumption_
limit int - Cost limit for the budget in cents.
- created_
at str - The date and time of budget creation
- enabled bool
- Whether the budget is enabled or not. Defaults to
true. - organization_
id str - The organization ID. If not provided, the default organization configured in the provider is used.
- updated_
at str - The date and time when the budget was last updated
- consumption
Limit Number - Cost limit for the budget in cents.
- created
At String - The date and time of budget creation
- enabled Boolean
- Whether the budget is enabled or not. Defaults to
true. - organization
Id String - The organization ID. If not provided, the default organization configured in the provider is used.
- updated
At String - The date and time when the budget was last updated
Import
Budget can be imported using the budget ID.
$ pulumi import scaleway:billing/budget:Budget main 11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Thursday, Jul 9, 2026 by pulumiverse