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
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
PeerTransitRouterId | String | 是 | 否 | 對端轉寄路由器執行個體ID。 | 無 |
AutoPublishRouteEnabled | Boolean | 否 | 是 | 企業版轉寄路由器執行個體是否自動發布跨地區串連的路由到對端地區。 | 取值:
|
Bandwidth | Integer | 否 | 是 | 為跨地區串連分配的頻寬。 | 單位:Mbps。 |
CenBandwidthPackageId | String | 否 | 是 | 跨地區串連要綁定的頻寬包ID。 | 如果不指定頻寬包ID,預設使用系統預設測試頻寬(預設值為1 Kbps),用於測試網路連通性。 |
CenId | String | 否 | 否 | 雲企業網執行個體ID。 | 無 |
PeerTransitRouterRegionId | String | 否 | 否 | 對端轉寄路由器執行個體所屬地區ID。 | 無 |
TransitRouterAttachmentDescription | String | 否 | 是 | 跨地區串連的描述資訊。 | 長度為2~256個字元,必須以英文字母或漢字開頭,但不能以 |
TransitRouterAttachmentName | String | 否 | 是 | 跨地區串連的名稱。 | 長度為2~128個字元,以英文字母或漢字開頭,可包含英文字母、漢字、數字、底線(_)和短劃線(-)。 |
TransitRouterId | String | 否 | 否 | 本端企業版轉寄路由器執行個體ID。 | 無 |
傳回值
Fn::GetAtt
TransitRouterAttachmentId:跨地區串連ID。
GeographicSpanId:頻寬包的互連地區。
PeerTransitRouterOwnerId:對端轉寄路由器執行個體所屬阿里雲帳號ID。
TransitRouterAttachmentName:跨地區串連的名稱。
ResourceType:資源類型。
AutoPublishRouteEnabled:企業版轉寄路由器執行個體是否自動發布跨地區串連的路由到對端地區。
Bandwidth:為跨地區串連分配的頻寬。
CenId:雲企業網執行個體ID。
PeerTransitRouterId:對端轉寄路由器執行個體ID。
ClientToken:用戶端Token,用於保證請求的等冪性。
CenBandwidthPackageId:跨地區串連要綁定的頻寬包ID。
TransitRouterAttachmentDescription:跨地區串連的描述資訊。
TransitRouterId:本端企業版轉寄路由器執行個體ID。
PeerTransitRouterRegionId:對端轉寄路由器執行個體所屬地區ID。
樣本
YAML
格式
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:
AutoPublishRouteEnabled:
Description: AutoPublishRouteEnabled
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- AutoPublishRouteEnabled
Bandwidth:
Description: Bandwidth
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- Bandwidth
CenBandwidthPackageId:
Description: BandwidthPackageId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- CenBandwidthPackageId
CenId:
Description: CenId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- CenId
ClientToken:
Description: ClientToken
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- ClientToken
GeographicSpanId:
Description: GeographicSpanId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- GeographicSpanId
PeerTransitRouterId:
Description: PeerTransitRouterId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- PeerTransitRouterId
PeerTransitRouterOwnerId:
Description: PeerTransitRouterOwnerId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- PeerTransitRouterOwnerId
PeerTransitRouterRegionId:
Description: PeerTransitRouterRegionId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- PeerTransitRouterRegionId
ResourceType:
Description: ResourceType
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- ResourceType
TransitRouterAttachmentDescription:
Description: TransitRouterAttachmentDescription
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- TransitRouterAttachmentDescription
TransitRouterAttachmentId:
Description: The first ID of the resource
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- TransitRouterAttachmentId
TransitRouterAttachmentName:
Description: TransitRouterAttachmentName
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- TransitRouterAttachmentName
TransitRouterId:
Description: TransitRouterId
Value:
Fn::GetAtt:
- CENTransitRouterPeerAttachment
- TransitRouterId
JSON
格式
{
"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"
]
}
},
"GeographicSpanId": {
"Description": "GeographicSpanId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"GeographicSpanId"
]
}
},
"PeerTransitRouterOwnerId": {
"Description": "PeerTransitRouterOwnerId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"PeerTransitRouterOwnerId"
]
}
},
"TransitRouterAttachmentName": {
"Description": "TransitRouterAttachmentName",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"TransitRouterAttachmentName"
]
}
},
"ResourceType": {
"Description": "ResourceType",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"ResourceType"
]
}
},
"AutoPublishRouteEnabled": {
"Description": "AutoPublishRouteEnabled",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"AutoPublishRouteEnabled"
]
}
},
"Bandwidth": {
"Description": "Bandwidth",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"Bandwidth"
]
}
},
"CenId": {
"Description": "CenId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"CenId"
]
}
},
"PeerTransitRouterId": {
"Description": "PeerTransitRouterId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"PeerTransitRouterId"
]
}
},
"ClientToken": {
"Description": "ClientToken",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"ClientToken"
]
}
},
"CenBandwidthPackageId": {
"Description": "BandwidthPackageId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"CenBandwidthPackageId"
]
}
},
"TransitRouterAttachmentDescription": {
"Description": "TransitRouterAttachmentDescription",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"TransitRouterAttachmentDescription"
]
}
},
"TransitRouterId": {
"Description": "TransitRouterId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"TransitRouterId"
]
}
},
"PeerTransitRouterRegionId": {
"Description": "PeerTransitRouterRegionId",
"Value": {
"Fn::GetAtt": [
"CENTransitRouterPeerAttachment",
"PeerTransitRouterRegionId"
]
}
}
}
}