全部产品
Search
文档中心

资源编排:ALIYUN::CEN::TransitRouter

更新时间:Jul 18, 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"
        ]
      }
    }
  }
}