IpsecTunnelArgs

data class IpsecTunnelArgs(val accountId: Output<String>? = null, val allowNullCipher: Output<Boolean>? = null, val cloudflareEndpoint: Output<String>? = null, val customerEndpoint: Output<String>? = null, val description: Output<String>? = null, val fqdnId: Output<String>? = null, val healthCheckEnabled: Output<Boolean>? = null, val healthCheckTarget: Output<String>? = null, val healthCheckType: Output<String>? = null, val hexId: Output<String>? = null, val interfaceAddress: Output<String>? = null, val name: Output<String>? = null, val psk: Output<String>? = null, val remoteId: Output<String>? = null, val userId: Output<String>? = null) : ConvertibleToJava<IpsecTunnelArgs>

Provides a resource, that manages IPsec tunnels for Magic Transit.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.IpsecTunnel;
import com.pulumi.cloudflare.IpsecTunnelArgs;
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 IpsecTunnel("example", IpsecTunnelArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.allowNullCipher(false)
.cloudflareEndpoint("203.0.113.1")
.customerEndpoint("203.0.113.1")
.description("Tunnel for ISP X")
.healthCheckEnabled(true)
.healthCheckTarget("203.0.113.1")
.healthCheckType("reply")
.interfaceAddress("192.0.2.0/31")
.name("IPsec_1")
.psk("asdf12341234")
.build());
}
}

Import

$ pulumi import cloudflare:index/ipsecTunnel:IpsecTunnel example <account_id>/<tunnel_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, allowNullCipher: Output<Boolean>? = null, cloudflareEndpoint: Output<String>? = null, customerEndpoint: Output<String>? = null, description: Output<String>? = null, fqdnId: Output<String>? = null, healthCheckEnabled: Output<Boolean>? = null, healthCheckTarget: Output<String>? = null, healthCheckType: Output<String>? = null, hexId: Output<String>? = null, interfaceAddress: Output<String>? = null, name: Output<String>? = null, psk: Output<String>? = null, remoteId: Output<String>? = null, userId: 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 allowNullCipher: Output<Boolean>? = null

Specifies if this tunnel may use a null cipher (ENCR_NULL) in Phase 2. Defaults to false.

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

IP address assigned to the Cloudflare side of the IPsec tunnel.

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

IP address assigned to the customer side of the IPsec tunnel.

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

An optional description of the IPsec tunnel.

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

remote_id in the form of a fqdn. This value is generated by cloudflare.

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

Specifies if ICMP tunnel health checks are enabled. Default: true.

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

The IP address of the customer endpoint that will receive tunnel health checks. Default: <customer_gre_endpoint>.

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

Specifies the ICMP echo type for the health check (request or reply). Available values: request, reply Default: reply.

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

remote_id as a hex string. This value is generated by cloudflare.

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

31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel.

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

Name of the IPsec tunnel.

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

Pre shared key to be used with the IPsec tunnel. If left unset, it will be autogenerated.

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

ID to be used while setting up the IPsec tunnel. This value is generated by cloudflare.

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

remote_id in the form of an email address. This value is generated by cloudflare.

Functions

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