SslVpnServer

class SslVpnServer : KotlinCustomResource

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

Properties

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

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>

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>?

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

Link copied to clipboard
val connections: Output<Int>

The number of current connections.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val internetIp: Output<String>

The internet IP of the SSL-VPN server.

Link copied to clipboard
val localSubnet: Output<String>

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 maxConnections: Output<Int>

The maximum number of connections.

Link copied to clipboard
val name: Output<String>

The name of the SSL-VPN server.

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

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>?

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpnGatewayId: Output<String>

The ID of the VPN gateway.