oci_stack_monitoring_monitored_resource_type

This resource provides the Monitored Resource Type resource in Oracle Cloud Infrastructure Stack Monitoring service.

Creates a new monitored resource type.

Example Usage

resource "oci_stack_monitoring_monitored_resource_type" "test_monitored_resource_type" {
	#Required
	compartment_id = var.compartment_id
	name = var.monitored_resource_type_name

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.monitored_resource_type_description
	display_name = var.monitored_resource_type_display_name
	freeform_tags = {"bar-key"= "value"}
	metadata {
		#Required
		format = var.monitored_resource_type_metadata_format

		#Optional
		agent_properties = var.monitored_resource_type_metadata_agent_properties
		required_properties = var.monitored_resource_type_metadata_required_properties
		unique_property_sets {
			#Required
			properties = var.monitored_resource_type_metadata_unique_property_sets_properties
		}
		valid_properties_for_create = var.monitored_resource_type_metadata_valid_properties_for_create
		valid_properties_for_update = var.monitored_resource_type_metadata_valid_properties_for_update
		valid_property_values = var.monitored_resource_type_metadata_valid_property_values
	}
	metric_namespace = var.monitored_resource_type_metric_namespace
	resource_category = var.monitored_resource_type_resource_category
	source_type = var.monitored_resource_type_source_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 Monitored Resource Type * update - (Defaults to 20 minutes), when updating the Monitored Resource Type * delete - (Defaults to 20 minutes), when destroying the Monitored Resource Type

Import

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

$ terraform import oci_stack_monitoring_monitored_resource_type.test_monitored_resource_type "id"