oci_data_safe_audit_profile

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

Create a new audit profile resource for a target group. For a target database, it will update the auto created audit profile

Example Usage

resource "oci_data_safe_audit_profile" "test_audit_profile" {
	#Required
	compartment_id = var.compartment_id
	target_id = oci_cloud_guard_target.test_target.id
	target_type = var.audit_profile_target_type

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.audit_profile_description
	display_name = var.audit_profile_display_name
	freeform_tags = {"Department"= "Finance"}
	is_override_global_paid_usage = var.audit_profile_is_override_global_paid_usage
	is_paid_usage_enabled = var.audit_profile_is_paid_usage_enabled
	offline_months = var.audit_profile_offline_months
	online_months = var.audit_profile_online_months
	change_retention_trigger= var.retention_trigger
    is_override_global_retention_setting = true
}

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

Import

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

$ terraform import oci_data_safe_audit_profile.test_audit_profile "id"