budget

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Budget

type Budget struct {
	pulumi.CustomResourceState

	// The actual spend in currency for the current budget cycle.
	ActualSpend pulumi.Float64Output `pulumi:"actualSpend"`
	// The total number of alert rules in the budget.
	AlertRuleCount pulumi.IntOutput `pulumi:"alertRuleCount"`
	// (Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.
	Amount pulumi.IntOutput `pulumi:"amount"`
	// (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.
	BudgetProcessingPeriodStartOffset pulumi.IntOutput `pulumi:"budgetProcessingPeriodStartOffset"`
	// The OCID of the compartment.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// (Updatable) The description of the budget.
	Description pulumi.StringOutput `pulumi:"description"`
	// (Updatable) The displayName of the budget. Avoid entering confidential information.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// (Updatable) The date when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	EndDate pulumi.StringOutput `pulumi:"endDate"`
	// The forecasted spend in currency by the end of the current budget cycle.
	ForecastedSpend pulumi.Float64Output `pulumi:"forecastedSpend"`
	// (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// (Updatable) The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
	ProcessingPeriodType pulumi.StringOutput `pulumi:"processingPeriodType"`
	// (Updatable) The reset period for the budget. Valid value is MONTHLY.
	ResetPeriod pulumi.StringOutput `pulumi:"resetPeriod"`
	// (Updatable) The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	StartDate pulumi.StringOutput `pulumi:"startDate"`
	// The current state of the budget.
	State pulumi.StringOutput `pulumi:"state"`
	// This is DEPRECATED. Set the target compartment ID in targets instead.
	//
	// Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.
	TargetCompartmentId pulumi.StringOutput `pulumi:"targetCompartmentId"`
	// The type of target on which the budget is applied.
	TargetType pulumi.StringOutput `pulumi:"targetType"`
	// The list of targets on which the budget is applied. If targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain exactly one item.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Targets pulumi.StringArrayOutput `pulumi:"targets"`
	// The time that the budget was created.
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The time that the budget spend was last computed.
	TimeSpendComputed pulumi.StringOutput `pulumi:"timeSpendComputed"`
	// The time that the budget was updated.
	TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
	// The version of the budget. Starts from 1 and increments by 1.
	Version pulumi.IntOutput `pulumi:"version"`
}

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

Creates a new budget.

## Example Usage

