ALIYUN::CEN::TransitRouterRouteEntry
ALIYUN::CEN::TransitRouterRouteEntry類型用于在企業(yè)版轉(zhuǎn)發(fā)路由器的路由表中添加路由條目。
語法
{
"Type": "ALIYUN::CEN::TransitRouterRouteEntry",
"Properties": {
"TransitRouterRouteTableId": String,
"TransitRouterRouteEntryDestinationCidrBlock": String,
"TransitRouterRouteEntryNextHopId": String,
"TransitRouterRouteEntryDescription": String,
"TransitRouterRouteEntryNextHopType": String,
"TransitRouterRouteEntryName": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
TransitRouterRouteEntryDestinationCidrBlock | String | 是 | 否 | 路由條目的目標(biāo)網(wǎng)段。 | 無 |
TransitRouterRouteEntryNextHopType | String | 是 | 否 | 路由條目的下一跳類型。 | 取值:
|
TransitRouterRouteTableId | String | 是 | 否 | 企業(yè)版轉(zhuǎn)發(fā)路由器的路由表ID。 | 無 |
TransitRouterRouteEntryDescription | String | 否 | 是 | 路由條目的描述。 | 長(zhǎng)度為2~256個(gè)字符,可包含英文字母、數(shù)字、漢字、半角逗號(hào)(,)、半角句號(hào)(.)、半角分號(hào)(;)、正斜線(/)、at(@)、下劃線(_)和短劃線(-)。 |
TransitRouterRouteEntryName | String | 否 | 是 | 路由條目的名稱。 | 名稱長(zhǎng)度為0~128個(gè)字符,可包含英文字母、數(shù)字、漢字、半角逗號(hào)(,)、半角句號(hào)(.)、半角分號(hào)(;)、正斜線(/)、at(@)、下劃線(_)和短劃線(-)。 |
TransitRouterRouteEntryNextHopId | String | 否 | 否 | 路由條目的下一跳所關(guān)聯(lián)的網(wǎng)絡(luò)實(shí)例連接ID。 | 無 |
返回值
Fn::GetAtt
TransitRouterRouteTableId:企業(yè)版轉(zhuǎn)發(fā)路由器的路由表ID。
TransitRouterRouteEntryDestinationCidrBlock:路由條目的目標(biāo)網(wǎng)段。
TransitRouterRouteEntryNextHopId:路由條目的下一跳所關(guān)聯(lián)的網(wǎng)絡(luò)實(shí)例連接ID。
TransitRouterRouteEntryType:路由條目的類型。
TransitRouterRouteEntryDescription:路由條目的描述。
TransitRouterRouteEntryNextHopType:路由條目的下一跳類型。
TransitRouterRouteEntryName:路由條目的名稱。
TransitRouterRouteEntryId:路由條目ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TransitRouterRouteEntryDescription:
Description: TransitRouterRouteEntryDescription
Type: String
TransitRouterRouteEntryDestinationCidrBlock:
Description: TransitRouterRouteEntryDestinationCidrBlock
Type: String
TransitRouterRouteEntryName:
Description: TransitRouterRouteEntryName
Type: String
TransitRouterRouteEntryNextHopId:
Description: TransitRouterRouteEntryNextHopId
Type: String
TransitRouterRouteEntryNextHopType:
Description: TransitRouterRouteEntryNextHopType
Type: String
TransitRouterRouteTableId:
Description: TransitRouterRouteTableId
Type: String
Resources:
CENTransitRouterRouteEntry:
Properties:
TransitRouterRouteEntryDescription:
Ref: TransitRouterRouteEntryDescription
TransitRouterRouteEntryDestinationCidrBlock:
Ref: TransitRouterRouteEntryDestinationCidrBlock
TransitRouterRouteEntryName:
Ref: TransitRouterRouteEntryName
TransitRouterRouteEntryNextHopId:
Ref: TransitRouterRouteEntryNextHopId
TransitRouterRouteEntryNextHopType:
Ref: TransitRouterRouteEntryNextHopType
TransitRouterRouteTableId:
Ref: TransitRouterRouteTableId
Type: ALIYUN::CEN::TransitRouterRouteEntry
Outputs:
TransitRouterRouteEntryDescription:
Description: TransitRouterRouteEntryDescription
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryDescription
TransitRouterRouteEntryDestinationCidrBlock:
Description: TransitRouterRouteEntryDestinationCidrBlock
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryDestinationCidrBlock
TransitRouterRouteEntryId:
Description: The first ID of the resource
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryId
TransitRouterRouteEntryName:
Description: TransitRouterRouteEntryName
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryName
TransitRouterRouteEntryNextHopId:
Description: TransitRouterRouteEntryNextHopId
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryNextHopId
TransitRouterRouteEntryNextHopType:
Description: TransitRouterRouteEntryNextHopType
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryNextHopType
TransitRouterRouteEntryType:
Description: TransitRouterRouteEntryType
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteEntryType
TransitRouterRouteTableId:
Description: TransitRouterRouteTableId
Value:
Fn::GetAtt:
- CENTransitRouterRouteEntry
- TransitRouterRouteTableId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TransitRouterRouteTableId": {
"Type": "String",
"Description": "TransitRouterRouteTableId"
},
"TransitRouterRouteEntryDestinationCidrBlock": {
"Type": "String",
"Description": "TransitRouterRouteEntryDestinationCidrBlock"
},
"TransitRouterRouteEntryNextHopId": {
"Type": "String",
"Description": "TransitRouterRouteEntryNextHopId"
},
"TransitRouterRouteEntryDescription": {
"Type": "String",
"Description": "TransitRouterRouteEntryDescription"
},
"TransitRouterRouteEntryNextHopType": {
"Type": "String",
"Description": "TransitRouterRouteEntryNextHopType"
},
"TransitRouterRouteEntryName": {
"Type": "String",
"Description": "TransitRouterRouteEntryName"
}
},
"Resources": {
"CENTransitRouterRouteEntry": {
"Type": "ALIYUN::CEN::TransitRouterRouteEntry",
"Properties": {
"TransitRouterRouteTableId": {
"Ref": "TransitRouterRouteTableId"
},
"TransitRouterRouteEntryDestinationCidrBlock": {
"Ref": "TransitRouterRouteEntryDestinationCidrBlock"
},
"TransitRouterRouteEntryNextHopId": {
"Ref": "TransitRouterRouteEntryNextHopId"
},
"TransitRouterRouteEntryDescription": {
"Ref": "TransitRouterRouteEntryDescription"
},
"TransitRouterRouteEntryNextHopType": {
"Ref": "TransitRouterRouteEntryNextHopType"
},
"TransitRouterRouteEntryName": {
"Ref": "TransitRouterRouteEntryName"
}
}
}
},
"Outputs": {
"TransitRouterRouteTableId": {
"Description": "TransitRouterRouteTableId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteTableId"
]
}
},
"TransitRouterRouteEntryDestinationCidrBlock": {
"Description": "TransitRouterRouteEntryDestinationCidrBlock",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryDestinationCidrBlock"
]
}
},
"TransitRouterRouteEntryNextHopId": {
"Description": "TransitRouterRouteEntryNextHopId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryNextHopId"
]
}
},
"TransitRouterRouteEntryType": {
"Description": "TransitRouterRouteEntryType",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryType"
]
}
},
"TransitRouterRouteEntryDescription": {
"Description": "TransitRouterRouteEntryDescription",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryDescription"
]
}
},
"TransitRouterRouteEntryNextHopType": {
"Description": "TransitRouterRouteEntryNextHopType",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryNextHopType"
]
}
},
"TransitRouterRouteEntryName": {
"Description": "TransitRouterRouteEntryName",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryName"
]
}
},
"TransitRouterRouteEntryId": {
"Description": "The first ID of the resource",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterRouteEntry",
"TransitRouterRouteEntryId"
]
}
}
}
}