SslVpnServerArgs

data class SslVpnServerArgs(val cipher: Output<String>? = null, val clientIpPool: Output<String>? = null, val compress: Output<Boolean>? = null, val localSubnet: Output<String>? = null, val name: Output<String>? = null, val port: Output<Int>? = null, val protocol: Output<String>? = null, val vpnGatewayId: Output<String>? = null) : ConvertibleToJava<SslVpnServerArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpn.Gateway;
import com.pulumi.alicloud.vpn.GatewayArgs;
import com.pulumi.alicloud.vpn.SslVpnServer;
import com.pulumi.alicloud.vpn.SslVpnServerArgs;
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 fooGateway = new Gateway("fooGateway", GatewayArgs.builder()
.vpcId("vpc-fake-id")
.bandwidth("10")
.enableSsl(true)
.instanceChargeType("PostPaid")
.description("test_create_description")
.build());
var fooSslVpnServer = new SslVpnServer("fooSslVpnServer", SslVpnServerArgs.builder()
.vpnGatewayId(fooGateway.id())
.clientIpPool("192.168.0.0/16")
.localSubnet("172.16.0.0/21")
.protocol("UDP")
.cipher("AES-128-CBC")
.port(1194)
.compress("false")
.build());
}
}

Import

SSL-VPN server can be imported using the id, e.g.

$ pulumi import alicloud:vpn/sslVpnServer:SslVpnServer example vss-abc123456

Constructors

Link copied to clipboard
fun SslVpnServerArgs(cipher: Output<String>? = null, clientIpPool: Output<String>? = null, compress: Output<Boolean>? = null, localSubnet: Output<String>? = null, name: Output<String>? = null, port: Output<Int>? = null, protocol: Output<String>? = null, vpnGatewayId: Output<String>? = null)

Functions

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

Properties

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

The encryption algorithm that is used in the SSL-VPN connection. Valid values: AES-128-CBC,AES-192-CBC,AES-256-CBC,none. Default value: AES-128-CBC.

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

The CIDR block from which access addresses are allocated to the virtual network interface card of the client.

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

Specifies whether to enable data compression. Valid values: true,false. Default value: false

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

The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like 10.0.1.0/24,10.0.2.0/24,10.0.3.0/24.

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

The name of the SSL-VPN server.

Link copied to clipboard
val port: Output<Int>? = null

The port used by the SSL-VPN server. The default value is 1194.The following ports cannot be used: 22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500.

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

The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP

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

The ID of the VPN gateway.