import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const exampleZeroTrustTunnelCloudflared = new cloudflare.ZeroTrustTunnelCloudflared("example_zero_trust_tunnel_cloudflared", { * accountId: "699d98642c564d2e855e9661899b7252", * name: "blog", * configSrc: "cloudflare", * tunnelSecret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=", * }); * ``` * * ## Import * * ```sh * $ pulumi import cloudflare:index/tunnel:Tunnel example '/' * ``` * * @deprecated cloudflare.index/tunnel.Tunnel has been deprecated in favor of cloudflare.index/zerotrusttunnelcloudflared.ZeroTrustTunnelCloudflared */ export declare class Tunnel extends pulumi.CustomResource { /** * Get an existing Tunnel 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?: TunnelState, opts?: pulumi.CustomResourceOptions): Tunnel; /** * Returns true if the given object is an instance of Tunnel. 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 Tunnel; /** * Cloudflare account ID */ readonly accountId: pulumi.Output; /** * Cloudflare account ID */ readonly accountTag: pulumi.Output; /** * Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard. * Available values: "local", "cloudflare". */ readonly configSrc: pulumi.Output; /** * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. */ readonly connections: pulumi.Output; /** * Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If `null`, the tunnel is inactive. */ readonly connsActiveAt: pulumi.Output; /** * Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If `null`, the tunnel is active. */ readonly connsInactiveAt: pulumi.Output; /** * Timestamp of when the resource was created. */ readonly createdAt: pulumi.Output; /** * Timestamp of when the resource was deleted. If `null`, the resource has not been deleted. */ readonly deletedAt: pulumi.Output; /** * Metadata associated with the tunnel. */ readonly metadata: pulumi.Output; /** * A user-friendly name for a tunnel. */ readonly name: pulumi.Output; /** * If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. If `false`, the tunnel must be configured locally on the origin machine. */ readonly remoteConfig: pulumi.Output; /** * The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). * Available values: "inactive", "degraded", "healthy", "down". */ readonly status: pulumi.Output; /** * The type of tunnel. * Available values: "cfd*tunnel", "warp*connector", "warp", "magic", "ipSec", "gre", "cni". */ readonly tunType: pulumi.Output; /** * Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string. */ readonly tunnelSecret: pulumi.Output; /** * Create a Tunnel 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. */ /** @deprecated cloudflare.index/tunnel.Tunnel has been deprecated in favor of cloudflare.index/zerotrusttunnelcloudflared.ZeroTrustTunnelCloudflared */ constructor(name: string, args: TunnelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Tunnel resources. */ export interface TunnelState { /** * Cloudflare account ID */ accountId?: pulumi.Input; /** * Cloudflare account ID */ accountTag?: pulumi.Input; /** * Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard. * Available values: "local", "cloudflare". */ configSrc?: pulumi.Input; /** * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. */ connections?: pulumi.Input[]>; /** * Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If `null`, the tunnel is inactive. */ connsActiveAt?: pulumi.Input; /** * Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If `null`, the tunnel is active. */ connsInactiveAt?: pulumi.Input; /** * Timestamp of when the resource was created. */ createdAt?: pulumi.Input; /** * Timestamp of when the resource was deleted. If `null`, the resource has not been deleted. */ deletedAt?: pulumi.Input; /** * Metadata associated with the tunnel. */ metadata?: pulumi.Input; /** * A user-friendly name for a tunnel. */ name?: pulumi.Input; /** * If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. If `false`, the tunnel must be configured locally on the origin machine. */ remoteConfig?: pulumi.Input; /** * The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). * Available values: "inactive", "degraded", "healthy", "down". */ status?: pulumi.Input; /** * The type of tunnel. * Available values: "cfd*tunnel", "warp*connector", "warp", "magic", "ipSec", "gre", "cni". */ tunType?: pulumi.Input; /** * Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string. */ tunnelSecret?: pulumi.Input; } /** * The set of arguments for constructing a Tunnel resource. */ export interface TunnelArgs { /** * Cloudflare account ID */ accountId: pulumi.Input; /** * Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard. * Available values: "local", "cloudflare". */ configSrc?: pulumi.Input; /** * A user-friendly name for a tunnel. */ name: pulumi.Input; /** * Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string. */ tunnelSecret?: pulumi.Input; }