O recurso ALIYUN::CEN::RouteEntry anuncia uma rota de uma Virtual Private Cloud (VPC) ou de um Virtual Border Router (VBR) anexado em uma instância do Cloud Enterprise Network (CEN).
Sintaxe
{
"Type": "ALIYUN::CEN::RouteEntry",
"Properties": {
"ChildInstanceRegionId": String,
"CenId": String,
"DestinationCidrBlock": String,
"ChildInstanceRouteTableId": String,
"ChildInstanceType": String,
"ChildInstanceId": String
}
}
Propriedades
Propriedade | Tipo | Obrigatório | Editável | Descrição | Restrição |
CenId | String | Sim | Não | ID da instância do CEN. | Nenhuma |
ChildInstanceId | String | Sim | Não | ID da instância de rede anexada. | Nenhuma |
ChildInstanceRegionId | String | Sim | Não | ID da região da instância de rede anexada. | Nenhuma |
ChildInstanceRouteTableId | String | Sim | Não | ID da tabela de rotas da instância de rede anexada. | Nenhuma |
ChildInstanceType | String | Sim | Não | Tipo da instância de rede anexada. | Valores válidos:
|
DestinationCidrBlock | String | Sim | Não | Bloco CIDR de destino da rota. | Nenhuma |
Valores de retorno
Fn::GetAtt
Nenhum
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Resources:
RouteEntry:
Type: ALIYUN::CEN::RouteEntry
Properties:
ChildInstanceRegionId:
Ref: ChildInstanceRegionId
CenId:
Ref: CenId
DestinationCidrBlock:
Ref: DestinationCidrBlock
ChildInstanceRouteTableId:
Ref: ChildInstanceRouteTableId
ChildInstanceType:
Ref: ChildInstanceType
ChildInstanceId:
Ref: ChildInstanceId
Parameters:
ChildInstanceRegionId:
Type: String
Description: The ID of the region where the attached VBR or VPC is located.
CenId:
Type: String
Description: The ID of the CEN instance where the route entry is published.
DestinationCidrBlock:
Type: String
Description: The destination CIDR block of the route entry to publish.
ChildInstanceRouteTableId:
Type: String
Description: The route table of the attached VBR or VPC.
ChildInstanceType:
Type: String
Description: 'The type of the network, value: VPC VBR'
AllowedValues:
- VPC
- VBR
ChildInstanceId:
Type: String
Description: The ID of the attached network (VPC or VBR).
Outputs: {}
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"RouteEntry": {
"Type": "ALIYUN::CEN::RouteEntry",
"Properties": {
"ChildInstanceRegionId": {
"Ref": "ChildInstanceRegionId"
},
"CenId": {
"Ref": "CenId"
},
"DestinationCidrBlock": {
"Ref": "DestinationCidrBlock"
},
"ChildInstanceRouteTableId": {
"Ref": "ChildInstanceRouteTableId"
},
"ChildInstanceType": {
"Ref": "ChildInstanceType"
},
"ChildInstanceId": {
"Ref": "ChildInstanceId"
}
}
}
},
"Parameters": {
"ChildInstanceRegionId": {
"Type": "String",
"Description": "The ID of the region where the attached VBR or VPC is located."
},
"CenId": {
"Type": "String",
"Description": "The ID of the CEN instance where the route entry is published."
},
"DestinationCidrBlock": {
"Type": "String",
"Description": "The destination CIDR block of the route entry to publish."
},
"ChildInstanceRouteTableId": {
"Type": "String",
"Description": "The route table of the attached VBR or VPC."
},
"ChildInstanceType": {
"Type": "String",
"Description": "The type of the network, value: VPC VBR",
"AllowedValues": [
"VPC",
"VBR"
]
},
"ChildInstanceId": {
"Type": "String",
"Description": "The ID of the attached network (VPC or VBR)."
}
},
"Outputs": {}
}