oci_stack_monitoring_monitored_resources_search_association

This resource provides the Monitored Resources Search Association resource in Oracle Cloud Infrastructure Stack Monitoring service.

Search associations in the given compartment based on the search criteria.

Example Usage

resource "oci_stack_monitoring_monitored_resources_search_association" "test_monitored_resources_search_association" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	association_type = var.monitored_resources_search_association_association_type
	destination_resource_id = oci_stack_monitoring_destination_resource.test_destination_resource.id
	destination_resource_name = var.monitored_resources_search_association_destination_resource_name
	destination_resource_type = var.monitored_resources_search_association_destination_resource_type
	source_resource_id = oci_stack_monitoring_source_resource.test_source_resource.id
	source_resource_name = var.monitored_resources_search_association_source_resource_name
	source_resource_type = var.monitored_resources_search_association_source_resource_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 Resources Search Association * update - (Defaults to 20 minutes), when updating the Monitored Resources Search Association * delete - (Defaults to 20 minutes), when destroying the Monitored Resources Search Association

Import

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

$ terraform import oci_stack_monitoring_monitored_resources_search_association.test_monitored_resources_search_association "id"