oci_fleet_apps_management_compliance_policy_rule

This resource provides the Compliance Policy Rule resource in Oracle Cloud Infrastructure Fleet Apps Management service.

Creates a CompliancePolicyRule.

Example Usage

resource "oci_fleet_apps_management_compliance_policy_rule" "test_compliance_policy_rule" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.compliance_policy_rule_display_name
	patch_selection {
		#Required
		selection_type = var.compliance_policy_rule_patch_selection_selection_type

		#Optional
		days_since_release = var.compliance_policy_rule_patch_selection_days_since_release
		patch_level = var.compliance_policy_rule_patch_selection_patch_level
		patch_name = oci_fleet_apps_management_patch.test_patch.name
	}
	patch_type = var.compliance_policy_rule_patch_type
	product_version {
		#Required
		version = var.compliance_policy_rule_product_version_version

		#Optional
		is_applicable_for_all_higher_versions = var.compliance_policy_rule_product_version_is_applicable_for_all_higher_versions
	}

	#Optional
	compliance_policy_id = oci_fleet_apps_management_compliance_policy.test_compliance_policy.id
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	grace_period = var.compliance_policy_rule_grace_period
	severity = var.compliance_policy_rule_severity
}

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

Import

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

$ terraform import oci_fleet_apps_management_compliance_policy_rule.test_compliance_policy_rule "id"