全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::CEN::TransitRouterRouteTable

更新時間:Jul 19, 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"
        ]
      }
    }
  }
}