oci_database_scheduling_policy_scheduling_window

This resource provides the Scheduling Policy Scheduling Window resource in Oracle Cloud Infrastructure Database service.

Creates a Scheduling Window resource.

Example Usage

resource "oci_database_scheduling_policy_scheduling_window" "test_scheduling_policy_scheduling_window" {
	#Required
	scheduling_policy_id = oci_database_scheduling_policy.test_scheduling_policy.id
	window_preference {
		#Required
		days_of_week {
			#Required
			name = var.scheduling_policy_scheduling_window_window_preference_days_of_week_name
		}
		duration = var.scheduling_policy_scheduling_window_window_preference_duration
		is_enforced_duration = var.scheduling_policy_scheduling_window_window_preference_is_enforced_duration
		start_time = var.scheduling_policy_scheduling_window_window_preference_start_time
		weeks_of_month = var.scheduling_policy_scheduling_window_window_preference_weeks_of_month

		#Optional
		months {
			#Required
			name = var.scheduling_policy_scheduling_window_window_preference_months_name
		}
	}

	#Optional
	compartment_id = var.compartment_id
	defined_tags = var.scheduling_policy_scheduling_window_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 Scheduling Policy Scheduling Window * update - (Defaults to 20 minutes), when updating the Scheduling Policy Scheduling Window * delete - (Defaults to 20 minutes), when destroying the Scheduling Policy Scheduling Window

Import

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

$ terraform import oci_database_scheduling_policy_scheduling_window.test_scheduling_policy_scheduling_window "schedulingPolicies/{schedulingPolicyId}/schedulingWindows/{schedulingWindowId}"