Documentation
¶
Index ¶
- type Budget
- type BudgetArgs
- type BudgetArray
- type BudgetArrayInput
- type BudgetArrayOutput
- type BudgetInput
- type BudgetMap
- type BudgetMapInput
- type BudgetMapOutput
- type BudgetOutput
- func (o BudgetOutput) ActualSpend() pulumi.Float64Output
- func (o BudgetOutput) AlertRuleCount() pulumi.IntOutput
- func (o BudgetOutput) Amount() pulumi.IntOutput
- func (o BudgetOutput) BudgetProcessingPeriodStartOffset() pulumi.IntOutput
- func (o BudgetOutput) CompartmentId() pulumi.StringOutput
- func (o BudgetOutput) DefinedTags() pulumi.StringMapOutput
- func (o BudgetOutput) Description() pulumi.StringOutput
- func (o BudgetOutput) DisplayName() pulumi.StringOutput
- func (BudgetOutput) ElementType() reflect.Type
- func (o BudgetOutput) EndDate() pulumi.StringOutput
- func (o BudgetOutput) ForecastedSpend() pulumi.Float64Output
- func (o BudgetOutput) FreeformTags() pulumi.StringMapOutput
- func (o BudgetOutput) ProcessingPeriodType() pulumi.StringOutput
- func (o BudgetOutput) ResetPeriod() pulumi.StringOutput
- func (o BudgetOutput) StartDate() pulumi.StringOutput
- func (o BudgetOutput) State() pulumi.StringOutput
- func (o BudgetOutput) TargetCompartmentId() pulumi.StringOutputdeprecated
- func (o BudgetOutput) TargetType() pulumi.StringOutput
- func (o BudgetOutput) Targets() pulumi.StringArrayOutput
- func (o BudgetOutput) TimeCreated() pulumi.StringOutput
- func (o BudgetOutput) TimeSpendComputed() pulumi.StringOutput
- func (o BudgetOutput) TimeUpdated() pulumi.StringOutput
- func (o BudgetOutput) ToBudgetOutput() BudgetOutput
- func (o BudgetOutput) ToBudgetOutputWithContext(ctx context.Context) BudgetOutput
- func (o BudgetOutput) Version() pulumi.IntOutput
- type BudgetState
- type GetAlertRuleArgs
- type GetAlertRuleOutputArgs
- type GetAlertRuleResult
- type GetAlertRuleResultOutput
- func (o GetAlertRuleResultOutput) AlertRuleId() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) BudgetId() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) DefinedTags() pulumi.StringMapOutput
- func (o GetAlertRuleResultOutput) Description() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) DisplayName() pulumi.StringOutput
- func (GetAlertRuleResultOutput) ElementType() reflect.Type
- func (o GetAlertRuleResultOutput) FreeformTags() pulumi.StringMapOutput
- func (o GetAlertRuleResultOutput) Id() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) Message() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) Recipients() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) State() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) Threshold() pulumi.Float64Output
- func (o GetAlertRuleResultOutput) ThresholdType() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) TimeCreated() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) TimeUpdated() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) ToGetAlertRuleResultOutput() GetAlertRuleResultOutput
- func (o GetAlertRuleResultOutput) ToGetAlertRuleResultOutputWithContext(ctx context.Context) GetAlertRuleResultOutput
- func (o GetAlertRuleResultOutput) Type() pulumi.StringOutput
- func (o GetAlertRuleResultOutput) Version() pulumi.IntOutput
- type GetAlertRulesAlertRule
- type GetAlertRulesAlertRuleArgs
- type GetAlertRulesAlertRuleArray
- func (GetAlertRulesAlertRuleArray) ElementType() reflect.Type
- func (i GetAlertRulesAlertRuleArray) ToGetAlertRulesAlertRuleArrayOutput() GetAlertRulesAlertRuleArrayOutput
- func (i GetAlertRulesAlertRuleArray) ToGetAlertRulesAlertRuleArrayOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleArrayOutput
- type GetAlertRulesAlertRuleArrayInput
- type GetAlertRulesAlertRuleArrayOutput
- func (GetAlertRulesAlertRuleArrayOutput) ElementType() reflect.Type
- func (o GetAlertRulesAlertRuleArrayOutput) Index(i pulumi.IntInput) GetAlertRulesAlertRuleOutput
- func (o GetAlertRulesAlertRuleArrayOutput) ToGetAlertRulesAlertRuleArrayOutput() GetAlertRulesAlertRuleArrayOutput
- func (o GetAlertRulesAlertRuleArrayOutput) ToGetAlertRulesAlertRuleArrayOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleArrayOutput
- type GetAlertRulesAlertRuleInput
- type GetAlertRulesAlertRuleOutput
- func (o GetAlertRulesAlertRuleOutput) BudgetId() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) DefinedTags() pulumi.StringMapOutput
- func (o GetAlertRulesAlertRuleOutput) Description() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) DisplayName() pulumi.StringOutput
- func (GetAlertRulesAlertRuleOutput) ElementType() reflect.Type
- func (o GetAlertRulesAlertRuleOutput) FreeformTags() pulumi.StringMapOutput
- func (o GetAlertRulesAlertRuleOutput) Id() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) Message() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) Recipients() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) State() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) Threshold() pulumi.Float64Output
- func (o GetAlertRulesAlertRuleOutput) ThresholdType() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) TimeCreated() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) TimeUpdated() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) ToGetAlertRulesAlertRuleOutput() GetAlertRulesAlertRuleOutput
- func (o GetAlertRulesAlertRuleOutput) ToGetAlertRulesAlertRuleOutputWithContext(ctx context.Context) GetAlertRulesAlertRuleOutput
- func (o GetAlertRulesAlertRuleOutput) Type() pulumi.StringOutput
- func (o GetAlertRulesAlertRuleOutput) Version() pulumi.IntOutput
- type GetAlertRulesArgs
- type GetAlertRulesFilter
- type GetAlertRulesFilterArgs
- type GetAlertRulesFilterArray
- type GetAlertRulesFilterArrayInput
- type GetAlertRulesFilterArrayOutput
- func (GetAlertRulesFilterArrayOutput) ElementType() reflect.Type
- func (o GetAlertRulesFilterArrayOutput) Index(i pulumi.IntInput) GetAlertRulesFilterOutput
- func (o GetAlertRulesFilterArrayOutput) ToGetAlertRulesFilterArrayOutput() GetAlertRulesFilterArrayOutput
- func (o GetAlertRulesFilterArrayOutput) ToGetAlertRulesFilterArrayOutputWithContext(ctx context.Context) GetAlertRulesFilterArrayOutput
- type GetAlertRulesFilterInput
- type GetAlertRulesFilterOutput
- func (GetAlertRulesFilterOutput) ElementType() reflect.Type
- func (o GetAlertRulesFilterOutput) Name() pulumi.StringOutput
- func (o GetAlertRulesFilterOutput) Regex() pulumi.BoolPtrOutput
- func (o GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutput() GetAlertRulesFilterOutput
- func (o GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutputWithContext(ctx context.Context) GetAlertRulesFilterOutput
- func (o GetAlertRulesFilterOutput) Values() pulumi.StringArrayOutput
- type GetAlertRulesOutputArgs
- type GetAlertRulesResult
- type GetAlertRulesResultOutput
- func (o GetAlertRulesResultOutput) AlertRules() GetAlertRulesAlertRuleArrayOutput
- func (o GetAlertRulesResultOutput) BudgetId() pulumi.StringOutput
- func (o GetAlertRulesResultOutput) DisplayName() pulumi.StringPtrOutput
- func (GetAlertRulesResultOutput) ElementType() reflect.Type
- func (o GetAlertRulesResultOutput) Filters() GetAlertRulesFilterArrayOutput
- func (o GetAlertRulesResultOutput) Id() pulumi.StringOutput
- func (o GetAlertRulesResultOutput) State() pulumi.StringPtrOutput
- func (o GetAlertRulesResultOutput) ToGetAlertRulesResultOutput() GetAlertRulesResultOutput
- func (o GetAlertRulesResultOutput) ToGetAlertRulesResultOutputWithContext(ctx context.Context) GetAlertRulesResultOutput
- type GetBudgetsArgs
- type GetBudgetsBudget
- type GetBudgetsBudgetArgs
- type GetBudgetsBudgetArray
- type GetBudgetsBudgetArrayInput
- type GetBudgetsBudgetArrayOutput
- func (GetBudgetsBudgetArrayOutput) ElementType() reflect.Type
- func (o GetBudgetsBudgetArrayOutput) Index(i pulumi.IntInput) GetBudgetsBudgetOutput
- func (o GetBudgetsBudgetArrayOutput) ToGetBudgetsBudgetArrayOutput() GetBudgetsBudgetArrayOutput
- func (o GetBudgetsBudgetArrayOutput) ToGetBudgetsBudgetArrayOutputWithContext(ctx context.Context) GetBudgetsBudgetArrayOutput
- type GetBudgetsBudgetInput
- type GetBudgetsBudgetOutput
- func (o GetBudgetsBudgetOutput) ActualSpend() pulumi.Float64Output
- func (o GetBudgetsBudgetOutput) AlertRuleCount() pulumi.IntOutput
- func (o GetBudgetsBudgetOutput) Amount() pulumi.IntOutput
- func (o GetBudgetsBudgetOutput) BudgetProcessingPeriodStartOffset() pulumi.IntOutput
- func (o GetBudgetsBudgetOutput) CompartmentId() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) DefinedTags() pulumi.StringMapOutput
- func (o GetBudgetsBudgetOutput) Description() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) DisplayName() pulumi.StringOutput
- func (GetBudgetsBudgetOutput) ElementType() reflect.Type
- func (o GetBudgetsBudgetOutput) EndDate() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) ForecastedSpend() pulumi.Float64Output
- func (o GetBudgetsBudgetOutput) FreeformTags() pulumi.StringMapOutput
- func (o GetBudgetsBudgetOutput) Id() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) ProcessingPeriodType() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) ResetPeriod() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) StartDate() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) State() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) TargetCompartmentId() pulumi.StringOutputdeprecated
- func (o GetBudgetsBudgetOutput) TargetType() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) Targets() pulumi.StringArrayOutput
- func (o GetBudgetsBudgetOutput) TimeCreated() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) TimeSpendComputed() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) TimeUpdated() pulumi.StringOutput
- func (o GetBudgetsBudgetOutput) ToGetBudgetsBudgetOutput() GetBudgetsBudgetOutput
- func (o GetBudgetsBudgetOutput) ToGetBudgetsBudgetOutputWithContext(ctx context.Context) GetBudgetsBudgetOutput
- func (o GetBudgetsBudgetOutput) Version() pulumi.IntOutput
- type GetBudgetsFilter
- type GetBudgetsFilterArgs
- type GetBudgetsFilterArray
- type GetBudgetsFilterArrayInput
- type GetBudgetsFilterArrayOutput
- func (GetBudgetsFilterArrayOutput) ElementType() reflect.Type
- func (o GetBudgetsFilterArrayOutput) Index(i pulumi.IntInput) GetBudgetsFilterOutput
- func (o GetBudgetsFilterArrayOutput) ToGetBudgetsFilterArrayOutput() GetBudgetsFilterArrayOutput
- func (o GetBudgetsFilterArrayOutput) ToGetBudgetsFilterArrayOutputWithContext(ctx context.Context) GetBudgetsFilterArrayOutput
- type GetBudgetsFilterInput
- type GetBudgetsFilterOutput
- func (GetBudgetsFilterOutput) ElementType() reflect.Type
- func (o GetBudgetsFilterOutput) Name() pulumi.StringOutput
- func (o GetBudgetsFilterOutput) Regex() pulumi.BoolPtrOutput
- func (o GetBudgetsFilterOutput) ToGetBudgetsFilterOutput() GetBudgetsFilterOutput
- func (o GetBudgetsFilterOutput) ToGetBudgetsFilterOutputWithContext(ctx context.Context) GetBudgetsFilterOutput
- func (o GetBudgetsFilterOutput) Values() pulumi.StringArrayOutput
- type GetBudgetsOutputArgs
- type GetBudgetsResult
- type GetBudgetsResultOutput
- func (o GetBudgetsResultOutput) Budgets() GetBudgetsBudgetArrayOutput
- func (o GetBudgetsResultOutput) CompartmentId() pulumi.StringOutput
- func (o GetBudgetsResultOutput) DisplayName() pulumi.StringPtrOutput
- func (GetBudgetsResultOutput) ElementType() reflect.Type
- func (o GetBudgetsResultOutput) Filters() GetBudgetsFilterArrayOutput
- func (o GetBudgetsResultOutput) Id() pulumi.StringOutput
- func (o GetBudgetsResultOutput) State() pulumi.StringPtrOutput
- func (o GetBudgetsResultOutput) TargetType() pulumi.StringPtrOutput
- func (o GetBudgetsResultOutput) ToGetBudgetsResultOutput() GetBudgetsResultOutput
- func (o GetBudgetsResultOutput) ToGetBudgetsResultOutputWithContext(ctx context.Context) GetBudgetsResultOutput
- type LookupBudgetArgs
- type LookupBudgetOutputArgs
- type LookupBudgetResult
- type LookupBudgetResultOutput
- func (o LookupBudgetResultOutput) ActualSpend() pulumi.Float64Output
- func (o LookupBudgetResultOutput) AlertRuleCount() pulumi.IntOutput
- func (o LookupBudgetResultOutput) Amount() pulumi.IntOutput
- func (o LookupBudgetResultOutput) BudgetId() pulumi.StringOutput
- func (o LookupBudgetResultOutput) BudgetProcessingPeriodStartOffset() pulumi.IntOutput
- func (o LookupBudgetResultOutput) CompartmentId() pulumi.StringOutput
- func (o LookupBudgetResultOutput) DefinedTags() pulumi.StringMapOutput
- func (o LookupBudgetResultOutput) Description() pulumi.StringOutput
- func (o LookupBudgetResultOutput) DisplayName() pulumi.StringOutput
- func (LookupBudgetResultOutput) ElementType() reflect.Type
- func (o LookupBudgetResultOutput) EndDate() pulumi.StringOutput
- func (o LookupBudgetResultOutput) ForecastedSpend() pulumi.Float64Output
- func (o LookupBudgetResultOutput) FreeformTags() pulumi.StringMapOutput
- func (o LookupBudgetResultOutput) Id() pulumi.StringOutput
- func (o LookupBudgetResultOutput) ProcessingPeriodType() pulumi.StringOutput
- func (o LookupBudgetResultOutput) ResetPeriod() pulumi.StringOutput
- func (o LookupBudgetResultOutput) StartDate() pulumi.StringOutput
- func (o LookupBudgetResultOutput) State() pulumi.StringOutput
- func (o LookupBudgetResultOutput) TargetCompartmentId() pulumi.StringOutputdeprecated
- func (o LookupBudgetResultOutput) TargetType() pulumi.StringOutput
- func (o LookupBudgetResultOutput) Targets() pulumi.StringArrayOutput
- func (o LookupBudgetResultOutput) TimeCreated() pulumi.StringOutput
- func (o LookupBudgetResultOutput) TimeSpendComputed() pulumi.StringOutput
- func (o LookupBudgetResultOutput) TimeUpdated() pulumi.StringOutput
- func (o LookupBudgetResultOutput) ToLookupBudgetResultOutput() LookupBudgetResultOutput
- func (o LookupBudgetResultOutput) ToLookupBudgetResultOutputWithContext(ctx context.Context) LookupBudgetResultOutput
- func (o LookupBudgetResultOutput) Version() pulumi.IntOutput
- type Rule
- type RuleArgs
- type RuleArray
- type RuleArrayInput
- type RuleArrayOutput
- type RuleInput
- type RuleMap
- type RuleMapInput
- type RuleMapOutput
- type RuleOutput
- func (o RuleOutput) BudgetId() pulumi.StringOutput
- func (o RuleOutput) DefinedTags() pulumi.StringMapOutput
- func (o RuleOutput) Description() pulumi.StringOutput
- func (o RuleOutput) DisplayName() pulumi.StringOutput
- func (RuleOutput) ElementType() reflect.Type
- func (o RuleOutput) FreeformTags() pulumi.StringMapOutput
- func (o RuleOutput) Message() pulumi.StringOutput
- func (o RuleOutput) Recipients() pulumi.StringPtrOutput
- func (o RuleOutput) State() pulumi.StringOutput
- func (o RuleOutput) Threshold() pulumi.Float64Output
- func (o RuleOutput) ThresholdType() pulumi.StringOutput
- func (o RuleOutput) TimeCreated() pulumi.StringOutput
- func (o RuleOutput) TimeUpdated() pulumi.StringOutput
- func (o RuleOutput) ToRuleOutput() RuleOutput
- func (o RuleOutput) ToRuleOutputWithContext(ctx context.Context) RuleOutput
- func (o RuleOutput) Type() pulumi.StringOutput
- func (o RuleOutput) Version() pulumi.IntOutput
- type RuleState
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.StringMapOutput `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.StringMapOutput `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/v2/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.StringMap{ "Operations.CostCenter": pulumi.String("42"), }, Description: pulumi.Any(budgetDescription), DisplayName: pulumi.Any(budgetDisplayName), EndDate: pulumi.Any(budgetEndDate), FreeformTags: pulumi.StringMap{ "Department": pulumi.String("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) 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.StringMapInput // (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.StringMapInput // (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 (o BudgetArrayOutput) Index(i pulumi.IntInput) BudgetOutput
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) 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 (o BudgetMapOutput) MapIndex(k pulumi.StringInput) BudgetOutput
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 ¶
func (o BudgetOutput) ActualSpend() pulumi.Float64Output
The actual spend in currency for the current budget cycle.
func (BudgetOutput) AlertRuleCount ¶
func (o BudgetOutput) AlertRuleCount() pulumi.IntOutput
The total number of alert rules in the budget.
func (BudgetOutput) Amount ¶
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 ¶
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 ¶
func (o BudgetOutput) CompartmentId() pulumi.StringOutput
The OCID of the compartment.
func (BudgetOutput) DefinedTags ¶
func (o BudgetOutput) DefinedTags() pulumi.StringMapOutput
(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 ¶
func (o BudgetOutput) Description() pulumi.StringOutput
(Updatable) The description of the budget.
func (BudgetOutput) DisplayName ¶
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 ¶
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 ¶
func (o BudgetOutput) ForecastedSpend() pulumi.Float64Output
The forecasted spend in currency by the end of the current budget cycle.
func (BudgetOutput) FreeformTags ¶
func (o BudgetOutput) FreeformTags() pulumi.StringMapOutput
(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 ¶
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 ¶
func (o BudgetOutput) ResetPeriod() pulumi.StringOutput
(Updatable) The reset period for the budget. Valid value is MONTHLY.
func (BudgetOutput) StartDate ¶
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 ¶
func (o BudgetOutput) State() pulumi.StringOutput
The current state of the budget.
func (BudgetOutput) TargetCompartmentId
deprecated
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 ¶
func (o BudgetOutput) TargetType() pulumi.StringOutput
The type of target on which the budget is applied.
func (BudgetOutput) Targets ¶
func (o BudgetOutput) Targets() pulumi.StringArrayOutput
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 ¶
func (o BudgetOutput) TimeCreated() pulumi.StringOutput
The time that the budget was created.
func (BudgetOutput) TimeSpendComputed ¶
func (o BudgetOutput) TimeSpendComputed() pulumi.StringOutput
The time that the budget spend was last computed.
func (BudgetOutput) TimeUpdated ¶
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 ¶
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.StringMapInput // (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.StringMapInput // (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]string `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]string `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/v2/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 GetAlertRuleOutput ¶
func GetAlertRuleOutput(ctx *pulumi.Context, args GetAlertRuleOutputArgs, opts ...pulumi.InvokeOption) GetAlertRuleResultOutput
func (GetAlertRuleResultOutput) AlertRuleId ¶
func (o GetAlertRuleResultOutput) AlertRuleId() pulumi.StringOutput
func (GetAlertRuleResultOutput) BudgetId ¶
func (o GetAlertRuleResultOutput) BudgetId() pulumi.StringOutput
The OCID of the budget.
func (GetAlertRuleResultOutput) DefinedTags ¶
func (o GetAlertRuleResultOutput) DefinedTags() pulumi.StringMapOutput
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 ¶
func (o GetAlertRuleResultOutput) Description() pulumi.StringOutput
The description of the alert rule.
func (GetAlertRuleResultOutput) DisplayName ¶
func (o GetAlertRuleResultOutput) DisplayName() pulumi.StringOutput
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.StringMapOutput
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 ¶
func (o GetAlertRuleResultOutput) Id() pulumi.StringOutput
The OCID of the alert rule.
func (GetAlertRuleResultOutput) Message ¶
func (o GetAlertRuleResultOutput) Message() pulumi.StringOutput
The custom message that will be sent when the alert is triggered.
func (GetAlertRuleResultOutput) Recipients ¶
func (o GetAlertRuleResultOutput) Recipients() pulumi.StringOutput
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 ¶
func (o GetAlertRuleResultOutput) State() pulumi.StringOutput
The current state of the alert rule.
func (GetAlertRuleResultOutput) Threshold ¶
func (o GetAlertRuleResultOutput) Threshold() pulumi.Float64Output
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 ¶
func (o GetAlertRuleResultOutput) TimeCreated() pulumi.StringOutput
The time when the budget was created.
func (GetAlertRuleResultOutput) TimeUpdated ¶
func (o GetAlertRuleResultOutput) TimeUpdated() pulumi.StringOutput
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 ¶
func (o GetAlertRuleResultOutput) Type() pulumi.StringOutput
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 ¶
func (o GetAlertRuleResultOutput) Version() pulumi.IntOutput
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]string `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]string `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.StringMapInput `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.StringMapInput `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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetAlertRulesAlertRuleArrayOutput) Index ¶
func (o GetAlertRulesAlertRuleArrayOutput) Index(i pulumi.IntInput) GetAlertRulesAlertRuleOutput
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 ¶
func (o GetAlertRulesAlertRuleOutput) BudgetId() pulumi.StringOutput
The unique budget OCID.
func (GetAlertRulesAlertRuleOutput) DefinedTags ¶
func (o GetAlertRulesAlertRuleOutput) DefinedTags() pulumi.StringMapOutput
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 ¶
func (o GetAlertRulesAlertRuleOutput) Description() pulumi.StringOutput
The description of the alert rule.
func (GetAlertRulesAlertRuleOutput) DisplayName ¶
func (o GetAlertRulesAlertRuleOutput) DisplayName() pulumi.StringOutput
A user-friendly name. This does not have to be unique, and it's changeable. Example: `My new resource`
func (GetAlertRulesAlertRuleOutput) ElementType ¶
func (GetAlertRulesAlertRuleOutput) ElementType() reflect.Type
func (GetAlertRulesAlertRuleOutput) FreeformTags ¶
func (o GetAlertRulesAlertRuleOutput) FreeformTags() pulumi.StringMapOutput
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 ¶
func (o GetAlertRulesAlertRuleOutput) Id() pulumi.StringOutput
The OCID of the alert rule.
func (GetAlertRulesAlertRuleOutput) Message ¶
func (o GetAlertRulesAlertRuleOutput) Message() pulumi.StringOutput
The custom message that will be sent when the alert is triggered.
func (GetAlertRulesAlertRuleOutput) Recipients ¶
func (o GetAlertRulesAlertRuleOutput) Recipients() pulumi.StringOutput
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 ¶
func (o GetAlertRulesAlertRuleOutput) State() pulumi.StringOutput
The current state of the resource to filter by.
func (GetAlertRulesAlertRuleOutput) Threshold ¶
func (o GetAlertRulesAlertRuleOutput) Threshold() pulumi.Float64Output
The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.
func (GetAlertRulesAlertRuleOutput) ThresholdType ¶
func (o GetAlertRulesAlertRuleOutput) ThresholdType() pulumi.StringOutput
The type of threshold.
func (GetAlertRulesAlertRuleOutput) TimeCreated ¶
func (o GetAlertRulesAlertRuleOutput) TimeCreated() pulumi.StringOutput
The time when the budget was created.
func (GetAlertRulesAlertRuleOutput) TimeUpdated ¶
func (o GetAlertRulesAlertRuleOutput) TimeUpdated() pulumi.StringOutput
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 ¶
func (o GetAlertRulesAlertRuleOutput) Type() pulumi.StringOutput
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 ¶
func (o GetAlertRulesAlertRuleOutput) Version() pulumi.IntOutput
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 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) ElementType() reflect.Type
func (GetAlertRulesFilterArrayOutput) Index ¶
func (o GetAlertRulesFilterArrayOutput) Index(i pulumi.IntInput) GetAlertRulesFilterOutput
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 (o GetAlertRulesFilterOutput) Name() pulumi.StringOutput
func (GetAlertRulesFilterOutput) Regex ¶
func (o GetAlertRulesFilterOutput) Regex() pulumi.BoolPtrOutput
func (GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutput ¶
func (o GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutput() GetAlertRulesFilterOutput
func (GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutputWithContext ¶
func (o GetAlertRulesFilterOutput) ToGetAlertRulesFilterOutputWithContext(ctx context.Context) GetAlertRulesFilterOutput
func (GetAlertRulesFilterOutput) Values ¶
func (o GetAlertRulesFilterOutput) Values() pulumi.StringArrayOutput
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/v2/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 GetAlertRulesOutput ¶
func GetAlertRulesOutput(ctx *pulumi.Context, args GetAlertRulesOutputArgs, opts ...pulumi.InvokeOption) GetAlertRulesResultOutput
func (GetAlertRulesResultOutput) AlertRules ¶
func (o GetAlertRulesResultOutput) AlertRules() GetAlertRulesAlertRuleArrayOutput
The list of alert_rules.
func (GetAlertRulesResultOutput) BudgetId ¶
func (o GetAlertRulesResultOutput) BudgetId() pulumi.StringOutput
The OCID of the budget.
func (GetAlertRulesResultOutput) DisplayName ¶
func (o GetAlertRulesResultOutput) DisplayName() pulumi.StringPtrOutput
The name of the alert rule. Avoid entering confidential information.
func (GetAlertRulesResultOutput) ElementType ¶
func (GetAlertRulesResultOutput) ElementType() reflect.Type
func (GetAlertRulesResultOutput) Filters ¶
func (o GetAlertRulesResultOutput) Filters() GetAlertRulesFilterArrayOutput
func (GetAlertRulesResultOutput) Id ¶
func (o GetAlertRulesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetAlertRulesResultOutput) State ¶
func (o GetAlertRulesResultOutput) State() pulumi.StringPtrOutput
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]string `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]string `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.StringMapInput `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.StringMapInput `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) ElementType() reflect.Type
func (GetBudgetsBudgetArrayOutput) Index ¶
func (o GetBudgetsBudgetArrayOutput) Index(i pulumi.IntInput) GetBudgetsBudgetOutput
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 ¶
func (o GetBudgetsBudgetOutput) ActualSpend() pulumi.Float64Output
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 ¶
func (o GetBudgetsBudgetOutput) Amount() pulumi.IntOutput
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.StringMapOutput
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 ¶
func (o GetBudgetsBudgetOutput) EndDate() pulumi.StringOutput
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.StringMapOutput
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 ¶
func (o GetBudgetsBudgetOutput) Id() pulumi.StringOutput
The OCID of the budget.
func (GetBudgetsBudgetOutput) ProcessingPeriodType ¶
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 ¶
func (o GetBudgetsBudgetOutput) StartDate() pulumi.StringOutput
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 ¶
func (o GetBudgetsBudgetOutput) State() pulumi.StringOutput
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 ¶
func (o GetBudgetsBudgetOutput) TargetType() pulumi.StringOutput
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 ¶
func (o GetBudgetsBudgetOutput) Targets() pulumi.StringArrayOutput
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 ¶
func (o GetBudgetsBudgetOutput) Version() pulumi.IntOutput
The version of the budget. Starts from 1 and increments by 1.
type GetBudgetsFilter ¶
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) ElementType() reflect.Type
func (GetBudgetsFilterArrayOutput) Index ¶
func (o GetBudgetsFilterArrayOutput) Index(i pulumi.IntInput) GetBudgetsFilterOutput
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 (o GetBudgetsFilterOutput) Name() pulumi.StringOutput
func (GetBudgetsFilterOutput) Regex ¶
func (o GetBudgetsFilterOutput) Regex() pulumi.BoolPtrOutput
func (GetBudgetsFilterOutput) ToGetBudgetsFilterOutput ¶
func (o GetBudgetsFilterOutput) ToGetBudgetsFilterOutput() GetBudgetsFilterOutput
func (GetBudgetsFilterOutput) ToGetBudgetsFilterOutputWithContext ¶
func (o GetBudgetsFilterOutput) ToGetBudgetsFilterOutputWithContext(ctx context.Context) GetBudgetsFilterOutput
func (GetBudgetsFilterOutput) Values ¶
func (o GetBudgetsFilterOutput) Values() pulumi.StringArrayOutput
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/v2/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 GetBudgetsOutput ¶
func GetBudgetsOutput(ctx *pulumi.Context, args GetBudgetsOutputArgs, opts ...pulumi.InvokeOption) GetBudgetsResultOutput
func (GetBudgetsResultOutput) Budgets ¶
func (o GetBudgetsResultOutput) Budgets() GetBudgetsBudgetArrayOutput
The list of budgets.
func (GetBudgetsResultOutput) CompartmentId ¶
func (o GetBudgetsResultOutput) CompartmentId() pulumi.StringOutput
The OCID of the compartment.
func (GetBudgetsResultOutput) DisplayName ¶
func (o GetBudgetsResultOutput) DisplayName() pulumi.StringPtrOutput
The display name of the budget. Avoid entering confidential information.
func (GetBudgetsResultOutput) ElementType ¶
func (GetBudgetsResultOutput) ElementType() reflect.Type
func (GetBudgetsResultOutput) Filters ¶
func (o GetBudgetsResultOutput) Filters() GetBudgetsFilterArrayOutput
func (GetBudgetsResultOutput) Id ¶
func (o GetBudgetsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetBudgetsResultOutput) State ¶
func (o GetBudgetsResultOutput) State() pulumi.StringPtrOutput
The current state of the budget.
func (GetBudgetsResultOutput) TargetType ¶
func (o GetBudgetsResultOutput) TargetType() pulumi.StringPtrOutput
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]string `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]string `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/v2/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 LookupBudgetOutput ¶
func LookupBudgetOutput(ctx *pulumi.Context, args LookupBudgetOutputArgs, opts ...pulumi.InvokeOption) LookupBudgetResultOutput
func (LookupBudgetResultOutput) ActualSpend ¶
func (o LookupBudgetResultOutput) ActualSpend() pulumi.Float64Output
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 ¶
func (o LookupBudgetResultOutput) Amount() pulumi.IntOutput
The amount of the budget, expressed in the currency of the customer's rate card.
func (LookupBudgetResultOutput) BudgetId ¶
func (o LookupBudgetResultOutput) BudgetId() pulumi.StringOutput
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.StringMapOutput
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 ¶
func (o LookupBudgetResultOutput) Description() pulumi.StringOutput
The description of the budget.
func (LookupBudgetResultOutput) DisplayName ¶
func (o LookupBudgetResultOutput) DisplayName() pulumi.StringOutput
The display name of the budget. Avoid entering confidential information.
func (LookupBudgetResultOutput) ElementType ¶
func (LookupBudgetResultOutput) ElementType() reflect.Type
func (LookupBudgetResultOutput) EndDate ¶
func (o LookupBudgetResultOutput) EndDate() pulumi.StringOutput
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.StringMapOutput
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 ¶
func (o LookupBudgetResultOutput) Id() pulumi.StringOutput
The OCID of the budget.
func (LookupBudgetResultOutput) ProcessingPeriodType ¶
func (o LookupBudgetResultOutput) ProcessingPeriodType() pulumi.StringOutput
The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
func (LookupBudgetResultOutput) ResetPeriod ¶
func (o LookupBudgetResultOutput) ResetPeriod() pulumi.StringOutput
The reset period for the budget.
func (LookupBudgetResultOutput) StartDate ¶
func (o LookupBudgetResultOutput) StartDate() pulumi.StringOutput
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 ¶
func (o LookupBudgetResultOutput) State() pulumi.StringOutput
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 ¶
func (o LookupBudgetResultOutput) TargetType() pulumi.StringOutput
The type of target on which the budget is applied.
func (LookupBudgetResultOutput) Targets ¶
func (o LookupBudgetResultOutput) Targets() pulumi.StringArrayOutput
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 ¶
func (o LookupBudgetResultOutput) TimeCreated() pulumi.StringOutput
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 ¶
func (o LookupBudgetResultOutput) TimeUpdated() pulumi.StringOutput
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 ¶
func (o LookupBudgetResultOutput) Version() pulumi.IntOutput
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.StringMapOutput `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.StringMapOutput `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/v2/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.StringMap{ "Operations.CostCenter": pulumi.String("42"), }, Description: pulumi.Any(alertRuleDescription), DisplayName: pulumi.Any(alertRuleDisplayName), FreeformTags: pulumi.StringMap{ "Department": pulumi.String("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) 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.StringMapInput // (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.StringMapInput // (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 ¶
type RuleArray ¶
type RuleArray []RuleInput
func (RuleArray) ElementType ¶
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 (o RuleArrayOutput) Index(i pulumi.IntInput) RuleOutput
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 ¶
func (RuleMap) ElementType ¶
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 (o RuleMapOutput) MapIndex(k pulumi.StringInput) RuleOutput
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 ¶
func (o RuleOutput) BudgetId() pulumi.StringOutput
The unique budget OCID.
func (RuleOutput) DefinedTags ¶
func (o RuleOutput) DefinedTags() pulumi.StringMapOutput
(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 ¶
func (o RuleOutput) Description() pulumi.StringOutput
(Updatable) The description of the alert rule.
func (RuleOutput) DisplayName ¶
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 ¶
func (o RuleOutput) FreeformTags() pulumi.StringMapOutput
(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 ¶
func (o RuleOutput) Message() pulumi.StringOutput
(Updatable) The message to be sent to the recipients when the alert rule is triggered.
func (RuleOutput) Recipients ¶
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 ¶
func (o RuleOutput) State() pulumi.StringOutput
The current state of the alert rule.
func (RuleOutput) Threshold ¶
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 ¶
func (o RuleOutput) ThresholdType() pulumi.StringOutput
(Updatable) The type of threshold.
func (RuleOutput) TimeCreated ¶
func (o RuleOutput) TimeCreated() pulumi.StringOutput
The time when the budget was created.
func (RuleOutput) TimeUpdated ¶
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 ¶
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 ¶
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.StringMapInput // (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.StringMapInput // (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 }