全部产品
Search
文档中心

资源编排:ALIYUN::CEN::TransitRouterRouteTable

更新时间:Jul 18, 2024

ALIYUN::CEN::TransitRouterRouteTable类型用于为企业版转发路由器创建自定义路由表。

语法

{
  "Type": "ALIYUN::CEN::TransitRouterRouteTable",
  "Properties": {
    "TransitRouterRouteTableDescription": String,
    "TransitRouterRouteTableName": String,
    "TransitRouterId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

TransitRouterId

String

企业版转发路由器实例ID。

TransitRouterRouteTableDescription

String

自定义路由表的描述信息。

长度为2~256个字符,可包含英文字母、数字、汉字、半角逗号(,)、半角句号(.)、半角分号(;)、正斜线(/)、at(@)、下划线(_)和短划线(-)。

TransitRouterRouteTableName

String

自定义路由表名称。

长度为0~128个字符,可包含英文字母、数字、汉字、半角逗号(,)、半角句号(.)、半角分号(;)、正斜线(/)、at(@)、下划线(_)和短划线(-)。

返回值

Fn::GetAtt

  • TransitRouterRouteTableId:自定义路由表ID。

  • TransitRouterRouteTableType:自定义路由表的类型。

  • TransitRouterRouteTableDescription:自定义路由表的描述信息。

  • TransitRouterRouteTableName:自定义路由表名称。

  • ClientToken:客户端Token,用于保证请求的幂等性。

  • TransitRouterId:企业版转发路由器实例ID。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterId:
    Description: TransitRouterId
    Type: String
  TransitRouterRouteTableDescription:
    Description: TransitRouterRouteTableDescription
    Type: String
  TransitRouterRouteTableName:
    Description: TransitRouterRouteTableName
    Type: String
Resources:
  CENTransitRouterRouteTable:
    Properties:
      TransitRouterId:
        Ref: TransitRouterId
      TransitRouterRouteTableDescription:
        Ref: TransitRouterRouteTableDescription
      TransitRouterRouteTableName:
        Ref: TransitRouterRouteTableName
    Type: ALIYUN::CEN::TransitRouterRouteTable
Outputs:
  ClientToken:
    Description: ClientToken
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteTable
      - ClientToken
  TransitRouterId:
    Description: TransitRouterId
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteTable
      - TransitRouterId
  TransitRouterRouteTableDescription:
    Description: TransitRouterRouteTableDescription
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteTable
      - TransitRouterRouteTableDescription
  TransitRouterRouteTableId:
    Description: TransitRouterRouteTableId
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteTable
      - TransitRouterRouteTableId
  TransitRouterRouteTableName:
    Description: TransitRouterRouteTableName
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteTable
      - TransitRouterRouteTableName
  TransitRouterRouteTableType:
    Description: TransitRouterRouteTableType
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteTable
      - TransitRouterRouteTableType

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterRouteTableDescription": {
      "Type": "String",
      "Description": "TransitRouterRouteTableDescription"
    },
    "TransitRouterRouteTableName": {
      "Type": "String",
      "Description": "TransitRouterRouteTableName"
    },
    "TransitRouterId": {
      "Type": "String",
      "Description": "TransitRouterId"
    }
  },
  "Resources": {
    "CENTransitRouterRouteTable": {
      "Type": "ALIYUN::CEN::TransitRouterRouteTable",
      "Properties": {
        "TransitRouterRouteTableDescription": {
          "Ref": "TransitRouterRouteTableDescription"
        },
        "TransitRouterRouteTableName": {
          "Ref": "TransitRouterRouteTableName"
        },
        "TransitRouterId": {
          "Ref": "TransitRouterId"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterRouteTableId": {
      "Description": "TransitRouterRouteTableId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteTable",
          "TransitRouterRouteTableId"
        ]
      }
    },
    "TransitRouterRouteTableType": {
      "Description": "TransitRouterRouteTableType",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteTable",
          "TransitRouterRouteTableType"
        ]
      }
    },
    "TransitRouterRouteTableDescription": {
      "Description": "TransitRouterRouteTableDescription",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteTable",
          "TransitRouterRouteTableDescription"
        ]
      }
    },
    "TransitRouterRouteTableName": {
      "Description": "TransitRouterRouteTableName",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteTable",
          "TransitRouterRouteTableName"
        ]
      }
    },
    "ClientToken": {
      "Description": "ClientToken",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteTable",
          "ClientToken"
        ]
      }
    },
    "TransitRouterId": {
      "Description": "TransitRouterId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteTable",
          "TransitRouterId"
        ]
      }
    }
  }
}