ALIYUN::CEN::TransitRouterPeerAttachment

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

企业版转发路由器实例是否自动发布跨地域连接的路由到对端地域。

取值:

  • false(默认值):否。

  • true:是。

Bandwidth

Integer

为跨地域连接分配的带宽。

单位:Mbps。

CenBandwidthPackageId

String

跨地域连接要绑定的带宽包ID。

如果不指定带宽包ID,默认使用系统默认测试带宽(默认值为1 Kbps),用于测试网络连通性。

CenId

String

云企业网实例ID。

PeerTransitRouterRegionId

String

对端转发路由器实例所属地域ID。

TransitRouterAttachmentDescription

String

跨地域连接的描述信息。

长度为2~256个字符,必须以英文字母或汉字开头,但不能以http://https://开头。

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