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
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
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。 | 无 |
DefaultLinkType | String | 否 | 否 | 默认链路类型。 | 取值:
|
BandwidthType | String | 否 | 否 | 带宽的分配方式。 | 取值:
|
Tags | List | 否 | 否 | 自定义标签列表。 | 更多信息,请参见Tags属性。 |
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"
]
}
}
}
}
- 本页导读 (1)
- 语法
- 属性
- Tags语法
- Tags属性
- 返回值
- 示例