oci_fleet_apps_management_scheduler_definition

This resource provides the Scheduler Definition resource in Oracle Cloud Infrastructure Fleet Apps Management service.

Creates a new SchedulerDefinition.

Example Usage

resource "oci_fleet_apps_management_scheduler_definition" "test_scheduler_definition" {
	#Required
	action_groups {
		#Required
		resource_id = oci_cloud_guard_resource.test_resource.id
		runbook_id = oci_fleet_apps_management_runbook.test_runbook.id

		#Optional
		application_type = var.scheduler_definition_action_groups_application_type
		lifecycle_operation = var.scheduler_definition_action_groups_lifecycle_operation
		product = var.scheduler_definition_action_groups_product
		subjects = var.scheduler_definition_action_groups_subjects
		target_id = oci_cloud_guard_target.test_target.id
		type = var.scheduler_definition_action_groups_type
	}
	compartment_id = var.compartment_id
	schedule {
		#Required
		execution_startdate = var.scheduler_definition_schedule_execution_startdate
		type = var.scheduler_definition_schedule_type

		#Optional
		duration = var.scheduler_definition_schedule_duration
		maintenance_window_id = oci_fleet_apps_management_maintenance_window.test_maintenance_window.id
		recurrences = var.scheduler_definition_schedule_recurrences
	}

	#Optional
	activity_initiation_cut_off = var.scheduler_definition_activity_initiation_cut_off
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.scheduler_definition_description
	display_name = var.scheduler_definition_display_name
	freeform_tags = {"bar-key"= "value"}
	run_books {
		#Required
		id = var.scheduler_definition_run_books_id

		#Optional
		input_parameters {
			#Required
			step_name = var.scheduler_definition_run_books_input_parameters_step_name

			#Optional
			arguments {
				#Required
				name = var.scheduler_definition_run_books_input_parameters_arguments_name

				#Optional
				value = var.scheduler_definition_run_books_input_parameters_arguments_value
			}
		}
	}
}

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

Import

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

$ terraform import oci_fleet_apps_management_scheduler_definition.test_scheduler_definition "id"