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 exampleMagicWanIpsecTunnel = new cloudflare.MagicWanIpsecTunnel("example_magic_wan_ipsec_tunnel", { * accountId: "023e105f4ecef8ad9ca31a8372d0c353", * cloudflareEndpoint: "203.0.113.1", * interfaceAddress: "192.0.2.0/31", * name: "IPsec_1", * customerEndpoint: "203.0.113.1", * description: "Tunnel for ISP X", * healthCheck: { * direction: "bidirectional", * enabled: true, * rate: "low", * target: { * saved: "203.0.113.1", * }, * type: "request", * }, * psk: "O3bwKSjnaoCxDoUxjcq4Rk8ZKkezQUiy", * replayProtection: false, * }); * ``` * * ## Import * * ```sh * $ pulumi import cloudflare:index/magicWanIpsecTunnel:MagicWanIpsecTunnel example '/' * ``` */ export declare class MagicWanIpsecTunnel extends pulumi.CustomResource { /** * Get an existing MagicWanIpsecTunnel 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?: MagicWanIpsecTunnelState, opts?: pulumi.CustomResourceOptions): MagicWanIpsecTunnel; /** * Returns true if the given object is an instance of MagicWanIpsecTunnel. 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 MagicWanIpsecTunnel; /** * Identifier */ readonly accountId: pulumi.Output; /** * When `true`, the tunnel can use a null-cipher (`ENCR_NULL`) in the ESP tunnel (Phase 2). */ readonly allowNullCipher: pulumi.Output; /** * The IP address assigned to the Cloudflare side of the IPsec tunnel. */ readonly cloudflareEndpoint: pulumi.Output; /** * The date and time the tunnel was created. */ readonly createdOn: pulumi.Output; /** * The IP address assigned to the customer side of the IPsec tunnel. Not required, but must be set for proactive traceroutes to work. */ readonly customerEndpoint: pulumi.Output; /** * An optional description forthe IPsec tunnel. */ readonly description: pulumi.Output; readonly healthCheck: pulumi.Output; /** * A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255. */ readonly interfaceAddress: pulumi.Output; readonly ipsecTunnel: pulumi.Output; readonly modified: pulumi.Output; readonly modifiedIpsecTunnel: pulumi.Output; /** * The date and time the tunnel was last modified. */ readonly modifiedOn: pulumi.Output; /** * The name of the IPsec tunnel. The name cannot share a name with other tunnels. */ readonly name: pulumi.Output; /** * A randomly generated or provided string for use in the IPsec tunnel. */ readonly psk: pulumi.Output; /** * The PSK metadata that includes when the PSK was generated. */ readonly pskMetadata: pulumi.Output; /** * If `true`, then IPsec replay protection will be supported in the Cloudflare-to-customer direction. */ readonly replayProtection: pulumi.Output; /** * Create a MagicWanIpsecTunnel 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: MagicWanIpsecTunnelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MagicWanIpsecTunnel resources. */ export interface MagicWanIpsecTunnelState { /** * Identifier */ accountId?: pulumi.Input; /** * When `true`, the tunnel can use a null-cipher (`ENCR_NULL`) in the ESP tunnel (Phase 2). */ allowNullCipher?: pulumi.Input; /** * The IP address assigned to the Cloudflare side of the IPsec tunnel. */ cloudflareEndpoint?: pulumi.Input; /** * The date and time the tunnel was created. */ createdOn?: pulumi.Input; /** * The IP address assigned to the customer side of the IPsec tunnel. Not required, but must be set for proactive traceroutes to work. */ customerEndpoint?: pulumi.Input; /** * An optional description forthe IPsec tunnel. */ description?: pulumi.Input; healthCheck?: pulumi.Input; /** * A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255. */ interfaceAddress?: pulumi.Input; ipsecTunnel?: pulumi.Input; modified?: pulumi.Input; modifiedIpsecTunnel?: pulumi.Input; /** * The date and time the tunnel was last modified. */ modifiedOn?: pulumi.Input; /** * The name of the IPsec tunnel. The name cannot share a name with other tunnels. */ name?: pulumi.Input; /** * A randomly generated or provided string for use in the IPsec tunnel. */ psk?: pulumi.Input; /** * The PSK metadata that includes when the PSK was generated. */ pskMetadata?: pulumi.Input; /** * If `true`, then IPsec replay protection will be supported in the Cloudflare-to-customer direction. */ replayProtection?: pulumi.Input; } /** * The set of arguments for constructing a MagicWanIpsecTunnel resource. */ export interface MagicWanIpsecTunnelArgs { /** * Identifier */ accountId: pulumi.Input; /** * The IP address assigned to the Cloudflare side of the IPsec tunnel. */ cloudflareEndpoint: pulumi.Input; /** * The IP address assigned to the customer side of the IPsec tunnel. Not required, but must be set for proactive traceroutes to work. */ customerEndpoint?: pulumi.Input; /** * An optional description forthe IPsec tunnel. */ description?: pulumi.Input; healthCheck?: pulumi.Input; /** * A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side of the tunnel. Select the subnet from the following private IP space: 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255. */ interfaceAddress: pulumi.Input; /** * The name of the IPsec tunnel. The name cannot share a name with other tunnels. */ name: pulumi.Input; /** * A randomly generated or provided string for use in the IPsec tunnel. */ psk?: pulumi.Input; /** * If `true`, then IPsec replay protection will be supported in the Cloudflare-to-customer direction. */ replayProtection?: pulumi.Input; }