```go 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, "test_budget", &Budget.BudgetArgs{
			Amount:                            pulumi.Any(budgetAmount),
			CompartmentId:                     pulumi.Any(tenancyOcid),
			ResetPeriod:                       pulumi.Any(budgetResetPeriod),
			BudgetProcessingPeriodStartOffset: pulumi.Any(budgetBudgetProcessingPeriodStartOffset),
			DefinedTags: pulumi.Map{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(budgetDescription),
			DisplayName: pulumi.Any(budgetDisplayName),
			EndDate:     pulumi.Any(budgetEndDate),
			FreeformTags: pulumi.Map{
				"Department": pulumi.Any("Finance"),
			},
			ProcessingPeriodType: pulumi.Any(budgetProcessingPeriodType),
			StartDate:            pulumi.Any(budgetStartDate),
			TargetCompartmentId:  pulumi.Any(testCompartment.Id),
			TargetType:           pulumi.Any(budgetTargetType),
			Targets:              pulumi.Any(budgetTargets),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

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

func GetBudget

func GetBudget(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BudgetState, opts ...pulumi.ResourceOption) (*Budget, error)

GetBudget gets an existing Budget resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBudget

func NewBudget(ctx *pulumi.Context,
	name string, args *BudgetArgs, opts ...pulumi.ResourceOption) (*Budget, error)

NewBudget registers a new resource with the given unique name, arguments, and options.

func (*Budget) ElementType

func (*Budget) ElementType() reflect.Type

func (*Budget) ToBudgetOutput

func (i *Budget) ToBudgetOutput() BudgetOutput

func (*Budget) ToBudgetOutputWithContext

func (i *Budget) ToBudgetOutputWithContext(ctx context.Context) BudgetOutput

type BudgetArgs

type BudgetArgs struct {
	// (Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.
	Amount pulumi.IntInput
	// (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.
	BudgetProcessingPeriodStartOffset pulumi.IntPtrInput
	// The OCID of the compartment.
	CompartmentId pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) The description of the budget.
	Description pulumi.StringPtrInput
	// (Updatable) The displayName of the budget. Avoid entering confidential information.
	DisplayName pulumi.StringPtrInput
	// (Updatable) The date when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	EndDate pulumi.StringPtrInput
	// (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// (Updatable) The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
	ProcessingPeriodType pulumi.StringPtrInput
	// (Updatable) The reset period for the budget. Valid value is MONTHLY.
	ResetPeriod pulumi.StringInput
	// (Updatable) The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	StartDate pulumi.StringPtrInput
	// This is DEPRECATED. Set the target compartment ID in targets instead.
	//
	// Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.
	TargetCompartmentId pulumi.StringPtrInput
	// The type of target on which the budget is applied.
	TargetType pulumi.StringPtrInput
	// The list of targets on which the budget is applied. If targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain exactly one item.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Targets pulumi.StringArrayInput
}

The set of arguments for constructing a Budget resource.

func (BudgetArgs) ElementType

func (BudgetArgs) ElementType() reflect.Type

type BudgetArray

type BudgetArray []BudgetInput

func (BudgetArray) ElementType

func (BudgetArray) ElementType() reflect.Type

func (BudgetArray) ToBudgetArrayOutput

func (i BudgetArray) ToBudgetArrayOutput() BudgetArrayOutput

func (BudgetArray) ToBudgetArrayOutputWithContext

func (i BudgetArray) ToBudgetArrayOutputWithContext(ctx context.Context) BudgetArrayOutput

type BudgetArrayInput

type BudgetArrayInput interface {
	pulumi.Input

	ToBudgetArrayOutput() BudgetArrayOutput
	ToBudgetArrayOutputWithContext(context.Context) BudgetArrayOutput
}

BudgetArrayInput is an input type that accepts BudgetArray and BudgetArrayOutput values. You can construct a concrete instance of `BudgetArrayInput` via:

BudgetArray{ BudgetArgs{...} }

type BudgetArrayOutput

type BudgetArrayOutput struct{ *pulumi.OutputState }

func (BudgetArrayOutput) ElementType

func (BudgetArrayOutput) ElementType() reflect.Type

func (BudgetArrayOutput) Index

func (BudgetArrayOutput) ToBudgetArrayOutput

func (o BudgetArrayOutput) ToBudgetArrayOutput() BudgetArrayOutput

func (BudgetArrayOutput) ToBudgetArrayOutputWithContext

func (o BudgetArrayOutput) ToBudgetArrayOutputWithContext(ctx context.Context) BudgetArrayOutput

type BudgetInput

type BudgetInput interface {
	pulumi.Input

	ToBudgetOutput() BudgetOutput
	ToBudgetOutputWithContext(ctx context.Context) BudgetOutput
}

type BudgetMap

type BudgetMap map[string]BudgetInput

func (BudgetMap) ElementType

func (BudgetMap) ElementType() reflect.Type

func (BudgetMap) ToBudgetMapOutput

func (i BudgetMap) ToBudgetMapOutput() BudgetMapOutput

func (BudgetMap) ToBudgetMapOutputWithContext

func (i BudgetMap) ToBudgetMapOutputWithContext(ctx context.Context) BudgetMapOutput

type BudgetMapInput

type BudgetMapInput interface {
	pulumi.Input

	ToBudgetMapOutput() BudgetMapOutput
	ToBudgetMapOutputWithContext(context.Context) BudgetMapOutput
}

BudgetMapInput is an input type that accepts BudgetMap and BudgetMapOutput values. You can construct a concrete instance of `BudgetMapInput` via:

BudgetMap{ "key": BudgetArgs{...} }

type BudgetMapOutput

type BudgetMapOutput struct{ *pulumi.OutputState }

func (BudgetMapOutput) ElementType

func (BudgetMapOutput) ElementType() reflect.Type

func (BudgetMapOutput) MapIndex

func (BudgetMapOutput) ToBudgetMapOutput

func (o BudgetMapOutput) ToBudgetMapOutput() BudgetMapOutput

func (BudgetMapOutput) ToBudgetMapOutputWithContext

func (o BudgetMapOutput) ToBudgetMapOutputWithContext(ctx context.Context) BudgetMapOutput

type BudgetOutput

type BudgetOutput struct{ *pulumi.OutputState }

func (BudgetOutput) ActualSpend added in v0.4.0

func (o BudgetOutput) ActualSpend() pulumi.Float64Output

The actual spend in currency for the current budget cycle.

func (BudgetOutput) AlertRuleCount added in v0.4.0

func (o BudgetOutput) AlertRuleCount() pulumi.IntOutput

The total number of alert rules in the budget.

func (BudgetOutput) Amount added in v0.4.0

func (o BudgetOutput) Amount() pulumi.IntOutput

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

func (BudgetOutput) BudgetProcessingPeriodStartOffset added in v0.4.0

func (o BudgetOutput) BudgetProcessingPeriodStartOffset() pulumi.IntOutput

(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.

func (BudgetOutput) CompartmentId added in v0.4.0

func (o BudgetOutput) CompartmentId() pulumi.StringOutput

The OCID of the compartment.

func (BudgetOutput) DefinedTags added in v0.4.0

func (o BudgetOutput) DefinedTags() pulumi.MapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (BudgetOutput) Description added in v0.4.0

func (o BudgetOutput) Description() pulumi.StringOutput

(Updatable) The description of the budget.

func (BudgetOutput) DisplayName added in v0.4.0

func (o BudgetOutput) DisplayName() pulumi.StringOutput

(Updatable) The displayName of the budget. Avoid entering confidential information.

func (BudgetOutput) ElementType

func (BudgetOutput) ElementType() reflect.Type

func (BudgetOutput) EndDate added in v1.5.0

func (o BudgetOutput) EndDate() pulumi.StringOutput

(Updatable) The date when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.

func (BudgetOutput) ForecastedSpend added in v0.4.0

func (o BudgetOutput) ForecastedSpend() pulumi.Float64Output

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

func (BudgetOutput) FreeformTags added in v0.4.0

func (o BudgetOutput) FreeformTags() pulumi.MapOutput

(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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (BudgetOutput) ProcessingPeriodType added in v0.4.0

func (o BudgetOutput) ProcessingPeriodType() pulumi.StringOutput

(Updatable) The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.

func (BudgetOutput) ResetPeriod added in v0.4.0

func (o BudgetOutput) ResetPeriod() pulumi.StringOutput

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

func (BudgetOutput) StartDate added in v1.5.0

func (o BudgetOutput) StartDate() pulumi.StringOutput

(Updatable) The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.

func (BudgetOutput) State added in v0.4.0

func (o BudgetOutput) State() pulumi.StringOutput

The current state of the budget.

func (BudgetOutput) TargetCompartmentId deprecated added in v0.4.0

func (o BudgetOutput) TargetCompartmentId() pulumi.StringOutput

This is DEPRECATED. Set the target compartment ID in targets instead.

Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.

func (BudgetOutput) TargetType added in v0.4.0

func (o BudgetOutput) TargetType() pulumi.StringOutput

The type of target on which the budget is applied.

func (BudgetOutput) Targets added in v0.4.0

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

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (BudgetOutput) TimeCreated added in v0.4.0

func (o BudgetOutput) TimeCreated() pulumi.StringOutput

The time that the budget was created.

func (BudgetOutput) TimeSpendComputed added in v0.4.0

func (o BudgetOutput) TimeSpendComputed() pulumi.StringOutput

The time that the budget spend was last computed.

func (BudgetOutput) TimeUpdated added in v0.4.0

func (o BudgetOutput) TimeUpdated() pulumi.StringOutput

The time that the budget was updated.

func (BudgetOutput) ToBudgetOutput

func (o BudgetOutput) ToBudgetOutput() BudgetOutput

func (BudgetOutput) ToBudgetOutputWithContext

func (o BudgetOutput) ToBudgetOutputWithContext(ctx context.Context) BudgetOutput

func (BudgetOutput) Version added in v0.4.0

func (o BudgetOutput) Version() pulumi.IntOutput

The version of the budget. Starts from 1 and increments by 1.

type BudgetState

type BudgetState struct {
	// The actual spend in currency for the current budget cycle.
	ActualSpend pulumi.Float64PtrInput
	// The total number of alert rules in the budget.
	AlertRuleCount pulumi.IntPtrInput
	// (Updatable) The amount of the budget expressed as a whole number in the currency of the customer's rate card.
	Amount pulumi.IntPtrInput
	// (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.
	BudgetProcessingPeriodStartOffset pulumi.IntPtrInput
	// The OCID of the compartment.
	CompartmentId pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) The description of the budget.
	Description pulumi.StringPtrInput
	// (Updatable) The displayName of the budget. Avoid entering confidential information.
	DisplayName pulumi.StringPtrInput
	// (Updatable) The date when the one-time budget concludes. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	EndDate pulumi.StringPtrInput
	// The forecasted spend in currency by the end of the current budget cycle.
	ForecastedSpend pulumi.Float64PtrInput
	// (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// (Updatable) The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
	ProcessingPeriodType pulumi.StringPtrInput
	// (Updatable) The reset period for the budget. Valid value is MONTHLY.
	ResetPeriod pulumi.StringPtrInput
	// (Updatable) The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	StartDate pulumi.StringPtrInput
	// The current state of the budget.
	State pulumi.StringPtrInput
	// This is DEPRECATED. Set the target compartment ID in targets instead.
	//
	// Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.
	TargetCompartmentId pulumi.StringPtrInput
	// The type of target on which the budget is applied.
	TargetType pulumi.StringPtrInput
	// The list of targets on which the budget is applied. If targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}". Curerntly, the array should contain exactly one item.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Targets pulumi.StringArrayInput
	// The time that the budget was created.
	TimeCreated pulumi.StringPtrInput
	// The time that the budget spend was last computed.
	TimeSpendComputed pulumi.StringPtrInput
	// The time that the budget was updated.
	TimeUpdated pulumi.StringPtrInput
	// The version of the budget. Starts from 1 and increments by 1.
	Version pulumi.IntPtrInput
}

func (BudgetState) ElementType

func (BudgetState) ElementType() reflect.Type

type GetAlertRuleArgs

type GetAlertRuleArgs struct {
	// The unique Alert Rule OCID.
	AlertRuleId string `pulumi:"alertRuleId"`
	// The unique budget OCID.
	BudgetId string `pulumi:"budgetId"`
}

A collection of arguments for invoking getAlertRule.

type GetAlertRuleOutputArgs

type GetAlertRuleOutputArgs struct {
	// The unique Alert Rule OCID.
	AlertRuleId pulumi.StringInput `pulumi:"alertRuleId"`
	// The unique budget OCID.
	BudgetId pulumi.StringInput `pulumi:"budgetId"`
}

A collection of arguments for invoking getAlertRule.

func (GetAlertRuleOutputArgs) ElementType

func (GetAlertRuleOutputArgs) ElementType() reflect.Type

type GetAlertRuleResult

type GetAlertRuleResult struct {
	AlertRuleId string `pulumi:"alertRuleId"`
	// The OCID of the budget.
	BudgetId string `pulumi:"budgetId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The description of the alert rule.
	Description string `pulumi:"description"`
	// The name of the alert rule. Avoid entering confidential information.
	DisplayName string `pulumi:"displayName"`
	// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The OCID of the alert rule.
	Id string `pulumi:"id"`
	// The custom message that will be sent when the alert is triggered.
	Message string `pulumi:"message"`
	// The delimited list of email addresses to receive the alert when it triggers. Delimiter characters can be a comma, space, TAB, or semicolon.
	Recipients string `pulumi:"recipients"`
	// The current state of the alert rule.
	State string `pulumi:"state"`
	// The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.
	Threshold float64 `pulumi:"threshold"`
	// The type of threshold.
	ThresholdType string `pulumi:"thresholdType"`
	// The time when the budget was created.
	TimeCreated string `pulumi:"timeCreated"`
	// The time when the budget was updated.
	TimeUpdated string `pulumi:"timeUpdated"`
	// The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).
	Type string `pulumi:"type"`
	// The version of the alert rule. Starts from 1 and increments by 1.
	Version int `pulumi:"version"`
}

A collection of values returned by getAlertRule.

func GetAlertRule

func GetAlertRule(ctx *pulumi.Context, args *GetAlertRuleArgs, opts ...pulumi.InvokeOption) (*GetAlertRuleResult, error)

This data source provides details about a specific Alert Rule resource in Oracle Cloud Infrastructure Budget service.

Gets an Alert Rule for a specified budget.

## Example Usage

