oci_events_rule

This resource provides the Rule resource in Oracle Cloud Infrastructure Events service.

Creates a new rule.

Example Usage

resource "oci_events_rule" "test_rule" {
	#Required
	actions {
		#Required
		actions {
			#Required
			action_type = var.rule_actions_actions_action_type
			is_enabled = var.rule_actions_actions_is_enabled

			#Optional
			description = var.rule_actions_actions_description
			function_id = oci_functions_function.test_function.id
			stream_id = oci_streaming_stream.test_stream.id
			topic_id = oci_ons_notification_topic.test_topic.id
		}
	}
	compartment_id = var.compartment_id
	condition = var.rule_condition
	display_name = var.rule_display_name
	is_enabled = var.rule_is_enabled

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.rule_description
	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 Rule * update - (Defaults to 20 minutes), when updating the Rule * delete - (Defaults to 20 minutes), when destroying the Rule

Import

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

$ terraform import oci_events_rule.test_rule "id"