googleComputeRegionNetworkFirewallPolicy
The Compute NetworkFirewallPolicy resource
Example Usage - regional
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.computeRegionNetworkFirewallPolicy.ComputeRegionNetworkFirewallPolicy(
this,
"primary",
{
description: "Sample regional network firewall policy",
name: "policy",
project: "my-project-name",
region: "us-west1",
}
);
Argument Reference
The following arguments are supported:
name
- (Required) User-provided name of the Network firewall policy. The name should be unique in the project in which the firewall policy is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
-
description
- (Optional) An optional description of this resource. Provide this property when you create the resource. -
region
- (Optional) The location of this resource. -
project
- (Optional) The project for the resource
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
-
id
- an identifier for the resource with formatprojects/{{project}}/regions/{{region}}/firewallPolicies/{{name}}
-
creationTimestamp
- Creation timestamp in RFC3339 text format. -
fingerprint
- Fingerprint of the resource. This field is used internally during updates of this resource. -
regionNetworkFirewallPolicyId
- The unique identifier for the resource. This identifier is defined by the server. -
ruleTupleCount
- Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples. -
selfLink
- Server-defined URL for the resource. -
selfLinkWithId
- Server-defined URL for this resource with the resource id.
Timeouts
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.
Import
NetworkFirewallPolicy can be imported using any of these accepted formats:
$ terraform import google_compute_region_network_firewall_policy.default projects/{{project}}/regions/{{region}}/firewallPolicies/{{name}}
$ terraform import google_compute_region_network_firewall_policy.default {{project}}/{{region}}/{{name}}
$ terraform import google_compute_region_network_firewall_policy.default {{region}}/{{name}}
$ terraform import google_compute_region_network_firewall_policy.default {{name}}