Expand description
The Compute NetworkFirewallPolicy resource
§Example Usage
§Network Firewall Policy Full
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let policy = network_firewall_policy::create(
"policy",
NetworkFirewallPolicyArgs::builder()
.description("Terraform test")
.name("tf-test-policy")
.build_struct(),
);
}
§Import
NetworkFirewallPolicy can be imported using any of these accepted formats:
-
projects/{{project}}/global/firewallPolicies/{{name}}
-
{{project}}/{{name}}
-
{{name}}
When using the pulumi import
command, NetworkFirewallPolicy can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/networkFirewallPolicy:NetworkFirewallPolicy default projects/{{project}}/global/firewallPolicies/{{name}}
$ pulumi import gcp:compute/networkFirewallPolicy:NetworkFirewallPolicy default {{project}}/{{name}}
$ pulumi import gcp:compute/networkFirewallPolicy:NetworkFirewallPolicy default {{name}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments