SslVpnServer
This class encapsulates and extends the ROS resource type ALIYUN::VPC::SslVpnServer
, which is used to create an SSL-VPN server.
Initializers
import com.aliyun.ros.cdk.vpc.SslVpnServer;
SslVpnServer.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.clientIpPool(java.lang.String)
.clientIpPool(IResolvable)
.localSubnet(java.lang.String)
.localSubnet(IResolvable)
.vpnGatewayId(java.lang.String)
.vpnGatewayId(IResolvable)
// .cipher(java.lang.String)
// .cipher(IResolvable)
// .compress(java.lang.Boolean)
// .compress(IResolvable)
// .enableMultiFactorAuth(java.lang.Boolean)
// .enableMultiFactorAuth(IResolvable)
// .iDaaSApplicationId(java.lang.String)
// .iDaaSApplicationId(IResolvable)
// .iDaaSInstanceId(java.lang.String)
// .iDaaSInstanceId(IResolvable)
// .iDaaSRegionId(java.lang.String)
// .iDaaSRegionId(IResolvable)
// .name(java.lang.String)
// .name(IResolvable)
// .port(java.lang.Number)
// .port(IResolvable)
// .proto(java.lang.String)
// .proto(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
clientIpPool |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clientIpPool: It is the address segment that assigns the access address to the client virtual NIC. |
localSubnet |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property localSubnet: Is the address segment that the client wants to access through an SSL-VPN connection. |
vpnGatewayId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpnGatewayId: ID of the VPN gateway. |
cipher |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property cipher: The encryption algorithm used by SSL-VPN. |
compress |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property compress: Whether it is compressed. |
enableMultiFactorAuth |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property enableMultiFactorAuth: Whether to enable multi-factor authentication. |
iDaaSApplicationId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property iDaaSApplicationId: The ID of the IDaaS application. |
iDaaSInstanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property iDaaSInstanceId: The ID of the IDaaS instance. |
iDaaSRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property iDaaSRegionId: The region ID of the IDaaS instance. |
name |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property name: The name of the SSL-VPN server. |
port |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property port: The port used by the SSL-VPN server. |
proto |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property proto: The protocol used by the SSL-VPN server. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
clientIpPool
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clientIpPool: It is the address segment that assigns the access address to the client virtual NIC.
It does not refer to the existing intranet segment of the client. When the client accesses the local end through an SSL-VPN connection, the VPN gateway allocates an IP address to the client from the specified client network segment. The network segment cannot conflict with the LocalSubnet address segment.
localSubnet
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property localSubnet: Is the address segment that the client wants to access through an SSL-VPN connection.
The local network segment can be the network segment of the VPC, the network segment of the switch, the network segment of the IDC interconnected by the leased line and the VPC, and the network segment of the cloud service such as RDS/OSS.
vpnGatewayId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpnGatewayId: ID of the VPN gateway.
cipher
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cipher: The encryption algorithm used by SSL-VPN.
Value: AES-128-CBC (default) | AES-192-CBC | AES-256-CBC | none
compress
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property compress: Whether it is compressed.
enableMultiFactorAuth
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableMultiFactorAuth: Whether to enable multi-factor authentication.
The default value is false.
iDaaSApplicationId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property iDaaSApplicationId: The ID of the IDaaS application.
iDaaSInstanceId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property iDaaSInstanceId: The ID of the IDaaS instance.
iDaaSRegionId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property iDaaSRegionId: The region ID of the IDaaS instance.
name
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the SSL-VPN server.
The length is 2-128 characters and must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_), and dashes (-). But it can't start with http:// or https://.
port
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property port: The port used by the SSL-VPN server.
The default value is 1194. Cannot use the following ports: 22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500
proto
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property proto: The protocol used by the SSL-VPN server.
Allowed values: UDP (default) | TCP.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.vpc.SslVpnServer;
SslVpnServer.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrSslVpnServerId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SslVpnServerId: ID of the SSL-VPN server. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrSslVpnServerId
Required
public IResolvable getAttrSslVpnServerId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SslVpnServerId: ID of the SSL-VPN server.