ALIYUN::CEN::TransitRouterRouteTablePropagation類型用於建立路由學習關係。
文法
{
"Type": "ALIYUN::CEN::TransitRouterRouteTablePropagation",
"Properties": {
"TransitRouterRouteTableId": String,
"TransitRouterAttachmentId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
TransitRouterAttachmentId | String | 是 | 否 | 網路執行個體串連ID。 | 無 |
TransitRouterRouteTableId | String | 是 | 否 | 企業版轉寄路由器路由表ID。 | 無 |
傳回值
Fn::GetAtt
TransitRouterRouteTableId:企業版轉寄路由器路由表ID。
TransitRouterAttachmentId:網路執行個體串連ID。
ResourceId:資源ID。
ResourceType:資源類型。
樣本
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TransitRouterAttachmentId:
Description: TransitRouterAttachmentId
Type: String
TransitRouterRouteTableId:
Description: TransitRouterRouteTableId
Type: String
Resources:
CENTransitRouterRouteTablePropagation:
Properties:
TransitRouterAttachmentId:
Ref: TransitRouterAttachmentId
TransitRouterRouteTableId:
Ref: TransitRouterRouteTableId
Type: ALIYUN::CEN::TransitRouterRouteTablePropagation
Outputs:
ResourceId:
Description: ResourceId
Value:
Fn::GetAtt:
- CENTransitRouterRouteTablePropagation
- ResourceId
ResourceType:
Description: ResourceType
Value:
Fn::GetAtt:
- CENTransitRouterRouteTablePropagation
- ResourceType
TransitRouterAttachmentId:
Description: TransitRouterAttachmentId
Value:
Fn::GetAtt:
- CENTransitRouterRouteTablePropagation
- TransitRouterAttachmentId
TransitRouterRouteTableId:
Description: TransitRouterRouteTableId
Value:
Fn::GetAtt:
- CENTransitRouterRouteTablePropagation
- TransitRouterRouteTableId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TransitRouterRouteTableId": {
"Type": "String",
"Description": "TransitRouterRouteTableId"
},
"TransitRouterAttachmentId": {
"Type": "String",
"Description": "TransitRouterAttachmentId"
}
},
"Resources": {
"CENTransitRouterRouteTablePropagation": {
"Type": "ALIYUN::CEN::TransitRouterRouteTablePropagation",
"Properties": {
"TransitRouterRouteTableId": {
"Ref": "TransitRouterRouteTableId"
},
"TransitRouterAttachmentId": {
"Ref": "TransitRouterAttachmentId"
}
}
}
},
"Outputs": {
"TransitRouterRouteTableId": {
"Description": "TransitRouterRouteTableId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteTablePropagation",
"TransitRouterRouteTableId"
]
}
},
"TransitRouterAttachmentId": {
"Description": "TransitRouterAttachmentId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteTablePropagation",
"TransitRouterAttachmentId"
]
}
},
"ResourceId": {
"Description": "ResourceId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteTablePropagation",
"ResourceId"
]
}
},
"ResourceType": {
"Description": "ResourceType",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteTablePropagation",
"ResourceType"
]
}
}
}
}