oci_database_scheduled_action

This resource provides the Scheduled Action resource in Oracle Cloud Infrastructure Database service.

Creates a Scheduled Action resource.

Example Usage

resource "oci_database_scheduled_action" "test_scheduled_action" {
	#Required
	action_type = var.scheduled_action_action_type
	compartment_id = var.compartment_id
	scheduling_plan_id = oci_database_scheduling_plan.test_scheduling_plan.id
	scheduling_window_id = oci_database_scheduling_window.test_scheduling_window.id

	#Optional
	action_members {
		#Required
		member_id = oci_database_member.test_member.id
		member_order = var.scheduled_action_action_members_member_order

		#Optional
		estimated_time_in_mins = var.scheduled_action_action_members_estimated_time_in_mins
	}
	action_params = var.scheduled_action_action_params
	defined_tags = var.scheduled_action_defined_tags
	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 Scheduled Action * update - (Defaults to 20 minutes), when updating the Scheduled Action * delete - (Defaults to 20 minutes), when destroying the Scheduled Action

Import

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

$ terraform import oci_database_scheduled_action.test_scheduled_action "id"