oci_recovery_protection_policy

This resource provides the Protection Policy resource in Oracle Cloud Infrastructure Recovery service.

Creates a new Protection Policy.

Example Usage

resource "oci_recovery_protection_policy" "test_protection_policy" {
	#Required
	backup_retention_period_in_days = var.protection_policy_backup_retention_period_in_days
	compartment_id = var.compartment_id
	display_name = var.protection_policy_display_name

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	policy_locked_date_time = var.protection_policy_policy_locked_date_time
}

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

Import

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

$ terraform import oci_recovery_protection_policy.test_protection_policy "id"