oci_network_firewall_network_firewall_policy_security_rule

This resource provides the Network Firewall Policy Security Rule resource in Oracle Cloud Infrastructure Network Firewall service.

Creates a new Security Rule for the Network Firewall Policy.

Example Usage

resource "oci_network_firewall_network_firewall_policy_security_rule" "test_network_firewall_policy_security_rule" {
    lifecycle {
        ignore_changes = [position]
    }
    #Required
    action = var.network_firewall_policy_security_rule_action
    name = var.network_firewall_policy_security_rule_name
    condition {
        application = var.network_firewall_policy_security_rule_condition_application
        destination_address = var.network_firewall_policy_security_rule_condition_destination_address
        service = var.network_firewall_policy_security_rule_condition_service
        source_address = var.network_firewall_policy_security_rule_condition_source_address
        url = var.network_firewall_policy_security_rule_condition_url
    }
    network_firewall_policy_id = oci_network_firewall_network_firewall_policy.test_network_firewall_policy.id

    #Optional
    inspection = var.network_firewall_policy_security_rule_inspection
    position {

        #Optional
        after_rule = var.network_firewall_policy_security_rule_position_after_rule
        before_rule = var.network_firewall_policy_security_rule_position_before_rule
    }
}

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

Import

NetworkFirewallPolicySecurityRules can be imported using the name, e.g.

$ terraform import oci_network_firewall_network_firewall_policy_security_rule.test_network_firewall_policy_security_rule "networkFirewallPolicies/{networkFirewallPolicyId}/securityRules/{securityRuleName}"