ALIYUN::VPC::VpnGateway is used to create a VPN gateway.
Syntax
{
"Type": "ALIYUN::VPC::VpnGateway",
"Properties": {
"VpcId": String,
"VSwitchId": String,
"Description": String,
"EnableIpsec": Boolean,
"AutoPay": Boolean,
"Period": Integer,
"EnableSsl": Boolean,
"Bandwidth": Integer,
"InstanceChargeType": String,
"SslConnections": Integer,
"Name": String,
"Tags": List,
"VpnType": String,
"NetworkType": String,
"DisasterRecoveryVSwitchId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
VpcId | String | Yes | No | The ID of the VPC to which the VPN gateway belongs. | None. |
VSwitchId | String | No | No | The ID of the vSwitch to which the VPN gateway belongs. | None. |
Description | String | No | Yes | The description of the VPN gateway. | The description must be 2 to 256 characters in length. It must start with a letter but cannot start with |
EnableIpsec | Boolean | No | No | Specifies whether to enable the IPsec-VPN feature. | Valid values:
The IPsec-VPN feature provides site-to-site connections. You can create an IPsec tunnel to connect a data center to a VPC, or connect two VPCs. |
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment for the VPN gateway. | Valid values:
|
Period | Integer | No | No | The subscription duration. | Valid values:
Unit: months. This property is required when the InstanceChargeType parameter is set to PREPAY. |
EnableSsl | Boolean | No | No | Specifies whether to enable the SSL-VPN feature for the VPN gateway. | Valid values:
The SSL-VPN feature provides point-to-site connections. You can use the client to access the VPN without configuring a gateway for the client. |
Bandwidth | Integer | Yes | No | The public bandwidth of the VPN gateway. | Valid values:
Unit: Mbit/s. |
InstanceChargeType | String | No | No | The billing method of the VPN gateway. | Set the value to PREPAY, which indicates that the billing method is subscription. |
SslConnections | Integer | No | No | The maximum number of clients that can be connected at the same time. | None. |
Name | String | No | Yes | The name of the VPN gateway. | The name must be 2 to 100 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with The default value is the ID of the VPN gateway. |
Tags | List | No | Yes | The tags of the VPN gateway. | You can specify up to 20 tags. For more information, see Tags properties. |
VpnType | String | No | No | The type of the VPN gateway. | Valid values:
|
NetworkType | String | No | No | The network type of the VPN gateway. | Valid values:
|
DisasterRecoveryVSwitchId | String | No | No | The ID of the second vSwitch with which you want to associate the VPN gateway. |
For more information about the regions and zones that support the IPsec-VPN connections in dual-tunnel mode, see IPsec-VPN connections support the dual-tunnel mode. |
Tags syntax
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | Yes | No | The key of the tag. | The tag key must be 1 to 128 characters in length, and cannot contain |
Value | String | No | No | The value of the tag. | The tag value can be up to 128 characters in length, and cannot contain |
Return values
Fn::GetAtt
OrderId: the order ID.
VpnGatewayId: the ID of the VPN gateway.
InternetIp: the public IP address of the VPN gateway.
SslMaxConnections: the maximum number of SSL-VPN clients that can be connected.
Spec: the maximum bandwidth of the VPN gateway.
DisasterRecoveryVSwitchId: the ID of the second vSwitch associated with the VPN gateway.
VpnType: the type of the VPN gateway.
VpcId: the ID of the VPC to which the VPN gateway belongs.
SslVpnInternetIp: the IP address of the SSL-VPN connection.
DisasterRecoveryInternetIp: the second IP address assigned by the system to create an IPsec-VPN connection.
VSwitchId: the ID of the vSwitch associated with the VPN gateway.