ALIYUN::CEN::TransitRouterPeerAttachment is used to create a cross-region connection for an Enterprise Edition transit router.

Syntax

{
  "Type": "ALIYUN::CEN::TransitRouterPeerAttachment",
  "Properties": {
    "AutoPublishRouteEnabled": Boolean,
    "Bandwidth": Integer,
    "CenId": String,
    "TransitRouterAttachmentName": String,
    "PeerTransitRouterId": String,
    "CenBandwidthPackageId": String,
    "TransitRouterAttachmentDescription": String,
    "TransitRouterId": String,
    "PeerTransitRouterRegionId": String
  }
}

Properties

Property Type Required Editable Description Constraint
AutoPublishRouteEnabled Boolean No Yes Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes of the cross-region connection to the peer region. Default value: false. Valid values:
  • false: The Enterprise Edition transit router does not automatically advertise routes of the cross-region connection to the peer region.
  • true: The Enterprise Edition transit router automatically advertises routes of the cross-region connection to the peer region.
RouteTableAssociationEnabled String No No Specifies whether to create an associated forwarding correlation. None
CenId String No No The ID of the Cloud Enterprise Network (CEN) instance. None
TransitRouterAttachmentName String No Yes The name of the cross-region connection. The name must be 2 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
PeerTransitRouterId String Yes No The ID of the peer transit router. None
CenBandwidthPackageId String No Yes The ID of the bandwidth plan that is used to allocate bandwidth to the cross-region connection. If the ID of the bandwidth plan is not specified, the default test bandwidth (1 Kbit/s) is used to test network connectivity.
TransitRouterAttachmentDescription String No Yes The description of the cross-region connection. The description must be 2 to 256 characters in length. It must start with a letter and cannot start with http:// or https://.
TransitRouterId String No No The ID of the local Enterprise Edition transit router. None
PeerTransitRouterRegionId String No No The region ID of the peer transit router. None

Response parameters

Fn::GetAtt

  • TransitRouterAttachmentId: the ID of the cross-region connection.
  • GeographicSpanId: the ID of the connected area of the bandwidth plan.
  • PeerTransitRouterOwnerId: the ID of the Alibaba Cloud account to which the peer transit router belongs.
  • TransitRouterAttachmentName: the name of the cross-region connection.
  • ResourceType: the type of the resource.
  • AutoPublishRouteEnabled: indicates whether the Enterprise Edition transit router automatically advertises routes of the cross-region connection to the peer region.
  • Bandwidth: the bandwidth allocated to the cross-region connection.
  • CenId: the ID of the CEN instance.
  • PeerTransitRouterId: the ID of the peer transit router.
  • ClientToken: the client token that is used to ensure the idempotence of the request.
  • CenBandwidthPackageId: the ID of the bandwidth plan that was used to allocate bandwidth to the cross-region connection.
  • TransitRouterAttachmentDescription: the description of the cross-region connection.
  • TransitRouterId: the ID of the local Enterprise Edition transit router.
  • PeerTransitRouterRegionId: the region ID of the peer transit router.

Examples

JSON format

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

YAML format

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