Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

Budget

This resource provides the Budget resource in Oracle Cloud Infrastructure Budget service.

Creates a new Budget.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testBudget = new Oci.Budget.Budget("testBudget", new Oci.Budget.BudgetArgs
        {
            Amount = @var.Budget_amount,
            CompartmentId = @var.Tenancy_ocid,
            ResetPeriod = @var.Budget_reset_period,
            BudgetProcessingPeriodStartOffset = @var.Budget_budget_processing_period_start_offset,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = @var.Budget_description,
            DisplayName = @var.Budget_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            TargetCompartmentId = oci_identity_compartment.Test_compartment.Id,
            TargetType = @var.Budget_target_type,
            Targets = @var.Budget_targets,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Budget"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Budget.NewBudget(ctx, "testBudget", &Budget.BudgetArgs{
			Amount:                            pulumi.Any(_var.Budget_amount),
			CompartmentId:                     pulumi.Any(_var.Tenancy_ocid),
			ResetPeriod:                       pulumi.Any(_var.Budget_reset_period),
			BudgetProcessingPeriodStartOffset: pulumi.Any(_var.Budget_budget_processing_period_start_offset),
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(_var.Budget_description),
			DisplayName: pulumi.Any(_var.Budget_display_name),
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
			TargetCompartmentId: pulumi.Any(oci_identity_compartment.Test_compartment.Id),
			TargetType:          pulumi.Any(_var.Budget_target_type),
			Targets:             pulumi.Any(_var.Budget_targets),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_budget = oci.budget.Budget("testBudget",
    amount=var["budget_amount"],
    compartment_id=var["tenancy_ocid"],
    reset_period=var["budget_reset_period"],
    budget_processing_period_start_offset=var["budget_budget_processing_period_start_offset"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=var["budget_description"],
    display_name=var["budget_display_name"],
    freeform_tags={
        "Department": "Finance",
    },
    target_compartment_id=oci_identity_compartment["test_compartment"]["id"],
    target_type=var["budget_target_type"],
    targets=var["budget_targets"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testBudget = new oci.budget.Budget("testBudget", {
    amount: _var.budget_amount,
    compartmentId: _var.tenancy_ocid,
    resetPeriod: _var.budget_reset_period,
    budgetProcessingPeriodStartOffset: _var.budget_budget_processing_period_start_offset,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: _var.budget_description,
    displayName: _var.budget_display_name,
    freeformTags: {
        Department: "Finance",
    },
    targetCompartmentId: oci_identity_compartment.test_compartment.id,
    targetType: _var.budget_target_type,
    targets: _var.budget_targets,
});

Coming soon!

Create a Budget Resource

new Budget(name: string, args: BudgetArgs, opts?: CustomResourceOptions);
@overload
def Budget(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           amount: Optional[int] = None,
           budget_processing_period_start_offset: Optional[int] = None,
           compartment_id: Optional[str] = None,
           defined_tags: Optional[Mapping[str, Any]] = None,
           description: Optional[str] = None,
           display_name: Optional[str] = None,
           freeform_tags: Optional[Mapping[str, Any]] = None,
           reset_period: Optional[str] = None,
           target_compartment_id: Optional[str] = None,
           target_type: Optional[str] = None,
           targets: Optional[Sequence[str]] = None)
@overload
def Budget(resource_name: str,
           args: BudgetArgs,
           opts: Optional[ResourceOptions] = 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: oci:Budget:Budget
properties: # The arguments to resource properties.
options: # 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.
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.

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

The Budget resource accepts the following input properties:

Amount int

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

CompartmentId string

The OCID of the tenancy

ResetPeriod string

(Updatable) The reset period for the budget. Valid value is MONTHLY.

BudgetProcessingPeriodStartOffset int

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) The description of the budget.

DisplayName string

(Updatable) The displayName of the budget.

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

TargetCompartmentId string

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

TargetType string

The type of target on which the budget is applied.

Targets List<string>

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

Amount int

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

CompartmentId string

The OCID of the tenancy

ResetPeriod string

(Updatable) The reset period for the budget. Valid value is MONTHLY.

BudgetProcessingPeriodStartOffset int

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) The description of the budget.

DisplayName string

(Updatable) The displayName of the budget.

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

TargetCompartmentId string

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

TargetType string

The type of target on which the budget is applied.

Targets []string

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

amount Integer

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

compartmentId String

The OCID of the tenancy

resetPeriod String

(Updatable) The reset period for the budget. Valid value is MONTHLY.

budgetProcessingPeriodStartOffset Integer

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) The description of the budget.

displayName String

(Updatable) The displayName of the budget.

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

targetCompartmentId String

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

targetType String

The type of target on which the budget is applied.

targets List<String>

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

amount number

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

compartmentId string

The OCID of the tenancy

resetPeriod string

(Updatable) The reset period for the budget. Valid value is MONTHLY.

budgetProcessingPeriodStartOffset number

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description string

(Updatable) The description of the budget.

displayName string

(Updatable) The displayName of the budget.

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

targetCompartmentId string

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

targetType string

The type of target on which the budget is applied.

targets string[]

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

amount int

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

compartment_id str

The OCID of the tenancy

reset_period str

(Updatable) The reset period for the budget. Valid value is MONTHLY.

budget_processing_period_start_offset int

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description str

(Updatable) The description of the budget.

display_name str

(Updatable) The displayName of the budget.

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

target_compartment_id str

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

target_type str

The type of target on which the budget is applied.

targets Sequence[str]

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

amount Number

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

compartmentId String

The OCID of the tenancy

resetPeriod String

(Updatable) The reset period for the budget. Valid value is MONTHLY.

budgetProcessingPeriodStartOffset Number

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) The description of the budget.

displayName String

(Updatable) The displayName of the budget.

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

targetCompartmentId String

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

targetType String

The type of target on which the budget is applied.

targets List<String>

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

Outputs

All input properties are implicitly available as output properties. Additionally, the Budget resource produces the following output properties:

ActualSpend double

The actual spend in currency for the current budget cycle

AlertRuleCount int

Total number of alert rules in the budget

ForecastedSpend double

The forecasted spend in currency by the end of the current budget cycle

Id string

The provider-assigned unique ID for this managed resource.

State string

The current state of the budget.

TimeCreated string

Time that budget was created

TimeSpendComputed string

The time that the budget spend was last computed

TimeUpdated string

Time that budget was updated

Version int

Version of the budget. Starts from 1 and increments by 1.

ActualSpend float64

The actual spend in currency for the current budget cycle

AlertRuleCount int

Total number of alert rules in the budget

ForecastedSpend float64

The forecasted spend in currency by the end of the current budget cycle

Id string

The provider-assigned unique ID for this managed resource.

State string

The current state of the budget.

TimeCreated string

Time that budget was created

TimeSpendComputed string

The time that the budget spend was last computed

TimeUpdated string

Time that budget was updated

Version int

Version of the budget. Starts from 1 and increments by 1.

actualSpend Double

The actual spend in currency for the current budget cycle

alertRuleCount Integer

Total number of alert rules in the budget

forecastedSpend Double

The forecasted spend in currency by the end of the current budget cycle

id String

The provider-assigned unique ID for this managed resource.

state String

The current state of the budget.

timeCreated String

Time that budget was created

timeSpendComputed String

The time that the budget spend was last computed

timeUpdated String

Time that budget was updated

version Integer

Version of the budget. Starts from 1 and increments by 1.

actualSpend number

The actual spend in currency for the current budget cycle

alertRuleCount number

Total number of alert rules in the budget

forecastedSpend number

The forecasted spend in currency by the end of the current budget cycle

id string

The provider-assigned unique ID for this managed resource.

state string

The current state of the budget.

timeCreated string

Time that budget was created

timeSpendComputed string

The time that the budget spend was last computed

timeUpdated string

Time that budget was updated

version number

Version of the budget. Starts from 1 and increments by 1.

actual_spend float

The actual spend in currency for the current budget cycle

alert_rule_count int

Total number of alert rules in the budget

forecasted_spend float

The forecasted spend in currency by the end of the current budget cycle

id str

The provider-assigned unique ID for this managed resource.

state str

The current state of the budget.

time_created str

Time that budget was created

time_spend_computed str

The time that the budget spend was last computed

time_updated str

Time that budget was updated

version int

Version of the budget. Starts from 1 and increments by 1.

actualSpend Number

The actual spend in currency for the current budget cycle

alertRuleCount Number

Total number of alert rules in the budget

forecastedSpend Number

The forecasted spend in currency by the end of the current budget cycle

id String

The provider-assigned unique ID for this managed resource.

state String

The current state of the budget.

timeCreated String

Time that budget was created

timeSpendComputed String

The time that the budget spend was last computed

timeUpdated String

Time that budget was updated

version Number

Version of the budget. Starts from 1 and increments by 1.

Look up an 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,
        actual_spend: Optional[float] = None,
        alert_rule_count: Optional[int] = None,
        amount: Optional[int] = None,
        budget_processing_period_start_offset: Optional[int] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        forecasted_spend: Optional[float] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        reset_period: Optional[str] = None,
        state: Optional[str] = None,
        target_compartment_id: Optional[str] = None,
        target_type: Optional[str] = None,
        targets: Optional[Sequence[str]] = None,
        time_created: Optional[str] = None,
        time_spend_computed: Optional[str] = None,
        time_updated: Optional[str] = None,
        version: Optional[int] = None) -> Budget
func 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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
ActualSpend double

The actual spend in currency for the current budget cycle

AlertRuleCount int

Total number of alert rules in the budget

Amount int

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

BudgetProcessingPeriodStartOffset int

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

CompartmentId string

The OCID of the tenancy

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) The description of the budget.

