oci_budget_alert_rule

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

Creates a new Alert Rule.

Example Usage

resource "oci_budget_alert_rule" "test_alert_rule" {
    #Required
    budget_id = oci_budget_budget.test_budget.id
    threshold = var.alert_rule_threshold
    threshold_type = var.alert_rule_threshold_type
    type = var.alert_rule_type

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    description = var.alert_rule_description
    display_name = var.alert_rule_display_name
    freeform_tags = {"Department"= "Finance"}
    message = var.alert_rule_message
    recipients = var.alert_rule_recipients
}

Argument Reference

The following arguments are supported:

* 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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Alert Rule * update - (Defaults to 20 minutes), when updating the Alert Rule * delete - (Defaults to 20 minutes), when destroying the Alert Rule

Import

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

$ terraform import oci_budget_alert_rule.test_alert_rule "budgets/{budgetId}/alertRules/{alertRuleId}"