ALIYUN::VPC::VcoRouteEntry is used to add a destination-based route for an IPsec-VPN connection.
Syntax
{
"Type": "ALIYUN::VPC::VcoRouteEntry",
"Properties": {
"NextHop": String,
"RouteDest": String,
"VpnConnectionId": String,
"Weight": Integer,
"Description": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
NextHop | String | Yes | No | The next hop of the destination-based route. | None. |
RouteDest | String | Yes | No | The destination CIDR block of the destination-based route. | None. |
VpnConnectionId | String | Yes | No | The ID of the IPsec-VPN connection. | None. |
Weight | Integer | Yes | Yes | The weight of the destination-based route. | Valid values:
|
Description | String | No | No | The description of the destination-based route. | None. |
Return values
Fn::GetAtt
VpnConnectionId: the ID of the IPsec-VPN connection.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RouteDest:
Type: String
Description:
en: The target segment of the destination routing entry.
Required: true
NextHop:
Type: String
Description:
en: The next hop of the destination routing entry.
Required: true
VpnConnectionId:
Type: String
Description:
en: IPsec Connection ID.
Required: true
Weight:
Type: Number
Description:
en: |-
The weight value of the destination routing entry.Value:
0: Indicates low priority.
100: Indicates high priority.
AllowedValues:
- 0
- 100
Required: true
Resources:
VcoRouteEntry:
Type: ALIYUN::VPC::VcoRouteEntry
Properties:
RouteDest:
Ref: RouteDest
NextHop:
Ref: NextHop
VpnConnectionId:
Ref: VpnConnectionId
Weight:
Ref: Weight
Outputs:
VpnConnectionId:
Description: The ID of the VPN connection.
Value:
Fn::GetAtt:
- VcoRouteEntry
- VpnConnectionId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RouteDest": {
"Type": "String",
"Description": {
"en": "The target segment of the destination routing entry."
},
"Required": true
},
"NextHop": {
"Type": "String",
"Description": {
"en": "The next hop of the destination routing entry."
},
"Required": true
},
"VpnConnectionId": {
"Type": "String",
"Description": {
"en": "IPsec Connection ID."
},
"Required": true
},
"Weight": {
"Type": "Number",
"Description": {
"en": "The weight value of the destination routing entry.Value:\n0: Indicates low priority.\n100: Indicates high priority."
},
"AllowedValues": [
0,
100
],
"Required": true
}
},
"Resources": {
"VcoRouteEntry": {
"Type": "ALIYUN::VPC::VcoRouteEntry",
"Properties": {
"RouteDest": {
"Ref": "RouteDest"
},
"NextHop": {
"Ref": "NextHop"
},
"VpnConnectionId": {
"Ref": "VpnConnectionId"
},
"Weight": {
"Ref": "Weight"
}
}
}
},
"Outputs": {
"VpnConnectionId": {
"Description": "The ID of the VPN connection.",
"Value": {
"Fn::GetAtt": [
"VcoRouteEntry",
"VpnConnectionId"
]
}
}
}
}