```go 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.GetAlertRule(ctx, &budget.GetAlertRuleArgs{
			AlertRuleId: testAlertRuleOciBudgetAlertRule.Id,
			BudgetId:    testBudget.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAlertRuleResultOutput

type GetAlertRuleResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAlertRule.

func (GetAlertRuleResultOutput) AlertRuleId

func (GetAlertRuleResultOutput) BudgetId

The OCID of the budget.

func (GetAlertRuleResultOutput) DefinedTags

func (o GetAlertRuleResultOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetAlertRuleResultOutput) Description

The description of the alert rule.

func (GetAlertRuleResultOutput) DisplayName

The name of the alert rule. Avoid entering confidential information.

func (GetAlertRuleResultOutput) ElementType

func (GetAlertRuleResultOutput) ElementType() reflect.Type

func (GetAlertRuleResultOutput) FreeformTags

func (o GetAlertRuleResultOutput) FreeformTags() pulumi.MapOutput

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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetAlertRuleResultOutput) Id

The OCID of the alert rule.

func (GetAlertRuleResultOutput) Message

The custom message that will be sent when the alert is triggered.

func (GetAlertRuleResultOutput) Recipients

The delimited list of email addresses to receive the alert when it triggers. Delimiter characters can be a comma, space, TAB, or semicolon.

func (GetAlertRuleResultOutput) State

The current state of the alert rule.

func (GetAlertRuleResultOutput) Threshold

The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.

func (GetAlertRuleResultOutput) ThresholdType

func (o GetAlertRuleResultOutput) ThresholdType() pulumi.StringOutput

The type of threshold.

func (GetAlertRuleResultOutput) TimeCreated

The time when the budget was created.

func (GetAlertRuleResultOutput) TimeUpdated

The time when the budget was updated.

func (GetAlertRuleResultOutput) ToGetAlertRuleResultOutput

func (o GetAlertRuleResultOutput) ToGetAlertRuleResultOutput() GetAlertRuleResultOutput

func (GetAlertRuleResultOutput) ToGetAlertRuleResultOutputWithContext

func (o GetAlertRuleResultOutput) ToGetAlertRuleResultOutputWithContext(ctx context.Context) GetAlertRuleResultOutput

func (GetAlertRuleResultOutput) Type

The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).

func (GetAlertRuleResultOutput) Version

The version of the alert rule. Starts from 1 and increments by 1.

type GetAlertRulesAlertRule

type GetAlertRulesAlertRule struct {
	// The unique budget OCID.
	BudgetId string `pulumi:"budgetId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The description of the alert rule.
	Description string `pulumi:"description"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName string `pulumi:"displayName"`
	// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The OCID of the alert rule.
	Id string `pulumi:"id"`
	// The custom message that will be sent when the alert is triggered.
	Message string `pulumi:"message"`
	// The delimited list of email addresses to receive the alert when it triggers. Delimiter characters can be a comma, space, TAB, or semicolon.
	Recipients string `pulumi:"recipients"`
	// The current state of the resource to filter by.
	State string `pulumi:"state"`
	// The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.
	Threshold float64 `pulumi:"threshold"`
	// The type of threshold.
	ThresholdType string `pulumi:"thresholdType"`
	// The time when the budget was created.
	TimeCreated string `pulumi:"timeCreated"`
	// The time when the budget was updated.
	TimeUpdated string `pulumi:"timeUpdated"`
	// The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).
	Type string `pulumi:"type"`
	// The version of the alert rule. Starts from 1 and increments by 1.
	Version int `pulumi:"version"`
}

type GetAlertRulesAlertRuleArgs

type GetAlertRulesAlertRuleArgs struct {
	// The unique budget OCID.
	BudgetId pulumi.StringInput `pulumi:"budgetId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput `pulumi:"definedTags"`
	// The description of the alert rule.
	Description pulumi.StringInput `pulumi:"description"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput `pulumi:"freeformTags"`
	// The OCID of the alert rule.
	Id pulumi.StringInput `pulumi:"id"`
	// The custom message that will be sent when the alert is triggered.
	Message pulumi.StringInput `pulumi:"message"`
	// The delimited list of email addresses to receive the alert when it triggers. Delimiter characters can be a comma, space, TAB, or semicolon.
	Recipients pulumi.StringInput `pulumi:"recipients"`
	// The current state of the resource to filter by.
	State pulumi.StringInput `pulumi:"state"`
	// The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.
	Threshold pulumi.Float64Input `pulumi:"threshold"`
	// The type of threshold.
	ThresholdType pulumi.StringInput `pulumi:"thresholdType"`
	// The time when the budget was created.
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
	// The time when the budget was updated.
	TimeUpdated pulumi.StringInput `pulumi:"timeUpdated"`
	// The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).
	Type pulumi.StringInput `pulumi:"type"`
	// The version of the alert rule. Starts from 1 and increments by 1.
	Version pulumi.IntInput `pulumi:"version"`
}

func (GetAlertRulesAlertRuleArgs) ElementType

func (GetAlertRulesAlertRuleArgs) ElementType() reflect.Type

func (GetAlertRulesAlertRuleArgs) ToGetAlertRulesAlertRuleOutput

func (i GetAlertRulesAlertRuleArgs) ToGetAlertRulesAlertRuleOutput() GetAlertRulesAlertRuleOutput

func (GetAlertRulesAlertRuleArgs) ToGetAlertRulesAlertRuleOutputWithContext

func (i GetAlertRulesAlertRuleArgs) ToGetAlertRulesAlertRuleOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleOutput

type GetAlertRulesAlertRuleArray

type GetAlertRulesAlertRuleArray []GetAlertRulesAlertRuleInput

func (GetAlertRulesAlertRuleArray) ElementType

func (GetAlertRulesAlertRuleArray) ToGetAlertRulesAlertRuleArrayOutput

func (i GetAlertRulesAlertRuleArray) ToGetAlertRulesAlertRuleArrayOutput() GetAlertRulesAlertRuleArrayOutput

func (GetAlertRulesAlertRuleArray) ToGetAlertRulesAlertRuleArrayOutputWithContext

func (i GetAlertRulesAlertRuleArray) ToGetAlertRulesAlertRuleArrayOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleArrayOutput

type GetAlertRulesAlertRuleArrayInput

type GetAlertRulesAlertRuleArrayInput interface {
	pulumi.Input

	ToGetAlertRulesAlertRuleArrayOutput() GetAlertRulesAlertRuleArrayOutput
	ToGetAlertRulesAlertRuleArrayOutputWithContext(context.Context) GetAlertRulesAlertRuleArrayOutput
}

GetAlertRulesAlertRuleArrayInput is an input type that accepts GetAlertRulesAlertRuleArray and GetAlertRulesAlertRuleArrayOutput values. You can construct a concrete instance of `GetAlertRulesAlertRuleArrayInput` via:

GetAlertRulesAlertRuleArray{ GetAlertRulesAlertRuleArgs{...} }

type GetAlertRulesAlertRuleArrayOutput

type GetAlertRulesAlertRuleArrayOutput struct{ *pulumi.OutputState }

func (GetAlertRulesAlertRuleArrayOutput) ElementType

func (GetAlertRulesAlertRuleArrayOutput) Index

func (GetAlertRulesAlertRuleArrayOutput) ToGetAlertRulesAlertRuleArrayOutput

func (o GetAlertRulesAlertRuleArrayOutput) ToGetAlertRulesAlertRuleArrayOutput() GetAlertRulesAlertRuleArrayOutput

func (GetAlertRulesAlertRuleArrayOutput) ToGetAlertRulesAlertRuleArrayOutputWithContext

func (o GetAlertRulesAlertRuleArrayOutput) ToGetAlertRulesAlertRuleArrayOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleArrayOutput

type GetAlertRulesAlertRuleInput

type GetAlertRulesAlertRuleInput interface {
	pulumi.Input

	ToGetAlertRulesAlertRuleOutput() GetAlertRulesAlertRuleOutput
	ToGetAlertRulesAlertRuleOutputWithContext(context.Context) GetAlertRulesAlertRuleOutput
}

GetAlertRulesAlertRuleInput is an input type that accepts GetAlertRulesAlertRuleArgs and GetAlertRulesAlertRuleOutput values. You can construct a concrete instance of `GetAlertRulesAlertRuleInput` via:

GetAlertRulesAlertRuleArgs{...}

type GetAlertRulesAlertRuleOutput

type GetAlertRulesAlertRuleOutput struct{ *pulumi.OutputState }

func (GetAlertRulesAlertRuleOutput) BudgetId

The unique budget OCID.

func (GetAlertRulesAlertRuleOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetAlertRulesAlertRuleOutput) Description

The description of the alert rule.

func (GetAlertRulesAlertRuleOutput) DisplayName

A user-friendly name. This does not have to be unique, and it's changeable. Example: `My new resource`

func (GetAlertRulesAlertRuleOutput) ElementType

func (GetAlertRulesAlertRuleOutput) FreeformTags

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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetAlertRulesAlertRuleOutput) Id

The OCID of the alert rule.

func (GetAlertRulesAlertRuleOutput) Message

The custom message that will be sent when the alert is triggered.

func (GetAlertRulesAlertRuleOutput) Recipients

The delimited list of email addresses to receive the alert when it triggers. Delimiter characters can be a comma, space, TAB, or semicolon.

func (GetAlertRulesAlertRuleOutput) State

The current state of the resource to filter by.

func (GetAlertRulesAlertRuleOutput) Threshold

The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.

func (GetAlertRulesAlertRuleOutput) ThresholdType

The type of threshold.

func (GetAlertRulesAlertRuleOutput) TimeCreated

The time when the budget was created.

func (GetAlertRulesAlertRuleOutput) TimeUpdated

The time when the budget was updated.

func (GetAlertRulesAlertRuleOutput) ToGetAlertRulesAlertRuleOutput

func (o GetAlertRulesAlertRuleOutput) ToGetAlertRulesAlertRuleOutput() GetAlertRulesAlertRuleOutput

func (GetAlertRulesAlertRuleOutput) ToGetAlertRulesAlertRuleOutputWithContext

func (o GetAlertRulesAlertRuleOutput) ToGetAlertRulesAlertRuleOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleOutput

func (GetAlertRulesAlertRuleOutput) Type

The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).

func (GetAlertRulesAlertRuleOutput) Version

The version of the alert rule. Starts from 1 and increments by 1.

type GetAlertRulesArgs

type GetAlertRulesArgs struct {
	// The unique budget OCID.
	BudgetId string `pulumi:"budgetId"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName *string               `pulumi:"displayName"`
	Filters     []GetAlertRulesFilter `pulumi:"filters"`
	// The current state of the resource to filter by.
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getAlertRules.

