全部產品
Search
文件中心

:ALIYUN::CEN::TransitRouter

更新時間:Jul 19, 2024

ALIYUN::CEN::TransitRouter類型用於建立企業版轉寄路由器執行個體。

文法

{
  "Type": "ALIYUN::CEN::TransitRouter",
  "Properties": {
    "CenId": String,
    "TransitRouterDescription": String,
    "TransitRouterName": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

CenId

String

雲企業網執行個體ID。

TransitRouterDescription

String

轉寄路由器執行個體的描述。

長度為2~256個字元,必須以英文字母或漢字開頭,但不能以http://https://開頭。

TransitRouterName

String

轉寄路由器執行個體的名稱。

長度為2~128個字元,必須以英文字母或漢字開頭,但不能以http://https://開頭。可包含數字、半形句號(.)、底線(_)和短劃線(-)。

傳回值

Fn::GetAtt

  • Type:轉寄路由器執行個體的類型。

  • CenId:雲企業網執行個體ID。

  • TransitRouterName:轉寄路由器執行個體的名稱。

  • TransitRouterDescription:轉寄路由器執行個體的描述。

  • TransitRouterId:企業版轉寄路由器執行個體ID。

  • AliUid:雲企業網執行個體所屬阿里雲帳號ID。

  • SystemTransitRouterRouteTableId:系統路由器的路由表ID。

樣本

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CenId:
    Description: CenId
    Type: String
  TransitRouterDescription:
    Description: TransitRouterDescription
    Type: String
  TransitRouterName:
    Description: TransitRouterName
    Type: String
Resources:
  CENTransitRouter:
    Properties:
      CenId:
        Ref: CenId
      TransitRouterDescription:
        Ref: TransitRouterDescription
      TransitRouterName:
        Ref: TransitRouterName
    Type: ALIYUN::CEN::TransitRouter
Outputs:
  AliUid:
    Description: AliUid
    Value:
      Fn::GetAtt:
      - CENTransitRouter
      - AliUid
  CenId:
    Description: CenId
    Value:
      Fn::GetAtt:
      - CENTransitRouter
      - CenId
  TransitRouterDescription:
    Description: TransitRouterDescription
    Value:
      Fn::GetAtt:
      - CENTransitRouter
      - TransitRouterDescription
  TransitRouterId:
    Description: TransitRouterId
    Value:
      Fn::GetAtt:
      - CENTransitRouter
      - TransitRouterId
  TransitRouterName:
    Description: TransitRouterName
    Value:
      Fn::GetAtt:
      - CENTransitRouter
      - TransitRouterName
  Type:
    Description: Type
    Value:
      Fn::GetAtt:
      - CENTransitRouter
      - Type

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CenId": {
      "Type": "String",
      "Description": "CenId"
    },
    "TransitRouterName": {
      "Type": "String",
      "Description": "TransitRouterName"
    },
    "TransitRouterDescription": {
      "Type": "String",
      "Description": "TransitRouterDescription"
    }
  },
  "Resources": {
    "CENTransitRouter": {
      "Type": "ALIYUN::CEN::TransitRouter",
      "Properties": {
        "CenId": {
          "Ref": "CenId"
        },
        "TransitRouterName": {
          "Ref": "TransitRouterName"
        },
        "TransitRouterDescription": {
          "Ref": "TransitRouterDescription"
        }
      }
    }
  },
  "Outputs": {
    "Type": {
      "Description": "Type",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouter",
          "Type"
        ]
      }
    },
    "CenId": {
      "Description": "CenId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouter",
          "CenId"
        ]
      }
    },
    "TransitRouterName": {
      "Description": "TransitRouterName",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouter",
          "TransitRouterName"
        ]
      }
    },
    "TransitRouterDescription": {
      "Description": "TransitRouterDescription",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouter",
          "TransitRouterDescription"
        ]
      }
    },
    "TransitRouterId": {
      "Description": "TransitRouterId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouter",
          "TransitRouterId"
        ]
      }
    },
    "AliUid": {
      "Description": "AliUid",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouter",
          "AliUid"
        ]
      }
    }
  }
}