ALIYUN::CEN::ChildInstanceRouteEntryToAttachment類型用於為企業版轉寄路由器串連的網路執行個體添加路由條目。
文法
{
"Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
"Properties": {
"TransitRouterAttachmentId": String,
"RouteTableId": String,
"CenId": String,
"DestinationCidrBlock": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
CenId | String | 是 | 否 | 雲企業網執行個體ID。 | 無 |
DestinationCidrBlock | String | 是 | 否 | 路由條目的目標網段。 | 無 |
RouteTableId | String | 是 | 否 | 網路執行個體的路由表ID。 | 無 |
TransitRouterAttachmentId | String | 是 | 否 | 網路執行個體串連ID。 | 無 |
傳回值
Fn::GetAtt
TransitRouterAttachmentId:網路執行個體串連ID。
RouteTableId:網路執行個體的路由表ID。
CenId:雲企業網執行個體ID。
DestinationCidrBlock:路由條目的目標網段。
樣本
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TransitRouterAttachmentId:
Type: String
Description: The ID of the network instance connection.
RouteTableId:
Type: String
Description: The ID of the route table configured on the network instance.
CenId:
Type: String
Description: The ID of the CEN instance.
DestinationCidrBlock:
Type: String
Description: The destination CIDR block of the route.
Resources:
ChildInstanceRouteEntryToAttachment:
Type: ALIYUN::CEN::ChildInstanceRouteEntryToAttachment
Properties:
TransitRouterAttachmentId:
Ref: TransitRouterAttachmentId
RouteTableId:
Ref: RouteTableId
CenId:
Ref: CenId
DestinationCidrBlock:
Ref: DestinationCidrBlock
Outputs:
TransitRouterAttachmentId:
Description: The ID of the network instance connection.
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- TransitRouterAttachmentId
RouteTableId:
Description: The ID of the route table configured on the network instance.
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- RouteTableId
CenId:
Description: The ID of the CEN instance.
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- CenId
DestinationCidrBlock:
Description: The destination CIDR block of the route.
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- DestinationCidrBlock
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TransitRouterAttachmentId": {
"Type": "String",
"Description": "The ID of the network instance connection."
},
"RouteTableId": {
"Type": "String",
"Description": "The ID of the route table configured on the network instance."
},
"CenId": {
"Type": "String",
"Description": "The ID of the CEN instance."
},
"DestinationCidrBlock": {
"Type": "String",
"Description": "The destination CIDR block of the route."
}
},
"Resources": {
"ChildInstanceRouteEntryToAttachment": {
"Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
"Properties": {
"TransitRouterAttachmentId": {
"Ref": "TransitRouterAttachmentId"
},
"RouteTableId": {
"Ref": "RouteTableId"
},
"CenId": {
"Ref": "CenId"
},
"DestinationCidrBlock": {
"Ref": "DestinationCidrBlock"
}
}
}
},
"Outputs": {
"TransitRouterAttachmentId": {
"Description": "The ID of the network instance connection.",
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"TransitRouterAttachmentId"
]
}
},
"RouteTableId": {
"Description": "The ID of the route table configured on the network instance.",
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"RouteTableId"
]
}
},
"CenId": {
"Description": "The ID of the CEN instance.",
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"CenId"
]
}
},
"DestinationCidrBlock": {
"Description": "The destination CIDR block of the route.",
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"DestinationCidrBlock"
]
}
}
}
}