oci_waas_custom_protection_rule

This resource provides the Custom Protection Rule resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

Creates a new custom protection rule in the specified compartment.

Custom protection rules allow you to create rules in addition to the rulesets provided by the Web Application Firewall service, including rules from ModSecurity. The syntax for custom rules is based on the ModSecurity syntax. For more information about custom protection rules, see Custom Protection Rules.

Example Usage

resource "oci_waas_custom_protection_rule" "test_custom_protection_rule" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.custom_protection_rule_display_name
	template = var.custom_protection_rule_template

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

Import

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

$ terraform import oci_waas_custom_protection_rule.test_custom_protection_rule "id"