O recurso ALIYUN::VPC::VpnPbrRouteEntry cria uma rota baseada em política para um gateway de VPN.
Sintaxe
{
"Type": "ALIYUN::VPC::VpnPbrRouteEntry",
"Properties": {
"Description": String,
"RouteDest": String,
"OverlayMode": String,
"VpnGatewayId": String,
"NextHop": String,
"RouteSource": String,
"PublishVpc": Boolean,
"Weight": Integer,
"Priority": Integer
}
}
Propriedades
Propriedade | Tipo | Obrigatória | Editável | Descrição | Restrição |
Description | String | Não | Não | Descrição da rota baseada em política. | Nenhuma. |
RouteDest | String | Sim | Não | Bloco CIDR de destino da rota baseada em política. | Nenhuma. |
OverlayMode | String | Não | Não | Modo de sobreposição. | Defina o valor como Ipsec. Esse valor especifica o protocolo de tunelamento IPsec. |
VpnGatewayId | String | Sim | Não | ID do gateway de VPN. | Nenhuma. |
NextHop | String | Sim | Não | Próximo salto da rota baseada em política. | Nenhuma. |
RouteSource | String | Sim | Não | Bloco CIDR de origem da rota baseada em política. | Nenhuma. |
PublishVpc | Boolean | Sim | Sim | Indica se a rota baseada em política deve ser anunciada na tabela de rotas da Virtual Private Cloud (VPC) associada. | Valores válidos:
|
Weight | Integer | Sim | Sim | Peso da rota baseada em política. | Valores válidos: 0 a 100. |
Priority | Integer | Não | Não | Prioridade original da rota baseada em política. | Valores válidos: 1 a 100. Quanto menor o valor, maior a prioridade. |
Valores de retorno
Fn::GetAtt
RouteDest: bloco CIDR de destino da rota baseada em política.
VpnGatewayId: ID do gateway de VPN.
NextHop: próximo salto da rota baseada em política.
RouteSource: bloco CIDR de origem da rota baseada em política.
Exemplos
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
"Description": "The description of the VPN destination route."
},
"RouteDest": {
"Type": "String",
"Description": "The destination CIDR block of the destination route."
},
"OverlayMode": {
"Type": "String",
"Description": "The overlay mode."
},
"VpnGatewayId": {
"Type": "String",
"Description": "The ID of the VPN Gateway."
},
"NextHop": {
"Type": "String",
"Description": "The next hop of the destination route entry."
},
"RouteSource": {
"Type": "String",
"Description": "The source CIDR block of the policy-based route."
},
"PublishVpc": {
"Type": "Boolean",
"Description": "Indicates whether to publish the destination route to the VPC. Valid values:\ntrue: Publish the destination route to the VPC.\nfalse: Do not publish the destination route to the VPC.",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"Weight": {
"Type": "Number",
"Description": "The weight of the destination route. Valid values: 0|100."
}
},
"Resources": {
"VpnPbrRouteEntry": {
"Type": "ALIYUN::VPC::VpnPbrRouteEntry",
"Properties": {
"Description": {
"Ref": "Description"
},
"RouteDest": {
"Ref": "RouteDest"
},
"OverlayMode": {
"Ref": "OverlayMode"
},
"VpnGatewayId": {
"Ref": "VpnGatewayId"
},
"NextHop": {
"Ref": "NextHop"
},
"RouteSource": {
"Ref": "RouteSource"
},
"PublishVpc": {
"Ref": "PublishVpc"
},
"Weight": {
"Ref": "Weight"
}
}
}
},
"Outputs": {
"RouteDest": {
"Description": "The destination CIDR block of the destination route.",
"Value": {
"Fn::GetAtt": [
"VpnPbrRouteEntry",
"RouteDest"
]
}
},
"VpnGatewayId": {
"Description": "The ID of the VPN Gateway.",
"Value": {
"Fn::GetAtt": [
"VpnPbrRouteEntry",
"VpnGatewayId"
]
}
},
"NextHop": {
"Description": "The next hop of the destination route entry.",
"Value": {
"Fn::GetAtt": [
"VpnPbrRouteEntry",
"NextHop"
]
}
},
"RouteSource": {
"Description": "The destination CIDR block of the policy-based route.",
"Value": {
"Fn::GetAtt": [
"VpnPbrRouteEntry",
"RouteSource"
]
}
}
}
}
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Description: The description of the VPN destination route.
Type: String
NextHop:
Description: The next hop of the destination route entry.
Type: String
OverlayMode:
Description: The overlay mode.
Type: String
PublishVpc:
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
Description: 'Indicates whether to publish the destination route to the VPC. Valid
values:
true: Publish the destination route to the VPC.
false: Do not publish the destination route to the VPC.'
Type: Boolean
RouteDest:
Description: The destination CIDR block of the destination route.
Type: String
RouteSource:
Description: The source CIDR block of the policy-based route.
Type: String
VpnGatewayId:
Description: The ID of the VPN Gateway.
Type: String
Weight:
Description: 'The weight of the destination route. Valid values: 0|100.'
Type: Number
Resources:
VpnPbrRouteEntry:
Properties:
Description:
Ref: Description
NextHop:
Ref: NextHop
OverlayMode:
Ref: OverlayMode
PublishVpc:
Ref: PublishVpc
RouteDest:
Ref: RouteDest
RouteSource:
Ref: RouteSource
VpnGatewayId:
Ref: VpnGatewayId
Weight:
Ref: Weight
Type: ALIYUN::VPC::VpnPbrRouteEntry
Outputs:
NextHop:
Description: The next hop of the destination route entry.
Value:
Fn::GetAtt:
- VpnPbrRouteEntry
- NextHop
RouteDest:
Description: The destination CIDR block of the destination route.
Value:
Fn::GetAtt:
- VpnPbrRouteEntry
- RouteDest
RouteSource:
Description: The destination CIDR block of the policy-based route.
Value:
Fn::GetAtt:
- VpnPbrRouteEntry
- RouteSource
VpnGatewayId:
Description: The ID of the VPN Gateway.
Value:
Fn::GetAtt:
- VpnPbrRouteEntry
- VpnGatewayId