oci_resource_scheduler_schedule

This resource provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service.

Creates a Schedule

Example Usage

resource "oci_resource_scheduler_schedule" "test_schedule" {
	#Required
	action = var.schedule_action
	compartment_id = var.compartment_id
	recurrence_details = var.schedule_recurrence_details
	recurrence_type = var.schedule_recurrence_type

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.schedule_description
	display_name = var.schedule_display_name
	freeform_tags = {"Department"= "Finance"}
	resource_filters {
		#Required
		attribute = var.schedule_resource_filters_attribute

		#Optional
		condition = var.schedule_resource_filters_condition
		should_include_child_compartments = var.schedule_resource_filters_should_include_child_compartments
		value {

			#Optional
			namespace = var.schedule_resource_filters_value_namespace
			tag_key = var.schedule_resource_filters_value_tag_key
			value = var.schedule_resource_filters_value_value
		}
	}
	resources {
		#Required
		id = var.schedule_resources_id

		#Optional
		metadata = var.schedule_resources_metadata
	}
	time_ends = var.schedule_time_ends
	time_starts = var.schedule_time_starts
}

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

Import

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

$ terraform import oci_resource_scheduler_schedule.test_schedule "id"