import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Provides a Cloudflare Split Tunnel resource. Split tunnels are used to either * include or exclude lists of routes from the WARP client's tunnel. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * // Excluding *.example.com from WARP routes * const exampleSplitTunnelExclude = new cloudflare.SplitTunnel("example_split_tunnel_exclude", { * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe", * mode: "exclude", * tunnels: [{ * description: "example domain", * host: "*.example.com", * }], * }); * // Including *.example.com in WARP routes * const exampleSplitTunnelInclude = new cloudflare.SplitTunnel("example_split_tunnel_include", { * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe", * mode: "include", * tunnels: [{ * description: "example domain", * host: "*.example.com", * }], * }); * ``` * * ## Import * * Split Tunnels can be imported using the account identifer and mode. * * ```sh * $ pulumi import cloudflare:index/splitTunnel:SplitTunnel example 1d5fdc9e88c8a8c4518b068cd94331fe/exclude * ``` */ export declare class SplitTunnel extends pulumi.CustomResource { /** * Get an existing SplitTunnel 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?: SplitTunnelState, opts?: pulumi.CustomResourceOptions): SplitTunnel; /** * Returns true if the given object is an instance of SplitTunnel. 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 SplitTunnel; /** * The account to which the device posture rule should be added. */ readonly accountId: pulumi.Output; /** * The split tunnel mode. Valid values are `include` or `exclude`. */ readonly mode: pulumi.Output; /** * The value of the tunnel attributes (refer to the nested schema). */ readonly tunnels: pulumi.Output; /** * Create a SplitTunnel 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: SplitTunnelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SplitTunnel resources. */ export interface SplitTunnelState { /** * The account to which the device posture rule should be added. */ accountId?: pulumi.Input; /** * The split tunnel mode. Valid values are `include` or `exclude`. */ mode?: pulumi.Input; /** * The value of the tunnel attributes (refer to the nested schema). */ tunnels?: pulumi.Input[]>; } /** * The set of arguments for constructing a SplitTunnel resource. */ export interface SplitTunnelArgs { /** * The account to which the device posture rule should be added. */ accountId: pulumi.Input; /** * The split tunnel mode. Valid values are `include` or `exclude`. */ mode: pulumi.Input; /** * The value of the tunnel attributes (refer to the nested schema). */ tunnels: pulumi.Input[]>; }