import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource, that manages IPsec tunnels for Magic Transit. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const example = new cloudflare.IpsecTunnel("example", { * accountId: "c4a7362d577a6c3019a474fd6f485821", * cloudflareEndpoint: "203.0.113.1", * customerEndpoint: "203.0.113.1", * description: "Tunnel for ISP X", * interfaceAddress: "192.0.2.0/31", * name: "IPsec_1", * }); * ``` * * ## Import * * An existing IPsec tunnel can be imported using the account ID and tunnel ID * * ```sh * $ pulumi import cloudflare:index/ipsecTunnel:IpsecTunnel example d41d8cd98f00b204e9800998ecf8427e/cb029e245cfdd66dc8d2e570d5dd3322 * ``` */ export declare class IpsecTunnel extends pulumi.CustomResource { /** * Get an existing IpsecTunnel 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?: IpsecTunnelState, opts?: pulumi.CustomResourceOptions): IpsecTunnel; /** * Returns true if the given object is an instance of IpsecTunnel. 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 IpsecTunnel; /** * The ID of the account where the tunnel is being created. */ readonly accountId: pulumi.Output; /** * IP address assigned to the Cloudflare side of the IPsec tunnel. */ readonly cloudflareEndpoint: pulumi.Output; /** * IP address assigned to the customer side of the IPsec tunnel. */ readonly customerEndpoint: pulumi.Output; /** * An optional description of the IPsec tunnel. */ readonly description: pulumi.Output; /** * 31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel. */ readonly interfaceAddress: pulumi.Output; /** * Name of the IPsec tunnel. */ readonly name: pulumi.Output; /** * Create a IpsecTunnel 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: IpsecTunnelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpsecTunnel resources. */ export interface IpsecTunnelState { /** * The ID of the account where the tunnel is being created. */ accountId?: pulumi.Input; /** * IP address assigned to the Cloudflare side of the IPsec tunnel. */ cloudflareEndpoint?: pulumi.Input; /** * IP address assigned to the customer side of the IPsec tunnel. */ customerEndpoint?: pulumi.Input; /** * An optional description of the IPsec tunnel. */ description?: pulumi.Input; /** * 31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel. */ interfaceAddress?: pulumi.Input; /** * Name of the IPsec tunnel. */ name?: pulumi.Input; } /** * The set of arguments for constructing a IpsecTunnel resource. */ export interface IpsecTunnelArgs { /** * The ID of the account where the tunnel is being created. */ accountId?: pulumi.Input; /** * IP address assigned to the Cloudflare side of the IPsec tunnel. */ cloudflareEndpoint: pulumi.Input; /** * IP address assigned to the customer side of the IPsec tunnel. */ customerEndpoint: pulumi.Input; /** * An optional description of the IPsec tunnel. */ description?: pulumi.Input; /** * 31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel. */ interfaceAddress: pulumi.Input; /** * Name of the IPsec tunnel. */ name: pulumi.Input; }