O recurso ALIYUN::VPC::VcoRouteEntry adiciona uma rota baseada em destino a uma conexão IPsec-VPN.
Sintaxe
{
"Type": "ALIYUN::VPC::VcoRouteEntry",
"Properties": {
"NextHop": String,
"RouteDest": String,
"VpnConnectionId": String,
"Weight": Integer,
"OverlayMode": String,
"Description": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
NextHop |
String |
Sim |
Não |
Próximo salto da rota baseada em destino. |
Nenhuma. |
|
RouteDest |
String |
Sim |
Não |
Bloco CIDR de destino da rota. |
Nenhuma. |
|
VpnConnectionId |
String |
Sim |
Não |
ID da conexão IPsec-VPN. |
Nenhuma. |
|
Weight |
Integer |
Sim |
Sim |
Peso da rota baseada em destino. |
Valores válidos:
|
|
OverlayMode |
String |
Não |
Não |
Protocolo de túnel. |
Valor válido:
|
|
Description |
String |
Não |
Não |
Descrição da rota. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
VpnConnectionId: ID da conexão IPsec-VPN.
Exemplos
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"
]
}
}
}
}