oci_demand_signal_occ_demand_signal

This resource provides the Occ Demand Signal resource in Oracle Cloud Infrastructure Demand Signal service.

Creates a OccDemandSignal.

Updates the data of an OccDemandSignal.

Example Usage

resource "oci_demand_signal_occ_demand_signal" "test_occ_demand_signal" {
	#Required
	compartment_id = var.compartment_id
	is_active = var.occ_demand_signal_is_active
	occ_demand_signal_id = var.occ_demand_signal_occ_demand_signal_id
	occ_demand_signals {
		#Required
		resource_type = var.occ_demand_signal_occ_demand_signals_resource_type
		units = var.occ_demand_signal_occ_demand_signals_units
		values {
			#Required
			time_expected = var.occ_demand_signal_occ_demand_signals_values_time_expected
			value = var.occ_demand_signal_occ_demand_signals_values_value

			#Optional
			comments = var.occ_demand_signal_occ_demand_signals_values_comments
		}
	}

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.occ_demand_signal_display_name
	freeform_tags = {"Department"= "Finance"}
	patch_operations {
		#Required
		operation = var.occ_demand_signal_patch_operations_operation
		selection = var.occ_demand_signal_patch_operations_selection

		#Optional
		from = var.occ_demand_signal_patch_operations_from
		position = var.occ_demand_signal_patch_operations_position
		selected_item = var.occ_demand_signal_patch_operations_selected_item
		value = var.occ_demand_signal_patch_operations_value
		values = var.occ_demand_signal_patch_operations_values
	}
}

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

Import

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

$ terraform import oci_demand_signal_occ_demand_signal.test_occ_demand_signal "id"