This resource provides the Network Firewall Policy resource in Oracle Cloud Infrastructure Network Firewall service.
Creates a new Network Firewall Policy.
resource "oci_network_firewall_network_firewall_policy" "test_network_firewall_policy" {
#Required
compartment_id = var.compartment_id
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
display_name = var.network_firewall_policy_display_name
freeform_tags = {"Department"= "Finance"}
}
The following arguments are supported:
compartment_id
- (Required) (Updatable) The OCID of the compartment containing the NetworkFirewall Policy.defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name
- (Optional) (Updatable) A user-friendly optional name for the firewall policy. Avoid entering confidential information.freeform_tags
- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
* 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
The following attributes are exported:
attached_network_firewall_count
- Count of number of Network Firewall attached to the Policy. compartment_id
- The OCID of the compartment containing the NetworkFirewall Policy.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name
- A user-friendly optional name for the firewall policy. Avoid entering confidential information.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id
- The OCID of the resource - Network Firewall Policy.lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.state
- The current state of the Network Firewall Policy.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created
- The time instant at which the Network Firewall Policy was created in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
time_updated
- The time instant at which the Network Firewall Policy was updated in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Network Firewall Policy
* update
- (Defaults to 20 minutes), when updating the Network Firewall Policy
* delete
- (Defaults to 20 minutes), when destroying the Network Firewall Policy
NetworkFirewallPolicies can be imported using the id
, e.g.
$ terraform import oci_network_firewall_network_firewall_policy.test_network_firewall_policy "id"