oci_demand_signal_occ_metric_alarm

This resource provides the Occ Metric Alarm resource in Oracle Cloud Infrastructure Demand Signal service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/occds/latest/OccMetricAlarm

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/demand_signal

Creates a new OccMetricAlarm resource in the specified compartment with the provided configuration details.

Example Usage

resource "oci_demand_signal_occ_metric_alarm" "test_occ_metric_alarm" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.occ_metric_alarm_display_name
	frequency = var.occ_metric_alarm_frequency
	is_active = var.occ_metric_alarm_is_active
	resource_configuration {
		#Required
		resource = var.occ_metric_alarm_resource_configuration_resource
		usage_type = var.occ_metric_alarm_resource_configuration_usage_type

		#Optional
		compute_hw_generation = var.occ_metric_alarm_resource_configuration_compute_hw_generation
		hw_generation = var.occ_metric_alarm_resource_configuration_hw_generation
		link_role = var.occ_metric_alarm_resource_configuration_link_role
		node_type = var.occ_metric_alarm_resource_configuration_node_type
		occ_metric_alarm_provider = var.occ_metric_alarm_resource_configuration_occ_metric_alarm_provider
		shape = var.occ_metric_alarm_resource_configuration_shape
		storage_type = var.occ_metric_alarm_resource_configuration_storage_type
	}
	threshold = var.occ_metric_alarm_threshold

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.occ_metric_alarm_description
	freeform_tags = {"Department"= "Finance"}
	state = var.occ_metric_alarm_state
	subscribers = var.occ_metric_alarm_subscribers
	threshold_type = var.occ_metric_alarm_threshold_type
}

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

Import

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

$ terraform import oci_demand_signal_occ_metric_alarm.test_occ_metric_alarm "id"