ALIYUN::CEN::TransitRouterPeerAttachment類型用於為企業版轉寄路由器執行個體建立跨地區串連。
文法
{
"Type": "ALIYUN::CEN::TransitRouterPeerAttachment",
"Properties": {
"AutoPublishRouteEnabled": Boolean,
"Bandwidth": Integer,
"CenId": String,
"TransitRouterAttachmentName": String,
"PeerTransitRouterId": String,
"CenBandwidthPackageId": String,
"TransitRouterAttachmentDescription": String,
"TransitRouterId": String,
"PeerTransitRouterRegionId": String,
"DefaultLinkType": String,
"BandwidthType": String,
"Tags": List,
"RouteTableAssociationEnabled": Boolean,
"RouteTablePropagationEnabled": Boolean,
"DeletionForce": Boolean
}
}
屬性
|
屬性名稱 |
類型 |
必須 |
允許更新 |
描述 |
約束 |
|
PeerTransitRouterId |
String |
是 |
否 |
對端轉寄路由器執行個體ID。 |
無 |
|
AutoPublishRouteEnabled |
Boolean |
否 |
是 |
企業版轉寄路由器執行個體是否自動發布跨地區串連的路由到對端地區。 |
取值:
|
|
Bandwidth |
Integer |
否 |
是 |
為跨地區串連分配的頻寬。 |
單位:Mbps。 |
|
BandwidthType |
String |
否 |
否 |
頻寬的分配方式。 |
取值:
|
|
CenBandwidthPackageId |
String |
否 |
是 |
跨地區串連要綁定的頻寬包ID。 |
如果不指定頻寬包ID,預設使用系統預設測試頻寬(預設值為1 Kbps),用於測試網路連通性。 |
|
CenId |
String |
否 |
否 |
雲企業網執行個體ID。 |
無 |
|
DefaultLinkType |
String |
否 |
否 |
預設鏈路類型。 |
取值:
|
|
DeletionForce |
Boolean |
否 |
是 |
是否強制移除轉寄路由器執行個體建立跨地區串連。 |
取值:
|
|
PeerTransitRouterRegionId |
String |
否 |
否 |
對端轉寄路由器執行個體所屬地區ID。 |
無 |
|
RouteTableAssociationEnabled |
Boolean |
否 |
否 |
是否啟動路由關聯轉寄關係。 |
取值:
|
|
RouteTablePropagationEnabled |
Boolean |
否 |
否 |
是否啟用路由學習關係。 |
取值:
|
|
Tags |
List |
否 |
否 |
自訂標籤列表。 |
更多資訊,請參見Tags屬性。 |
|
TransitRouterAttachmentDescription |
String |
否 |
是 |
跨地區串連的描述資訊。 |
長度為2~256個字元,必須以英文字母或漢字開頭,但不能以 |
|
TransitRouterAttachmentName |
String |
否 |
是 |
跨地區串連的名稱。 |
長度為2~128個字元,以英文字母或漢字開頭,可包含英文字母、漢字、數字、底線(_)和短劃線(-)。 |
|
TransitRouterId |
String |
否 |
否 |
本端企業版轉寄路由器執行個體ID。 |
無 |
Tags文法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags屬性
|
屬性名稱 |
類型 |
必須 |
允許更新 |
描述 |
約束 |
|
Key |
String |
是 |
否 |
標籤鍵。 |
長度為1~128個字元,不能以 |
|
Value |
String |
否 |
否 |
標籤值。 |
長度為0~128個字元,不能以 |
傳回值
Fn::GetAtt
-
TransitRouterAttachmentId:跨地區串連ID。
樣本
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AutoPublishRouteEnabled:
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
Description: AutoPublishRouteEnabled
Type: Boolean
Bandwidth:
Description: Bandwidth
Type: Number
CenBandwidthPackageId:
Description: BandwidthPackageId
Type: String
CenId:
Description: CenId
Type: String
PeerTransitRouterId:
Description: PeerTransitRouterId
Type: String
PeerTransitRouterRegionId:
Description: PeerTransitRouterRegionId
Type: String
TransitRouterAttachmentDescription:
Description: TransitRouterAttachmentDescription
Type: String
TransitRouterAttachmentName:
Description: TransitRouterAttachmentName
Type: String
TransitRouterId:
Description: TransitRouterId
Type: String
Resources:
CENTransitRouterPeerAttachment:
Properties:
AutoPublishRouteEnabled:
Ref: AutoPublishRouteEnabled
Bandwidth:
Ref: Bandwidth
CenBandwidthPackageId:
Ref: CenBandwidthPackageId
CenId:
Ref: CenId
PeerTransitRouterId:
Ref: PeerTransitRouterId
PeerTransitRouterRegionId:
Ref: PeerTransitRouterRegionId
TransitRouterAttachmentDescription:
Ref: TransitRouterAttachmentDescription
TransitRouterAttachmentName:
Ref: TransitRouterAttachmentName
TransitRouterId:
Ref: TransitRouterId
Type: ALIYUN::CEN::TransitRouterPeerAttachment
Outputs:
TransitRouterAttachmentId:
Description: The first ID of the resource
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- TransitRouterAttachmentId{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AutoPublishRouteEnabled": {
"Type": "Boolean",
"Description": "AutoPublishRouteEnabled",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"Bandwidth": {
"Type": "Number",
"Description": "Bandwidth"
},
"CenId": {
"Type": "String",
"Description": "CenId"
},
"TransitRouterAttachmentName": {
"Type": "String",
"Description": "TransitRouterAttachmentName"
},
"PeerTransitRouterId": {
"Type": "String",
"Description": "PeerTransitRouterId"
},
"CenBandwidthPackageId": {
"Type": "String",
"Description": "BandwidthPackageId"
},
"TransitRouterAttachmentDescription": {
"Type": "String",
"Description": "TransitRouterAttachmentDescription"
},
"TransitRouterId": {
"Type": "String",
"Description": "TransitRouterId"
},
"PeerTransitRouterRegionId": {
"Type": "String",
"Description": "PeerTransitRouterRegionId"
}
},
"Resources": {
"CENTransitRouterPeerAttachment": {
"Type": "ALIYUN::CEN::TransitRouterPeerAttachment",
"Properties": {
"AutoPublishRouteEnabled": {
"Ref": "AutoPublishRouteEnabled"
},
"Bandwidth": {
"Ref": "Bandwidth"
},
"CenId": {
"Ref": "CenId"
},
"TransitRouterAttachmentName": {
"Ref": "TransitRouterAttachmentName"
},
"PeerTransitRouterId": {
"Ref": "PeerTransitRouterId"
},
"CenBandwidthPackageId": {
"Ref": "CenBandwidthPackageId"
},
"TransitRouterAttachmentDescription": {
"Ref": "TransitRouterAttachmentDescription"
},
"TransitRouterId": {
"Ref": "TransitRouterId"
},
"PeerTransitRouterRegionId": {
"Ref": "PeerTransitRouterRegionId"
}
}
}
},
"Outputs": {
"TransitRouterAttachmentId": {
"Description": "The first ID of the resource",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"TransitRouterAttachmentId"
]
}
}
}
}