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"
]
}
}
}
}