type GetAlertRulesFilter

type GetAlertRulesFilter struct {
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetAlertRulesFilterArgs

type GetAlertRulesFilterArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetAlertRulesFilterArgs) ElementType

func (GetAlertRulesFilterArgs) ElementType() reflect.Type

func (GetAlertRulesFilterArgs) ToGetAlertRulesFilterOutput

func (i GetAlertRulesFilterArgs) ToGetAlertRulesFilterOutput() GetAlertRulesFilterOutput

func (GetAlertRulesFilterArgs) ToGetAlertRulesFilterOutputWithContext

func (i GetAlertRulesFilterArgs) ToGetAlertRulesFilterOutputWithContext(ctx context.Context) GetAlertRulesFilterOutput

type GetAlertRulesFilterArray

type GetAlertRulesFilterArray []GetAlertRulesFilterInput

func (GetAlertRulesFilterArray) ElementType

func (GetAlertRulesFilterArray) ElementType() reflect.Type

func (GetAlertRulesFilterArray) ToGetAlertRulesFilterArrayOutput

func (i GetAlertRulesFilterArray) ToGetAlertRulesFilterArrayOutput() GetAlertRulesFilterArrayOutput

func (GetAlertRulesFilterArray) ToGetAlertRulesFilterArrayOutputWithContext

func (i GetAlertRulesFilterArray) ToGetAlertRulesFilterArrayOutputWithContext(ctx context.Context) GetAlertRulesFilterArrayOutput

type GetAlertRulesFilterArrayInput

type GetAlertRulesFilterArrayInput interface {
	pulumi.Input

	ToGetAlertRulesFilterArrayOutput() GetAlertRulesFilterArrayOutput
	ToGetAlertRulesFilterArrayOutputWithContext(context.Context) GetAlertRulesFilterArrayOutput
}

GetAlertRulesFilterArrayInput is an input type that accepts GetAlertRulesFilterArray and GetAlertRulesFilterArrayOutput values. You can construct a concrete instance of `GetAlertRulesFilterArrayInput` via:

GetAlertRulesFilterArray{ GetAlertRulesFilterArgs{...} }

type GetAlertRulesFilterArrayOutput

type GetAlertRulesFilterArrayOutput struct{ *pulumi.OutputState }

func (GetAlertRulesFilterArrayOutput) ElementType

func (GetAlertRulesFilterArrayOutput) Index

func (GetAlertRulesFilterArrayOutput) ToGetAlertRulesFilterArrayOutput

func (o GetAlertRulesFilterArrayOutput) ToGetAlertRulesFilterArrayOutput() GetAlertRulesFilterArrayOutput

func (GetAlertRulesFilterArrayOutput) ToGetAlertRulesFilterArrayOutputWithContext

func (o GetAlertRulesFilterArrayOutput) ToGetAlertRulesFilterArrayOutputWithContext(ctx context.Context) GetAlertRulesFilterArrayOutput

type GetAlertRulesFilterInput

type GetAlertRulesFilterInput interface {
	pulumi.Input

	ToGetAlertRulesFilterOutput() GetAlertRulesFilterOutput
	ToGetAlertRulesFilterOutputWithContext(context.Context) GetAlertRulesFilterOutput
}

GetAlertRulesFilterInput is an input type that accepts GetAlertRulesFilterArgs and GetAlertRulesFilterOutput values. You can construct a concrete instance of `GetAlertRulesFilterInput` via:

GetAlertRulesFilterArgs{...}

type GetAlertRulesFilterOutput

type GetAlertRulesFilterOutput struct{ *pulumi.OutputState }

func (GetAlertRulesFilterOutput) ElementType

func (GetAlertRulesFilterOutput) ElementType() reflect.Type

func (GetAlertRulesFilterOutput) Name

func (GetAlertRulesFilterOutput) Regex

