oci_data_safe_target_alert_policy_association

This resource provides the Target Alert Policy Association resource in Oracle Cloud Infrastructure Data Safe service.

Creates a new target-alert policy association to track a alert policy applied on target.

Example Usage

resource "oci_data_safe_target_alert_policy_association" "test_target_alert_policy_association" {
	#Required
	compartment_id = var.compartment_id
	is_enabled = var.target_alert_policy_association_is_enabled
	policy_id = oci_identity_policy.test_policy.id
	target_id = oci_cloud_guard_target.test_target.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.target_alert_policy_association_description
	display_name = var.target_alert_policy_association_display_name
	freeform_tags = {"Department"= "Finance"}
}

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 Target Alert Policy Association * update - (Defaults to 20 minutes), when updating the Target Alert Policy Association * delete - (Defaults to 20 minutes), when destroying the Target Alert Policy Association

Import

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

$ terraform import oci_data_safe_target_alert_policy_association.test_target_alert_policy_association "id"