Expand description
Hierarchical firewall policy rules let you create and enforce a consistent firewall policy across your organization. Rules can explicitly allow or deny connections or delegate evaluation to lower level policies. Policies can be created within organizations or folders.
This resource should be generally be used with gcp.compute.FirewallPolicyAssociation
and gcp.compute.FirewallPolicyRule
For more information see the official documentation
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let default = firewall_policy::create(
"default",
FirewallPolicyArgs::builder()
.description("Example Resource")
.parent("organizations/12345")
.short_name("my-policy")
.build_struct(),
);
}
§Import
FirewallPolicy can be imported using any of these accepted formats:
$ pulumi import gcp:compute/firewallPolicy:FirewallPolicy default locations/global/firewallPolicies/{{name}}
$ pulumi import gcp:compute/firewallPolicy:FirewallPolicy 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