FirewallPolicyArgs

data class FirewallPolicyArgs(val description: Output<String>? = null, val parent: Output<String>? = null, val shortName: Output<String>? = null) : ConvertibleToJava<FirewallPolicyArgs>

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.FirewallPolicy;
import com.pulumi.gcp.compute.FirewallPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new FirewallPolicy("default", FirewallPolicyArgs.builder()
.description("Example Resource")
.parent("organizations/12345")
.shortName("my-policy")
.build());
}
}

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}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, parent: Output<String>? = null, shortName: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

An optional description of this resource. Provide this property when you create the resource.

Link copied to clipboard
val parent: Output<String>? = null

The parent of the firewall policy.

Link copied to clipboard
val shortName: Output<String>? = null

User-provided name of the Organization firewall policy. The name should be unique in the organization 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.

Functions

Link copied to clipboard
open override fun toJava(): FirewallPolicyArgs