DisplayName string

(Updatable) The displayName of the budget.

ForecastedSpend double

The forecasted spend in currency by the end of the current budget cycle

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

ResetPeriod string

(Updatable) The reset period for the budget. Valid value is MONTHLY.

State string

The current state of the budget.

TargetCompartmentId string

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

TargetType string

The type of target on which the budget is applied.

Targets List<string>

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

TimeCreated string

Time that budget was created

TimeSpendComputed string

The time that the budget spend was last computed

TimeUpdated string

Time that budget was updated

Version int

Version of the budget. Starts from 1 and increments by 1.

ActualSpend float64

The actual spend in currency for the current budget cycle

AlertRuleCount int

Total number of alert rules in the budget

Amount int

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

BudgetProcessingPeriodStartOffset int

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

CompartmentId string

The OCID of the tenancy

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

(Updatable) The description of the budget.

DisplayName string

(Updatable) The displayName of the budget.

ForecastedSpend float64

The forecasted spend in currency by the end of the current budget cycle

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

ResetPeriod string

(Updatable) The reset period for the budget. Valid value is MONTHLY.

State string

The current state of the budget.

TargetCompartmentId string

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

TargetType string

The type of target on which the budget is applied.

Targets []string

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

TimeCreated string

Time that budget was created

TimeSpendComputed string

