ALIYUN::CEN::TransitRouter類型用於建立企業版轉寄路由器執行個體。
文法
{
"Type": "ALIYUN::CEN::TransitRouter",
"Properties": {
"CenId": String,
"TransitRouterDescription": String,
"TransitRouterName": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
CenId | String | 是 | 否 | 雲企業網執行個體ID。 | 無 |
TransitRouterDescription | String | 否 | 是 | 轉寄路由器執行個體的描述。 | 長度為2~256個字元,必須以英文字母或漢字開頭,但不能以 |
TransitRouterName | String | 否 | 是 | 轉寄路由器執行個體的名稱。 | 長度為2~128個字元,必須以英文字母或漢字開頭,但不能以 |
傳回值
Fn::GetAtt
Type:轉寄路由器執行個體的類型。
CenId:雲企業網執行個體ID。
TransitRouterName:轉寄路由器執行個體的名稱。
TransitRouterDescription:轉寄路由器執行個體的描述。
TransitRouterId:企業版轉寄路由器執行個體ID。
AliUid:雲企業網執行個體所屬阿里雲帳號ID。
SystemTransitRouterRouteTableId:系統路由器的路由表ID。
樣本
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CenId:
Description: CenId
Type: String
TransitRouterDescription:
Description: TransitRouterDescription
Type: String
TransitRouterName:
Description: TransitRouterName
Type: String
Resources:
CENTransitRouter:
Properties:
CenId:
Ref: CenId
TransitRouterDescription:
Ref: TransitRouterDescription
TransitRouterName:
Ref: TransitRouterName
Type: ALIYUN::CEN::TransitRouter
Outputs:
AliUid:
Description: AliUid
Value:
Fn::GetAtt:
- CENTransitRouter
- AliUid
CenId:
Description: CenId
Value:
Fn::GetAtt:
- CENTransitRouter
- CenId
TransitRouterDescription:
Description: TransitRouterDescription
Value:
Fn::GetAtt:
- CENTransitRouter
- TransitRouterDescription
TransitRouterId:
Description: TransitRouterId
Value:
Fn::GetAtt:
- CENTransitRouter
- TransitRouterId
TransitRouterName:
Description: TransitRouterName
Value:
Fn::GetAtt:
- CENTransitRouter
- TransitRouterName
Type:
Description: Type
Value:
Fn::GetAtt:
- CENTransitRouter
- Type
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"CenId": {
"Type": "String",
"Description": "CenId"
},
"TransitRouterName": {
"Type": "String",
"Description": "TransitRouterName"
},
"TransitRouterDescription": {
"Type": "String",
"Description": "TransitRouterDescription"
}
},
"Resources": {
"CENTransitRouter": {
"Type": "ALIYUN::CEN::TransitRouter",
"Properties": {
"CenId": {
"Ref": "CenId"
},
"TransitRouterName": {
"Ref": "TransitRouterName"
},
"TransitRouterDescription": {
"Ref": "TransitRouterDescription"
}
}
}
},
"Outputs": {
"Type": {
"Description": "Type",
"Value": {
"Fn::GetAtt": [
"CENTransitRouter",
"Type"
]
}
},
"CenId": {
"Description": "CenId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouter",
"CenId"
]
}
},
"TransitRouterName": {
"Description": "TransitRouterName",
"Value": {
"Fn::GetAtt": [
"CENTransitRouter",
"TransitRouterName"
]
}
},
"TransitRouterDescription": {
"Description": "TransitRouterDescription",
"Value": {
"Fn::GetAtt": [
"CENTransitRouter",
"TransitRouterDescription"
]
}
},
"TransitRouterId": {
"Description": "TransitRouterId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouter",
"TransitRouterId"
]
}
},
"AliUid": {
"Description": "AliUid",
"Value": {
"Fn::GetAtt": [
"CENTransitRouter",
"AliUid"
]
}
}
}
}