TunnelVirtualNetworkArgs

data class TunnelVirtualNetworkArgs(val accountId: Output<String>? = null, val comment: Output<String>? = null, val isDefaultNetwork: Output<Boolean>? = null, val name: Output<String>? = null) : ConvertibleToJava<TunnelVirtualNetworkArgs>

Provides a resource, that manages Cloudflare tunnel virtual networks for Zero Trust. Tunnel virtual networks are used for segregation of Tunnel IP Routes via Virtualized Networks to handle overlapping private IPs in your origins.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.TunnelVirtualNetwork;
import com.pulumi.cloudflare.TunnelVirtualNetworkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TunnelVirtualNetwork("example", TunnelVirtualNetworkArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.comment("New tunnel virtual network for documentation")
.name("vnet-for-documentation")
.build());
}
}

Import

$ pulumi import cloudflare:index/tunnelVirtualNetwork:TunnelVirtualNetwork example <account_id>/<vnet_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, comment: Output<String>? = null, isDefaultNetwork: Output<Boolean>? = null, name: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val comment: Output<String>? = null

Description of the tunnel virtual network.

Link copied to clipboard
val isDefaultNetwork: Output<Boolean>? = null

Whether this virtual network is the default one for the account. This means IP Routes belong to this virtual network and Teams Clients in the account route through this virtual network, unless specified otherwise for each case.

Link copied to clipboard
val name: Output<String>? = null

A user-friendly name chosen when the virtual network is created.

Functions

Link copied to clipboard
open override fun toJava(): TunnelVirtualNetworkArgs