ALIYUN::CEN::TransitRouterRouteEntry类型用于在企业版转发路由器的路由表中添加路由条目。
语法
{
"Type": "ALIYUN::CEN::TransitRouterRouteEntry",
"Properties": {
"TransitRouterRouteTableId": String,
"TransitRouterRouteEntryDestinationCidrBlock": String,
"TransitRouterRouteEntryNextHopId": String,
"TransitRouterRouteEntryDescription": String,
"TransitRouterRouteEntryNextHopType": String,
"TransitRouterRouteEntryName": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
TransitRouterRouteEntryDestinationCidrBlock | String | 是 | 否 | 路由条目的目标网段。 | 无 |
TransitRouterRouteEntryNextHopType | String | 是 | 否 | 路由条目的下一跳类型。 | 取值:
|
TransitRouterRouteTableId | String | 是 | 否 | 企业版转发路由器的路由表ID。 | 无 |
TransitRouterRouteEntryDescription | String | 否 | 是 | 路由条目的描述。 | 长度为2~256个字符,可包含英文字母、数字、汉字、半角逗号(,)、半角句号(.)、半角分号(;)、正斜线(/)、at(@)、下划线(_)和短划线(-)。 |
TransitRouterRouteEntryName | String | 否 | 是 | 路由条目的名称。 | 名称长度为0~128个字符,可包含英文字母、数字、汉字、半角逗号(,)、半角句号(.)、半角分号(;)、正斜线(/)、at(@)、下划线(_)和短划线(-)。 |
TransitRouterRouteEntryNextHopId | String | 否 | 否 | 路由条目的下一跳所关联的网络实例连接ID。 | 无 |
返回值
Fn::GetAtt
TransitRouterRouteTableId:企业版转发路由器的路由表ID。
TransitRouterRouteEntryDestinationCidrBlock:路由条目的目标网段。
TransitRouterRouteEntryNextHopId:路由条目的下一跳所关联的网络实例连接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"
]
}
}
}
}