ALIYUN::CEN::RouteEntry類型用於將載入到CEN中的VPC或VBR的路由條目發布到CEN中。
文法
{
"Type": "ALIYUN::CEN::RouteEntry",
"Properties": {
"ChildInstanceRegionId": String,
"CenId": String,
"DestinationCidrBlock": String,
"ChildInstanceRouteTableId": String,
"ChildInstanceType": String,
"ChildInstanceId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
CenId | String | 是 | 否 | 雲企業網執行個體的ID。 | 無。 |
ChildInstanceId | String | 是 | 否 | 載入的網路執行個體ID(VPC或VBR的ID)。 | 無。 |
ChildInstanceRegionId | String | 是 | 否 | 載入的網路執行個體的地區ID。 | 無。 |
ChildInstanceRouteTableId | String | 是 | 否 | 網路執行個體的路由表ID。 | 無。 |
ChildInstanceType | String | 是 | 否 | 網路執行個體類型。 | 取值:
|
DestinationCidrBlock | String | 是 | 否 | 要發布的網段。 | 無。 |
傳回值
Fn::GetAtt
無。
樣本
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: {}
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": {}
}