Expand description
The Compute NetworkFirewallPolicy resource
§Example Usage
§Region 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 = region_network_firewall_policy::create(
"policy",
RegionNetworkFirewallPolicyArgs::builder()
.description("Terraform test")
.name("tf-test-policy")
.build_struct(),
);
}
§Import
RegionNetworkFirewallPolicy can be imported using any of these accepted formats:
-
projects/{{project}}/regions/{{region}}/firewallPolicies/{{name}}
-
{{project}}/{{region}}/{{name}}
-
{{region}}/{{name}}
-
{{name}}
When using the pulumi import
command, RegionNetworkFirewallPolicy can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/regionNetworkFirewallPolicy:RegionNetworkFirewallPolicy default projects/{{project}}/regions/{{region}}/firewallPolicies/{{name}}
$ pulumi import gcp:compute/regionNetworkFirewallPolicy:RegionNetworkFirewallPolicy default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:compute/regionNetworkFirewallPolicy:RegionNetworkFirewallPolicy default {{region}}/{{name}}
$ pulumi import gcp:compute/regionNetworkFirewallPolicy:RegionNetworkFirewallPolicy 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