import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to manage an IP firewall. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myFirewall = new ovh.ip.Firewall("my_firewall", { * ip: "XXXXXX", * ipOnFirewall: "XXXXXX", * enabled: true, * }); * ``` * * ## Import * * An IP firewall can be imported using the `ip` and `ip_on_firewall`, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:Ip/firewall:Firewall my_firewall 1.2.3.4/32/1.2.3.4 * ``` */ 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; /** * Whether firewall should be enabled */ readonly enabled: pulumi.Output; /** * The IP or the CIDR */ readonly ip: pulumi.Output; /** * IPv4 address */ readonly ipOnFirewall: pulumi.Output; /** * Current state of your ip on firewall */ readonly state: 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 { /** * Whether firewall should be enabled */ enabled?: pulumi.Input; /** * The IP or the CIDR */ ip?: pulumi.Input; /** * IPv4 address */ ipOnFirewall?: pulumi.Input; /** * Current state of your ip on firewall */ state?: pulumi.Input; } /** * The set of arguments for constructing a Firewall resource. */ export interface FirewallArgs { /** * Whether firewall should be enabled */ enabled?: pulumi.Input; /** * The IP or the CIDR */ ip: pulumi.Input; /** * IPv4 address */ ipOnFirewall: pulumi.Input; }