oci_data_safe_unified_audit_policy

This resource provides the Unified Audit Policy resource in Oracle Cloud Infrastructure Data Safe service.

Creates the specified unified audit policy.

Example Usage

resource "oci_data_safe_unified_audit_policy" "test_unified_audit_policy" {
	#Required
	compartment_id = var.compartment_id
	conditions {
		#Required
		entity_selection = var.unified_audit_policy_conditions_entity_selection
		entity_type = var.unified_audit_policy_conditions_entity_type
		operation_status = var.unified_audit_policy_conditions_operation_status

		#Optional
		attribute_set_id = oci_data_safe_attribute_set.test_attribute_set.id
		role_names = var.unified_audit_policy_conditions_role_names
		user_names = var.unified_audit_policy_conditions_user_names
	}
	security_policy_id = oci_data_safe_security_policy.test_security_policy.id
	status = var.unified_audit_policy_status
	unified_audit_policy_definition_id = oci_data_safe_unified_audit_policy_definition.test_unified_audit_policy_definition.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.unified_audit_policy_description
	display_name = var.unified_audit_policy_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 Unified Audit Policy * update - (Defaults to 20 minutes), when updating the Unified Audit Policy * delete - (Defaults to 20 minutes), when destroying the Unified Audit Policy

Import

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

$ terraform import oci_data_safe_unified_audit_policy.test_unified_audit_policy "id"