oci_data_safe_alert_policy

This resource provides the Alert Policy resource in Oracle Cloud Infrastructure Data Safe service.

Creates a new user-defined alert policy.

Example Usage

resource "oci_data_safe_alert_policy" "test_alert_policy" {
	#Required
	alert_policy_type = var.alert_policy_alert_policy_type
	compartment_id = var.compartment_id
	severity = var.alert_policy_severity

	#Optional
	alert_policy_rule_details {
		#Required
		expression = var.alert_policy_alert_policy_rule_details_expression

		#Optional
		description = var.alert_policy_alert_policy_rule_details_description
		display_name = var.alert_policy_alert_policy_rule_details_display_name
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.alert_policy_description
	display_name = var.alert_policy_display_name
	freeform_tags = {"Department"= "Finance"}
}

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 Policy * update - (Defaults to 20 minutes), when updating the Alert Policy * delete - (Defaults to 20 minutes), when destroying the Alert Policy

Import

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

$ terraform import oci_data_safe_alert_policy.test_alert_policy "id"