func (GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutput

func (o GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutput() GetAlertRulesFilterOutput

func (GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutputWithContext

func (o GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutputWithContext(ctx context.Context) GetAlertRulesFilterOutput

func (GetAlertRulesFilterOutput) Values

type GetAlertRulesOutputArgs

type GetAlertRulesOutputArgs struct {
	// The unique budget OCID.
	BudgetId pulumi.StringInput `pulumi:"budgetId"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName pulumi.StringPtrInput         `pulumi:"displayName"`
	Filters     GetAlertRulesFilterArrayInput `pulumi:"filters"`
	// The current state of the resource to filter by.
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getAlertRules.

func (GetAlertRulesOutputArgs) ElementType

func (GetAlertRulesOutputArgs) ElementType() reflect.Type

type GetAlertRulesResult

type GetAlertRulesResult struct {
	// The list of alert_rules.
	AlertRules []GetAlertRulesAlertRule `pulumi:"alertRules"`
	// The OCID of the budget.
	BudgetId string `pulumi:"budgetId"`
	// The name of the alert rule. Avoid entering confidential information.
	DisplayName *string               `pulumi:"displayName"`
	Filters     []GetAlertRulesFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current state of the alert rule.
	State *string `pulumi:"state"`
}

A collection of values returned by getAlertRules.

func GetAlertRules

func GetAlertRules(ctx *pulumi.Context, args *GetAlertRulesArgs, opts ...pulumi.InvokeOption) (*GetAlertRulesResult, error)

This data source provides the list of Alert Rules in Oracle Cloud Infrastructure Budget service.

Returns a list of Alert Rules for a specified budget.

## Example Usage

```go 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.GetAlertRules(ctx, &budget.GetAlertRulesArgs{
			BudgetId:    testBudget.Id,
			DisplayName: pulumi.StringRef(alertRuleDisplayName),
			State:       pulumi.StringRef(alertRuleState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAlertRulesResultOutput

type GetAlertRulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAlertRules.

func (GetAlertRulesResultOutput) AlertRules

The list of alert_rules.

func (GetAlertRulesResultOutput) BudgetId

The OCID of the budget.

func (GetAlertRulesResultOutput) DisplayName

The name of the alert rule. Avoid entering confidential information.

func (GetAlertRulesResultOutput) ElementType

func (GetAlertRulesResultOutput) ElementType() reflect.Type

func (GetAlertRulesResultOutput) Filters

func (GetAlertRulesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetAlertRulesResultOutput) State

The current state of the alert rule.

func (GetAlertRulesResultOutput) ToGetAlertRulesResultOutput

func (o GetAlertRulesResultOutput) ToGetAlertRulesResultOutput() GetAlertRulesResultOutput

func (GetAlertRulesResultOutput) ToGetAlertRulesResultOutputWithContext

func (o GetAlertRulesResultOutput) ToGetAlertRulesResultOutputWithContext(ctx context.Context) GetAlertRulesResultOutput

type GetBudgetsArgs

type GetBudgetsArgs struct {
	// The ID of the compartment in which to list resources.
	CompartmentId string `pulumi:"compartmentId"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName *string            `pulumi:"displayName"`
	Filters     []GetBudgetsFilter `pulumi:"filters"`
	// The current state of the resource to filter by.
	State *string `pulumi:"state"`
	// The type of target to filter by:
	// * ALL - List all budgets
	// * COMPARTMENT - List all budgets with targetType == "COMPARTMENT"
	// * TAG - List all budgets with targetType == "TAG"
	TargetType *string `pulumi:"targetType"`
}

A collection of arguments for invoking getBudgets.

type GetBudgetsBudget

type GetBudgetsBudget struct {
	// The actual spend in currency for the current budget cycle.
	ActualSpend float64 `pulumi:"actualSpend"`
	// The total number of alert rules in the budget.
	AlertRuleCount int `pulumi:"alertRuleCount"`
	// The amount of the budget, expressed in the currency of the customer's rate card.
	Amount int `pulumi:"amount"`
	// 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.
	BudgetProcessingPeriodStartOffset int `pulumi:"budgetProcessingPeriodStartOffset"`
	// The ID of the compartment in which to list resources.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The description of the budget.
	Description string `pulumi:"description"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName string `pulumi:"displayName"`
	// The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	EndDate string `pulumi:"endDate"`
	// The forecasted spend in currency by the end of the current budget cycle.
	ForecastedSpend float64 `pulumi:"forecastedSpend"`
	// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The OCID of the budget.
	Id string `pulumi:"id"`
	// The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
	ProcessingPeriodType string `pulumi:"processingPeriodType"`
	// The reset period for the budget.
	ResetPeriod string `pulumi:"resetPeriod"`
	// The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	StartDate string `pulumi:"startDate"`
	// The current state of the resource to filter by.
	State string `pulumi:"state"`
	// This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty.
	//
	// Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.
	TargetCompartmentId string `pulumi:"targetCompartmentId"`
	// The type of target to filter by:
	// * ALL - List all budgets
	// * COMPARTMENT - List all budgets with targetType == "COMPARTMENT"
	// * TAG - List all budgets with targetType == "TAG"
	TargetType string `pulumi:"targetType"`
	// The list of targets on which the budget is applied. If the targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If the targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
	Targets []string `pulumi:"targets"`
	// The time that the budget was created.
	TimeCreated string `pulumi:"timeCreated"`
	// The time that the budget spend was last computed.
	TimeSpendComputed string `pulumi:"timeSpendComputed"`
	// The time that the budget was updated.
	TimeUpdated string `pulumi:"timeUpdated"`
	// The version of the budget. Starts from 1 and increments by 1.
	Version int `pulumi:"version"`
}

type GetBudgetsBudgetArgs

type GetBudgetsBudgetArgs struct {
	// The actual spend in currency for the current budget cycle.
	ActualSpend pulumi.Float64Input `pulumi:"actualSpend"`
	// The total number of alert rules in the budget.
	AlertRuleCount pulumi.IntInput `pulumi:"alertRuleCount"`
	// The amount of the budget, expressed in the currency of the customer's rate card.
	Amount pulumi.IntInput `pulumi:"amount"`
	// 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.
	BudgetProcessingPeriodStartOffset pulumi.IntInput `pulumi:"budgetProcessingPeriodStartOffset"`
	// The ID of the compartment in which to list resources.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput `pulumi:"definedTags"`
	// The description of the budget.
	Description pulumi.StringInput `pulumi:"description"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	EndDate pulumi.StringInput `pulumi:"endDate"`
	// The forecasted spend in currency by the end of the current budget cycle.
	ForecastedSpend pulumi.Float64Input `pulumi:"forecastedSpend"`
	// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput `pulumi:"freeformTags"`
	// The OCID of the budget.
	Id pulumi.StringInput `pulumi:"id"`
	// The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
	ProcessingPeriodType pulumi.StringInput `pulumi:"processingPeriodType"`
	// The reset period for the budget.
	ResetPeriod pulumi.StringInput `pulumi:"resetPeriod"`
	// The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	StartDate pulumi.StringInput `pulumi:"startDate"`
	// The current state of the resource to filter by.
	State pulumi.StringInput `pulumi:"state"`
	// This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty.
	//
	// Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.
	TargetCompartmentId pulumi.StringInput `pulumi:"targetCompartmentId"`
	// The type of target to filter by:
	// * ALL - List all budgets
	// * COMPARTMENT - List all budgets with targetType == "COMPARTMENT"
	// * TAG - List all budgets with targetType == "TAG"
	TargetType pulumi.StringInput `pulumi:"targetType"`
	// The list of targets on which the budget is applied. If the targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If the targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
	Targets pulumi.StringArrayInput `pulumi:"targets"`
	// The time that the budget was created.
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
	// The time that the budget spend was last computed.
	TimeSpendComputed pulumi.StringInput `pulumi:"timeSpendComputed"`
	// The time that the budget was updated.
	TimeUpdated pulumi.StringInput `pulumi:"timeUpdated"`
	// The version of the budget. Starts from 1 and increments by 1.
	Version pulumi.IntInput `pulumi:"version"`
}

func (GetBudgetsBudgetArgs) ElementType

func (GetBudgetsBudgetArgs) ElementType() reflect.Type

func (GetBudgetsBudgetArgs) ToGetBudgetsBudgetOutput

func (i GetBudgetsBudgetArgs) ToGetBudgetsBudgetOutput() GetBudgetsBudgetOutput

func (GetBudgetsBudgetArgs) ToGetBudgetsBudgetOutputWithContext

func (i GetBudgetsBudgetArgs) ToGetBudgetsBudgetOutputWithContext(ctx context.Context) GetBudgetsBudgetOutput

type GetBudgetsBudgetArray

type GetBudgetsBudgetArray []GetBudgetsBudgetInput

func (GetBudgetsBudgetArray) ElementType

func (GetBudgetsBudgetArray) ElementType() reflect.Type

func (GetBudgetsBudgetArray) ToGetBudgetsBudgetArrayOutput

func (i GetBudgetsBudgetArray) ToGetBudgetsBudgetArrayOutput() GetBudgetsBudgetArrayOutput

func (GetBudgetsBudgetArray) ToGetBudgetsBudgetArrayOutputWithContext

func (i GetBudgetsBudgetArray) ToGetBudgetsBudgetArrayOutputWithContext(ctx context.Context) GetBudgetsBudgetArrayOutput

type GetBudgetsBudgetArrayInput

type GetBudgetsBudgetArrayInput interface {
	pulumi.Input

	ToGetBudgetsBudgetArrayOutput() GetBudgetsBudgetArrayOutput
	ToGetBudgetsBudgetArrayOutputWithContext(context.Context) GetBudgetsBudgetArrayOutput
}

GetBudgetsBudgetArrayInput is an input type that accepts GetBudgetsBudgetArray and GetBudgetsBudgetArrayOutput values. You can construct a concrete instance of `GetBudgetsBudgetArrayInput` via:

GetBudgetsBudgetArray{ GetBudgetsBudgetArgs{...} }

type GetBudgetsBudgetArrayOutput

type GetBudgetsBudgetArrayOutput struct{ *pulumi.OutputState }

func (GetBudgetsBudgetArrayOutput) ElementType

func (GetBudgetsBudgetArrayOutput) Index

func (GetBudgetsBudgetArrayOutput) ToGetBudgetsBudgetArrayOutput

func (o GetBudgetsBudgetArrayOutput) ToGetBudgetsBudgetArrayOutput() GetBudgetsBudgetArrayOutput

func (GetBudgetsBudgetArrayOutput) ToGetBudgetsBudgetArrayOutputWithContext

func (o GetBudgetsBudgetArrayOutput) ToGetBudgetsBudgetArrayOutputWithContext(ctx context.Context) GetBudgetsBudgetArrayOutput

type GetBudgetsBudgetInput

type GetBudgetsBudgetInput interface {
	pulumi.Input

	ToGetBudgetsBudgetOutput() GetBudgetsBudgetOutput
	ToGetBudgetsBudgetOutputWithContext(context.Context) GetBudgetsBudgetOutput
}

GetBudgetsBudgetInput is an input type that accepts GetBudgetsBudgetArgs and GetBudgetsBudgetOutput values. You can construct a concrete instance of `GetBudgetsBudgetInput` via:

GetBudgetsBudgetArgs{...}

type GetBudgetsBudgetOutput

type GetBudgetsBudgetOutput struct{ *pulumi.OutputState }

func (GetBudgetsBudgetOutput) ActualSpend

The actual spend in currency for the current budget cycle.

func (GetBudgetsBudgetOutput) AlertRuleCount

func (o GetBudgetsBudgetOutput) AlertRuleCount() pulumi.IntOutput

The total number of alert rules in the budget.

func (GetBudgetsBudgetOutput) Amount

The amount of the budget, expressed in the currency of the customer's rate card.

func (GetBudgetsBudgetOutput) BudgetProcessingPeriodStartOffset

func (o GetBudgetsBudgetOutput) BudgetProcessingPeriodStartOffset() pulumi.IntOutput

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.

func (GetBudgetsBudgetOutput) CompartmentId

func (o GetBudgetsBudgetOutput) CompartmentId() pulumi.StringOutput

The ID of the compartment in which to list resources.

func (GetBudgetsBudgetOutput) DefinedTags

func (o GetBudgetsBudgetOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetBudgetsBudgetOutput) Description

func (o GetBudgetsBudgetOutput) Description() pulumi.StringOutput

The description of the budget.

func (GetBudgetsBudgetOutput) DisplayName

func (o GetBudgetsBudgetOutput) DisplayName() pulumi.StringOutput

A user-friendly name. This does not have to be unique, and it's changeable. Example: `My new resource`

func (GetBudgetsBudgetOutput) ElementType

func (GetBudgetsBudgetOutput) ElementType() reflect.Type

func (GetBudgetsBudgetOutput) EndDate added in v1.5.0

The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.

func (GetBudgetsBudgetOutput) ForecastedSpend

func (o GetBudgetsBudgetOutput) ForecastedSpend() pulumi.Float64Output

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

func (GetBudgetsBudgetOutput) FreeformTags

func (o GetBudgetsBudgetOutput) FreeformTags() pulumi.MapOutput

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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetBudgetsBudgetOutput) Id

The OCID of the budget.

func (GetBudgetsBudgetOutput) ProcessingPeriodType added in v0.2.0

func (o GetBudgetsBudgetOutput) ProcessingPeriodType() pulumi.StringOutput

The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.

func (GetBudgetsBudgetOutput) ResetPeriod

func (o GetBudgetsBudgetOutput) ResetPeriod() pulumi.StringOutput

The reset period for the budget.

func (GetBudgetsBudgetOutput) StartDate added in v1.5.0

The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.

func (GetBudgetsBudgetOutput) State

The current state of the resource to filter by.

func (GetBudgetsBudgetOutput) TargetCompartmentId deprecated

func (o GetBudgetsBudgetOutput) TargetCompartmentId() pulumi.StringOutput

This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty.

Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.

func (GetBudgetsBudgetOutput) TargetType

The type of target to filter by: * ALL - List all budgets * COMPARTMENT - List all budgets with targetType == "COMPARTMENT" * TAG - List all budgets with targetType == "TAG"

func (GetBudgetsBudgetOutput) Targets

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

func (GetBudgetsBudgetOutput) TimeCreated

func (o GetBudgetsBudgetOutput) TimeCreated() pulumi.StringOutput

The time that the budget was created.

func (GetBudgetsBudgetOutput) TimeSpendComputed

func (o GetBudgetsBudgetOutput) TimeSpendComputed() pulumi.StringOutput

The time that the budget spend was last computed.

func (GetBudgetsBudgetOutput) TimeUpdated

func (o GetBudgetsBudgetOutput) TimeUpdated() pulumi.StringOutput

The time that the budget was updated.

func (GetBudgetsBudgetOutput) ToGetBudgetsBudgetOutput

func (o GetBudgetsBudgetOutput) ToGetBudgetsBudgetOutput() GetBudgetsBudgetOutput

func (GetBudgetsBudgetOutput) ToGetBudgetsBudgetOutputWithContext

func (o GetBudgetsBudgetOutput) ToGetBudgetsBudgetOutputWithContext(ctx context.Context) GetBudgetsBudgetOutput

func (GetBudgetsBudgetOutput) Version

The version of the budget. Starts from 1 and increments by 1.

type GetBudgetsFilter

type GetBudgetsFilter struct {
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetBudgetsFilterArgs

type GetBudgetsFilterArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetBudgetsFilterArgs) ElementType

func (GetBudgetsFilterArgs) ElementType() reflect.Type

func (GetBudgetsFilterArgs) ToGetBudgetsFilterOutput

func (i GetBudgetsFilterArgs) ToGetBudgetsFilterOutput() GetBudgetsFilterOutput

func (GetBudgetsFilterArgs) ToGetBudgetsFilterOutputWithContext

func (i GetBudgetsFilterArgs) ToGetBudgetsFilterOutputWithContext(ctx context.Context) GetBudgetsFilterOutput

type GetBudgetsFilterArray

type GetBudgetsFilterArray []GetBudgetsFilterInput

func (GetBudgetsFilterArray) ElementType

func (GetBudgetsFilterArray) ElementType() reflect.Type

func (GetBudgetsFilterArray) ToGetBudgetsFilterArrayOutput

func (i GetBudgetsFilterArray) ToGetBudgetsFilterArrayOutput() GetBudgetsFilterArrayOutput

func (GetBudgetsFilterArray) ToGetBudgetsFilterArrayOutputWithContext

func (i GetBudgetsFilterArray) ToGetBudgetsFilterArrayOutputWithContext(ctx context.Context) GetBudgetsFilterArrayOutput

type GetBudgetsFilterArrayInput

type GetBudgetsFilterArrayInput interface {
	pulumi.Input

	ToGetBudgetsFilterArrayOutput() GetBudgetsFilterArrayOutput
	ToGetBudgetsFilterArrayOutputWithContext(context.Context) GetBudgetsFilterArrayOutput
}

GetBudgetsFilterArrayInput is an input type that accepts GetBudgetsFilterArray and GetBudgetsFilterArrayOutput values. You can construct a concrete instance of `GetBudgetsFilterArrayInput` via:

GetBudgetsFilterArray{ GetBudgetsFilterArgs{...} }

type GetBudgetsFilterArrayOutput

type GetBudgetsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetBudgetsFilterArrayOutput) ElementType

func (GetBudgetsFilterArrayOutput) Index

func (GetBudgetsFilterArrayOutput) ToGetBudgetsFilterArrayOutput

func (o GetBudgetsFilterArrayOutput) ToGetBudgetsFilterArrayOutput() GetBudgetsFilterArrayOutput

func (GetBudgetsFilterArrayOutput) ToGetBudgetsFilterArrayOutputWithContext

func (o GetBudgetsFilterArrayOutput) ToGetBudgetsFilterArrayOutputWithContext(ctx context.Context) GetBudgetsFilterArrayOutput

type GetBudgetsFilterInput

type GetBudgetsFilterInput interface {
	pulumi.Input

	ToGetBudgetsFilterOutput() GetBudgetsFilterOutput
	ToGetBudgetsFilterOutputWithContext(context.Context) GetBudgetsFilterOutput
}

GetBudgetsFilterInput is an input type that accepts GetBudgetsFilterArgs and GetBudgetsFilterOutput values. You can construct a concrete instance of `GetBudgetsFilterInput` via:

GetBudgetsFilterArgs{...}

type GetBudgetsFilterOutput

type GetBudgetsFilterOutput struct{ *pulumi.OutputState }

func (GetBudgetsFilterOutput) ElementType

func (GetBudgetsFilterOutput) ElementType() reflect.Type

func (GetBudgetsFilterOutput) Name

func (GetBudgetsFilterOutput) Regex

func (GetBudgetsFilterOutput) ToGetBudgetsFilterOutput

func (o GetBudgetsFilterOutput) ToGetBudgetsFilterOutput() GetBudgetsFilterOutput

func (GetBudgetsFilterOutput) ToGetBudgetsFilterOutputWithContext

func (o GetBudgetsFilterOutput) ToGetBudgetsFilterOutputWithContext(ctx context.Context) GetBudgetsFilterOutput

func (GetBudgetsFilterOutput) Values

type GetBudgetsOutputArgs

type GetBudgetsOutputArgs struct {
	// The ID of the compartment in which to list resources.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// A user-friendly name. This does not have to be unique, and it's changeable.  Example: `My new resource`
	DisplayName pulumi.StringPtrInput      `pulumi:"displayName"`
	Filters     GetBudgetsFilterArrayInput `pulumi:"filters"`
	// The current state of the resource to filter by.
	State pulumi.StringPtrInput `pulumi:"state"`
	// The type of target to filter by:
	// * ALL - List all budgets
	// * COMPARTMENT - List all budgets with targetType == "COMPARTMENT"
	// * TAG - List all budgets with targetType == "TAG"
	TargetType pulumi.StringPtrInput `pulumi:"targetType"`
}

A collection of arguments for invoking getBudgets.

func (GetBudgetsOutputArgs) ElementType

func (GetBudgetsOutputArgs) ElementType() reflect.Type

type GetBudgetsResult

type GetBudgetsResult struct {
	// The list of budgets.
	Budgets []GetBudgetsBudget `pulumi:"budgets"`
	// The OCID of the compartment.
	CompartmentId string `pulumi:"compartmentId"`
	// The display name of the budget. Avoid entering confidential information.
	DisplayName *string            `pulumi:"displayName"`
	Filters     []GetBudgetsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current state of the budget.
	State *string `pulumi:"state"`
	// The type of target on which the budget is applied.
	TargetType *string `pulumi:"targetType"`
}

A collection of values returned by getBudgets.

func GetBudgets

func GetBudgets(ctx *pulumi.Context, args *GetBudgetsArgs, opts ...pulumi.InvokeOption) (*GetBudgetsResult, error)

This data source provides the list of Budgets in Oracle Cloud Infrastructure Budget service.

Gets a list of budgets in a compartment.

By default, ListBudgets returns budgets of the 'COMPARTMENT' target type, and the budget records with only one target compartment OCID.

To list all budgets, set the targetType query parameter to ALL (for example: 'targetType=ALL').

Clients should ignore new targetTypes, or upgrade to the latest version of the client SDK to handle new targetTypes.

## Example Usage

```go 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.GetBudgets(ctx, &budget.GetBudgetsArgs{
			CompartmentId: tenancyOcid,
			DisplayName:   pulumi.StringRef(budgetDisplayName),
			State:         pulumi.StringRef(budgetState),
			TargetType:    pulumi.StringRef(budgetTargetType),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetBudgetsResultOutput

type GetBudgetsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBudgets.

func (GetBudgetsResultOutput) Budgets

The list of budgets.

func (GetBudgetsResultOutput) CompartmentId

func (o GetBudgetsResultOutput) CompartmentId() pulumi.StringOutput

The OCID of the compartment.

func (GetBudgetsResultOutput) DisplayName

The display name of the budget. Avoid entering confidential information.

func (GetBudgetsResultOutput) ElementType

func (GetBudgetsResultOutput) ElementType() reflect.Type

func (GetBudgetsResultOutput) Filters

func (GetBudgetsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBudgetsResultOutput) State

The current state of the budget.

func (GetBudgetsResultOutput) TargetType

The type of target on which the budget is applied.

func (GetBudgetsResultOutput) ToGetBudgetsResultOutput

func (o GetBudgetsResultOutput) ToGetBudgetsResultOutput() GetBudgetsResultOutput

func (GetBudgetsResultOutput) ToGetBudgetsResultOutputWithContext

func (o GetBudgetsResultOutput) ToGetBudgetsResultOutputWithContext(ctx context.Context) GetBudgetsResultOutput

type LookupBudgetArgs

type LookupBudgetArgs struct {
	// The unique budget OCID.
	BudgetId string `pulumi:"budgetId"`
}

A collection of arguments for invoking getBudget.

type LookupBudgetOutputArgs

type LookupBudgetOutputArgs struct {
	// The unique budget OCID.
	BudgetId pulumi.StringInput `pulumi:"budgetId"`
}

A collection of arguments for invoking getBudget.

func (LookupBudgetOutputArgs) ElementType

func (LookupBudgetOutputArgs) ElementType() reflect.Type

type LookupBudgetResult

type LookupBudgetResult struct {
	// The actual spend in currency for the current budget cycle.
	ActualSpend float64 `pulumi:"actualSpend"`
	// The total number of alert rules in the budget.
	AlertRuleCount int `pulumi:"alertRuleCount"`
	// The amount of the budget, expressed in the currency of the customer's rate card.
	Amount   int    `pulumi:"amount"`
	BudgetId string `pulumi:"budgetId"`
	// 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.
	BudgetProcessingPeriodStartOffset int `pulumi:"budgetProcessingPeriodStartOffset"`
	// The OCID of the compartment.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The description of the budget.
	Description string `pulumi:"description"`
	// The display name of the budget. Avoid entering confidential information.
	DisplayName string `pulumi:"displayName"`
	// The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	EndDate string `pulumi:"endDate"`
	// The forecasted spend in currency by the end of the current budget cycle.
	ForecastedSpend float64 `pulumi:"forecastedSpend"`
	// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The OCID of the budget.
	Id string `pulumi:"id"`
	// The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
	ProcessingPeriodType string `pulumi:"processingPeriodType"`
	// The reset period for the budget.
	ResetPeriod string `pulumi:"resetPeriod"`
	// The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.
	StartDate string `pulumi:"startDate"`
	// The current state of the budget.
	State string `pulumi:"state"`
	// This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty.
	//
	// Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.
	TargetCompartmentId string `pulumi:"targetCompartmentId"`
	// The type of target on which the budget is applied.
	TargetType string `pulumi:"targetType"`
	// The list of targets on which the budget is applied. If the targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs. If the targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
	Targets []string `pulumi:"targets"`
	// The time that the budget was created.
	TimeCreated string `pulumi:"timeCreated"`
	// The time that the budget spend was last computed.
	TimeSpendComputed string `pulumi:"timeSpendComputed"`
	// The time that the budget was updated.
	TimeUpdated string `pulumi:"timeUpdated"`
	// The version of the budget. Starts from 1 and increments by 1.
	Version int `pulumi:"version"`
}

A collection of values returned by getBudget.

func LookupBudget

func LookupBudget(ctx *pulumi.Context, args *LookupBudgetArgs, opts ...pulumi.InvokeOption) (*LookupBudgetResult, error)

This data source provides details about a specific Budget resource in Oracle Cloud Infrastructure Budget service.

Gets a budget by the identifier.

## Example Usage

```go 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.GetBudget(ctx, &budget.GetBudgetArgs{
			BudgetId: testBudgetOciBudgetBudget.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupBudgetResultOutput

type LookupBudgetResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBudget.

func (LookupBudgetResultOutput) ActualSpend

The actual spend in currency for the current budget cycle.

func (LookupBudgetResultOutput) AlertRuleCount

func (o LookupBudgetResultOutput) AlertRuleCount() pulumi.IntOutput

The total number of alert rules in the budget.

func (LookupBudgetResultOutput) Amount

The amount of the budget, expressed in the currency of the customer's rate card.

func (LookupBudgetResultOutput) BudgetId

func (LookupBudgetResultOutput) BudgetProcessingPeriodStartOffset

func (o LookupBudgetResultOutput) BudgetProcessingPeriodStartOffset() pulumi.IntOutput

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.

func (LookupBudgetResultOutput) CompartmentId

func (o LookupBudgetResultOutput) CompartmentId() pulumi.StringOutput

The OCID of the compartment.

func (LookupBudgetResultOutput) DefinedTags

func (o LookupBudgetResultOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (LookupBudgetResultOutput) Description

The description of the budget.

func (LookupBudgetResultOutput) DisplayName

The display name of the budget. Avoid entering confidential information.

func (LookupBudgetResultOutput) ElementType

func (LookupBudgetResultOutput) ElementType() reflect.Type

func (LookupBudgetResultOutput) EndDate added in v1.5.0

The time when the one-time budget concludes. For example, - `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.

func (LookupBudgetResultOutput) ForecastedSpend

func (o LookupBudgetResultOutput) ForecastedSpend() pulumi.Float64Output

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

func (LookupBudgetResultOutput) FreeformTags

func (o LookupBudgetResultOutput) FreeformTags() pulumi.MapOutput

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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (LookupBudgetResultOutput) Id

The OCID of the budget.

func (LookupBudgetResultOutput) ProcessingPeriodType added in v0.2.0

func (o LookupBudgetResultOutput) ProcessingPeriodType() pulumi.StringOutput

The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.

func (LookupBudgetResultOutput) ResetPeriod

The reset period for the budget.

func (LookupBudgetResultOutput) StartDate added in v1.5.0

The date when the one-time budget begins. For example, `2023-03-23`. The date-time format conforms to RFC 3339, and will be truncated to the starting point of the date provided after being converted to UTC time.

func (LookupBudgetResultOutput) State

The current state of the budget.

func (LookupBudgetResultOutput) TargetCompartmentId deprecated

func (o LookupBudgetResultOutput) TargetCompartmentId() pulumi.StringOutput

This is DEPRECATED. For backwards compatability, the property is populated when the targetType is "COMPARTMENT", and targets contain the specific target compartment OCID. For all other scenarios, this property will be left empty.

Deprecated: The 'target_compartment_id' field has been deprecated. Please use 'targets' instead.

func (LookupBudgetResultOutput) TargetType

The type of target on which the budget is applied.

func (LookupBudgetResultOutput) Targets

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

func (LookupBudgetResultOutput) TimeCreated

The time that the budget was created.

func (LookupBudgetResultOutput) TimeSpendComputed

func (o LookupBudgetResultOutput) TimeSpendComputed() pulumi.StringOutput

The time that the budget spend was last computed.

func (LookupBudgetResultOutput) TimeUpdated

The time that the budget was updated.

func (LookupBudgetResultOutput) ToLookupBudgetResultOutput

func (o LookupBudgetResultOutput) ToLookupBudgetResultOutput() LookupBudgetResultOutput

func (LookupBudgetResultOutput) ToLookupBudgetResultOutputWithContext

func (o LookupBudgetResultOutput) ToLookupBudgetResultOutputWithContext(ctx context.Context) LookupBudgetResultOutput

func (LookupBudgetResultOutput) Version

The version of the budget. Starts from 1 and increments by 1.

type Rule

type Rule struct {
	pulumi.CustomResourceState

	// The unique budget OCID.
	BudgetId pulumi.StringOutput `pulumi:"budgetId"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// (Updatable) The description of the alert rule.
	Description pulumi.StringOutput `pulumi:"description"`
	// (Updatable) The name of the alert rule. Avoid entering confidential information.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// (Updatable) The message to be sent to the recipients when the alert rule is triggered.
	Message pulumi.StringOutput `pulumi:"message"`
	// (Updatable) The audience that receives the alert when it triggers. An empty string is interpreted as null.
	Recipients pulumi.StringPtrOutput `pulumi:"recipients"`
	// The current state of the alert rule.
	State pulumi.StringOutput `pulumi:"state"`
	// (Updatable) The threshold for triggering the alert, expressed as a whole number or decimal value. If the thresholdType is ABSOLUTE, the threshold can have at most 12 digits before the decimal point, and up to two digits after the decimal point. If the thresholdType is PERCENTAGE, the maximum value is 10000 and can have up to two digits after the decimal point.
	Threshold pulumi.Float64Output `pulumi:"threshold"`
	// (Updatable) The type of threshold.
	ThresholdType pulumi.StringOutput `pulumi:"thresholdType"`
	// The time when the budget was created.
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The time when the budget was updated.
	TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
	// (Updatable) The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Type pulumi.StringOutput `pulumi:"type"`
	// The version of the alert rule. Starts from 1 and increments by 1.
	Version pulumi.IntOutput `pulumi:"version"`
}

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

Creates a new Alert Rule.

## Example Usage

```go 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.NewRule(ctx, "test_alert_rule", &Budget.RuleArgs{
			BudgetId:      pulumi.Any(testBudget.Id),
			Threshold:     pulumi.Any(alertRuleThreshold),
			ThresholdType: pulumi.Any(alertRuleThresholdType),
			Type:          pulumi.Any(alertRuleType),
			DefinedTags: pulumi.Map{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(alertRuleDescription),
			DisplayName: pulumi.Any(alertRuleDisplayName),
			FreeformTags: pulumi.Map{
				"Department": pulumi.Any("Finance"),
			},
			Message:    pulumi.Any(alertRuleMessage),
			Recipients: pulumi.Any(alertRuleRecipients),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

AlertRules can be imported using the `id`, e.g.

```sh $ pulumi import oci:Budget/rule:Rule test_alert_rule "budgets/{budgetId}/alertRules/{alertRuleId}" ```

func GetRule

func GetRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RuleState, opts ...pulumi.ResourceOption) (*Rule, error)

GetRule gets an existing Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRule

func NewRule(ctx *pulumi.Context,
	name string, args *RuleArgs, opts ...pulumi.ResourceOption) (*Rule, error)

NewRule registers a new resource with the given unique name, arguments, and options.

func (*Rule) ElementType

func (*Rule) ElementType() reflect.Type

func (*Rule) ToRuleOutput

func (i *Rule) ToRuleOutput() RuleOutput

func (*Rule) ToRuleOutputWithContext

func (i *Rule) ToRuleOutputWithContext(ctx context.Context) RuleOutput

type RuleArgs

type RuleArgs struct {
	// The unique budget OCID.
	BudgetId pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) The description of the alert rule.
	Description pulumi.StringPtrInput
	// (Updatable) The name of the alert rule. Avoid entering confidential information.
	DisplayName pulumi.StringPtrInput
	// (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// (Updatable) The message to be sent to the recipients when the alert rule is triggered.
	Message pulumi.StringPtrInput
	// (Updatable) The audience that receives the alert when it triggers. An empty string is interpreted as null.
	Recipients pulumi.StringPtrInput
	// (Updatable) The threshold for triggering the alert, expressed as a whole number or decimal value. If the thresholdType is ABSOLUTE, the threshold can have at most 12 digits before the decimal point, and up to two digits after the decimal point. If the thresholdType is PERCENTAGE, the maximum value is 10000 and can have up to two digits after the decimal point.
	Threshold pulumi.Float64Input
	// (Updatable) The type of threshold.
	ThresholdType pulumi.StringInput
	// (Updatable) The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Type pulumi.StringInput
}

The set of arguments for constructing a Rule resource.

func (RuleArgs) ElementType

func (RuleArgs) ElementType() reflect.Type

type RuleArray

type RuleArray []RuleInput

func (RuleArray) ElementType

func (RuleArray) ElementType() reflect.Type

func (RuleArray) ToRuleArrayOutput

func (i RuleArray) ToRuleArrayOutput() RuleArrayOutput

func (RuleArray) ToRuleArrayOutputWithContext

func (i RuleArray) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleArrayInput

type RuleArrayInput interface {
	pulumi.Input

	ToRuleArrayOutput() RuleArrayOutput
	ToRuleArrayOutputWithContext(context.Context) RuleArrayOutput
}

RuleArrayInput is an input type that accepts RuleArray and RuleArrayOutput values. You can construct a concrete instance of `RuleArrayInput` via:

RuleArray{ RuleArgs{...} }

type RuleArrayOutput

type RuleArrayOutput struct{ *pulumi.OutputState }

func (RuleArrayOutput) ElementType

func (RuleArrayOutput) ElementType() reflect.Type

func (RuleArrayOutput) Index

func (RuleArrayOutput) ToRuleArrayOutput

func (o RuleArrayOutput) ToRuleArrayOutput() RuleArrayOutput

func (RuleArrayOutput) ToRuleArrayOutputWithContext

func (o RuleArrayOutput) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleInput

type RuleInput interface {
	pulumi.Input

	ToRuleOutput() RuleOutput
	ToRuleOutputWithContext(ctx context.Context) RuleOutput
}

type RuleMap

type RuleMap map[string]RuleInput

func (RuleMap) ElementType

func (RuleMap) ElementType() reflect.Type

func (RuleMap) ToRuleMapOutput

func (i RuleMap) ToRuleMapOutput() RuleMapOutput

func (RuleMap) ToRuleMapOutputWithContext

func (i RuleMap) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleMapInput

type RuleMapInput interface {
	pulumi.Input

	ToRuleMapOutput() RuleMapOutput
	ToRuleMapOutputWithContext(context.Context) RuleMapOutput
}

RuleMapInput is an input type that accepts RuleMap and RuleMapOutput values. You can construct a concrete instance of `RuleMapInput` via:

RuleMap{ "key": RuleArgs{...} }

type RuleMapOutput

type RuleMapOutput struct{ *pulumi.OutputState }

func (RuleMapOutput) ElementType

func (RuleMapOutput) ElementType() reflect.Type

func (RuleMapOutput) MapIndex

func (RuleMapOutput) ToRuleMapOutput

func (o RuleMapOutput) ToRuleMapOutput() RuleMapOutput

func (RuleMapOutput) ToRuleMapOutputWithContext

func (o RuleMapOutput) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleOutput

type RuleOutput struct{ *pulumi.OutputState }

func (RuleOutput) BudgetId added in v0.4.0

func (o RuleOutput) BudgetId() pulumi.StringOutput

The unique budget OCID.

func (RuleOutput) DefinedTags added in v0.4.0

func (o RuleOutput) DefinedTags() pulumi.MapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (RuleOutput) Description added in v0.4.0

func (o RuleOutput) Description() pulumi.StringOutput

(Updatable) The description of the alert rule.

func (RuleOutput) DisplayName added in v0.4.0

func (o RuleOutput) DisplayName() pulumi.StringOutput

(Updatable) The name of the alert rule. Avoid entering confidential information.

func (RuleOutput) ElementType

func (RuleOutput) ElementType() reflect.Type

func (RuleOutput) FreeformTags added in v0.4.0

func (o RuleOutput) FreeformTags() pulumi.MapOutput

(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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (RuleOutput) Message added in v0.4.0

func (o RuleOutput) Message() pulumi.StringOutput

(Updatable) The message to be sent to the recipients when the alert rule is triggered.

func (RuleOutput) Recipients added in v0.4.0

func (o RuleOutput) Recipients() pulumi.StringPtrOutput

(Updatable) The audience that receives the alert when it triggers. An empty string is interpreted as null.

func (RuleOutput) State added in v0.4.0

func (o RuleOutput) State() pulumi.StringOutput

The current state of the alert rule.

func (RuleOutput) Threshold added in v0.4.0

func (o RuleOutput) Threshold() pulumi.Float64Output

(Updatable) The threshold for triggering the alert, expressed as a whole number or decimal value. If the thresholdType is ABSOLUTE, the threshold can have at most 12 digits before the decimal point, and up to two digits after the decimal point. If the thresholdType is PERCENTAGE, the maximum value is 10000 and can have up to two digits after the decimal point.

func (RuleOutput) ThresholdType added in v0.4.0

func (o RuleOutput) ThresholdType() pulumi.StringOutput

(Updatable) The type of threshold.

func (RuleOutput) TimeCreated added in v0.4.0

func (o RuleOutput) TimeCreated() pulumi.StringOutput

The time when the budget was created.

func (RuleOutput) TimeUpdated added in v0.4.0

func (o RuleOutput) TimeUpdated() pulumi.StringOutput

The time when the budget was updated.

func (RuleOutput) ToRuleOutput

func (o RuleOutput) ToRuleOutput() RuleOutput

func (RuleOutput) ToRuleOutputWithContext

func (o RuleOutput) ToRuleOutputWithContext(ctx context.Context) RuleOutput

func (RuleOutput) Type added in v0.4.0

func (o RuleOutput) Type() pulumi.StringOutput

(Updatable) The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (RuleOutput) Version added in v0.4.0

func (o RuleOutput) Version() pulumi.IntOutput

The version of the alert rule. Starts from 1 and increments by 1.

type RuleState

type RuleState struct {
	// The unique budget OCID.
	BudgetId pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) The description of the alert rule.
	Description pulumi.StringPtrInput
	// (Updatable) The name of the alert rule. Avoid entering confidential information.
	DisplayName pulumi.StringPtrInput
	// (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// (Updatable) The message to be sent to the recipients when the alert rule is triggered.
	Message pulumi.StringPtrInput
	// (Updatable) The audience that receives the alert when it triggers. An empty string is interpreted as null.
	Recipients pulumi.StringPtrInput
	// The current state of the alert rule.
	State pulumi.StringPtrInput
	// (Updatable) The threshold for triggering the alert, expressed as a whole number or decimal value. If the thresholdType is ABSOLUTE, the threshold can have at most 12 digits before the decimal point, and up to two digits after the decimal point. If the thresholdType is PERCENTAGE, the maximum value is 10000 and can have up to two digits after the decimal point.
	Threshold pulumi.Float64PtrInput
	// (Updatable) The type of threshold.
	ThresholdType pulumi.StringPtrInput
	// The time when the budget was created.
	TimeCreated pulumi.StringPtrInput
	// The time when the budget was updated.
	TimeUpdated pulumi.StringPtrInput
	// (Updatable) The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Type pulumi.StringPtrInput
	// The version of the alert rule. Starts from 1 and increments by 1.
	Version pulumi.IntPtrInput
}

func (RuleState) ElementType

func (RuleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL