import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Hetzner Cloud Firewall to represent a Firewall in the Hetzner Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const myfirewall = new hcloud.Firewall("myfirewall", { * name: "my-firewall", * rules: [ * { * direction: "in", * protocol: "icmp", * sourceIps: [ * "0.0.0.0/0", * "::/0", * ], * }, * { * direction: "in", * protocol: "tcp", * port: "80-85", * sourceIps: [ * "0.0.0.0/0", * "::/0", * ], * }, * ], * }); * const node1 = new hcloud.Server("node1", { * name: "node1", * image: "debian-12", * serverType: "cx23", * firewallIds: [myfirewall.id], * }); * ``` * * ## Import * * Firewalls can be imported using its `id`: * * ```sh * $ pulumi import hcloud:index/firewall:Firewall example "$FIREWALL_ID" * ``` */ export declare class Firewall extends pulumi.CustomResource { /** * Get an existing Firewall resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FirewallState, opts?: pulumi.CustomResourceOptions): Firewall; /** * Returns true if the given object is an instance of Firewall. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Firewall; /** * Resources the firewall should be assigned to */ readonly applyTos: pulumi.Output; /** * User-defined labels (key-value pairs) should be created with. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * Name of the Firewall. */ readonly name: pulumi.Output; /** * Configuration of a Rule from this Firewall. */ readonly rules: pulumi.Output; /** * Create a Firewall resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: FirewallArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Firewall resources. */ export interface FirewallState { /** * Resources the firewall should be assigned to */ applyTos?: pulumi.Input[]>; /** * User-defined labels (key-value pairs) should be created with. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Name of the Firewall. */ name?: pulumi.Input; /** * Configuration of a Rule from this Firewall. */ rules?: pulumi.Input[]>; } /** * The set of arguments for constructing a Firewall resource. */ export interface FirewallArgs { /** * Resources the firewall should be assigned to */ applyTos?: pulumi.Input[]>; /** * User-defined labels (key-value pairs) should be created with. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Name of the Firewall. */ name?: pulumi.Input; /** * Configuration of a Rule from this Firewall. */ rules?: pulumi.Input[]>; }