Network Firewall Policy
The Compute NetworkFirewallPolicy resource
Example Usage
Global
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.NetworkFirewallPolicy;
import com.pulumi.gcp.compute.NetworkFirewallPolicyArgs;
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 primary = new NetworkFirewallPolicy("primary", NetworkFirewallPolicyArgs.builder()
.description("Sample global network firewall policy")
.project("my-project-name")
.build());
}
}
Import
NetworkFirewallPolicy can be imported using any of these accepted formats
$ 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}}
Properties
Creation timestamp in RFC3339 text format.
An optional description of this resource. Provide this property when you create the resource.
Fingerprint of the resource. This field is used internally during updates of this resource.
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.
The unique identifier for the resource. This identifier is defined by the server.
Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
Server-defined URL for this resource with the resource id.