The time that the budget spend was last computed

TimeUpdated string

Time that budget was updated

Version int

Version of the budget. Starts from 1 and increments by 1.

actualSpend Double

The actual spend in currency for the current budget cycle

alertRuleCount Integer

Total number of alert rules in the budget

amount Integer

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

budgetProcessingPeriodStartOffset Integer

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

compartmentId String

The OCID of the tenancy

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) The description of the budget.

displayName String

(Updatable) The displayName of the budget.

forecastedSpend Double

The forecasted spend in currency by the end of the current budget cycle

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

resetPeriod String

(Updatable) The reset period for the budget. Valid value is MONTHLY.

state String

The current state of the budget.

targetCompartmentId String

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

targetType String

The type of target on which the budget is applied.

targets List<String>

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

timeCreated String

Time that budget was created

timeSpendComputed String

The time that the budget spend was last computed

timeUpdated String

Time that budget was updated

version Integer

Version of the budget. Starts from 1 and increments by 1.

actualSpend number

The actual spend in currency for the current budget cycle

alertRuleCount number

Total number of alert rules in the budget

amount number

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

budgetProcessingPeriodStartOffset number

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

compartmentId string

The OCID of the tenancy

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description string

(Updatable) The description of the budget.

displayName string

(Updatable) The displayName of the budget.

forecastedSpend number

The forecasted spend in currency by the end of the current budget cycle

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

resetPeriod string

(Updatable) The reset period for the budget. Valid value is MONTHLY.

state string

The current state of the budget.

targetCompartmentId string

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

targetType string

The type of target on which the budget is applied.

targets string[]

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

timeCreated string

Time that budget was created

timeSpendComputed string

The time that the budget spend was last computed

timeUpdated string

Time that budget was updated

version number

Version of the budget. Starts from 1 and increments by 1.

actual_spend float

The actual spend in currency for the current budget cycle

alert_rule_count int

Total number of alert rules in the budget

amount int

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

budget_processing_period_start_offset int

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

compartment_id str

The OCID of the tenancy

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description str

(Updatable) The description of the budget.

display_name str

(Updatable) The displayName of the budget.

forecasted_spend float

The forecasted spend in currency by the end of the current budget cycle

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

reset_period str

(Updatable) The reset period for the budget. Valid value is MONTHLY.

state str

The current state of the budget.

target_compartment_id str

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

target_type str

The type of target on which the budget is applied.

targets Sequence[str]

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

time_created str

Time that budget was created

time_spend_computed str

The time that the budget spend was last computed

time_updated str

Time that budget was updated

version int

Version of the budget. Starts from 1 and increments by 1.

actualSpend Number

The actual spend in currency for the current budget cycle

alertRuleCount Number

Total number of alert rules in the budget

amount Number

(Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.

budgetProcessingPeriodStartOffset Number

(Updatable) The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.

compartmentId String

The OCID of the tenancy

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

(Updatable) The description of the budget.

displayName String

(Updatable) The displayName of the budget.

forecastedSpend Number

The forecasted spend in currency by the end of the current budget cycle

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

resetPeriod String

(Updatable) The reset period for the budget. Valid value is MONTHLY.

state String

The current state of the budget.

targetCompartmentId String

This is DEPRECTAED. Set the target compartment id in targets instead.

Deprecated:

The 'target_compartment_id' field has been deprecated. Please use 'target_type' instead.

targetType String

The type of target on which the budget is applied.

targets List<String>

The list of targets on which the budget is applied. If targetType is "COMPARTMENT", targets contains list of compartment OCIDs. If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain EXACT ONE item.

timeCreated String

Time that budget was created

timeSpendComputed String

The time that the budget spend was last computed

timeUpdated String

Time that budget was updated

version Number

Version of the budget. Starts from 1 and increments by 1.

Import

Budgets can be imported using the id, e.g.

 $ pulumi import oci:Budget/budget:Budget test_budget "id"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.