Ssl Vpn Server Args
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());
}
}
Content copied to clipboard
Import
SSL-VPN server can be imported using the id, e.g.
$ pulumi import alicloud:vpn/sslVpnServer:SslVpnServer example vss-abc123456
Content copied to clipboard