oci_zpr_zpr_policy

This resource provides the Zpr Policy resource in Oracle Cloud Infrastructure Zpr service.

Creates a ZprPolicy.

Example Usage

resource "oci_zpr_zpr_policy" "test_zpr_policy" {
	#Required
	compartment_id = var.tenancy_ocid
	description = var.zpr_policy_description
	name = var.zpr_policy_name
	statements = var.zpr_policy_statements

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

Import

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

$ terraform import oci_zpr_zpr_policy.test_zpr_policy "id"