全部產品
Search
文件中心

:ALIYUN::CEN::TransitRouterRouteEntry

更新時間:Jul 19, 2024

ALIYUN::CEN::TransitRouterRouteEntry類型用於在企業版轉寄路由器的路由表中添加路由條目。

文法

{
  "Type": "ALIYUN::CEN::TransitRouterRouteEntry",
  "Properties": {
    "TransitRouterRouteTableId": String,
    "TransitRouterRouteEntryDestinationCidrBlock": String,
    "TransitRouterRouteEntryNextHopId": String,
    "TransitRouterRouteEntryDescription": String,
    "TransitRouterRouteEntryNextHopType": String,
    "TransitRouterRouteEntryName": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

TransitRouterRouteEntryDestinationCidrBlock

String

路由條目的目標網段。

TransitRouterRouteEntryNextHopType

String

路由條目的下一跳類型。

取值:

  • BlackHole:黑洞路由。所有去往目標網段的路由均會被丟棄,無需指定具體的下一跳資訊。

  • Attachment:網路執行個體串連。您需要指定具體的網路執行個體串連ID。所有去往目標網段的路由均會被轉寄至指定的網路執行個體串連。

TransitRouterRouteTableId

String

企業版轉寄路由器的路由表ID。

TransitRouterRouteEntryDescription

String

路由條目的描述。

長度為2~256個字元,可包含英文字母、數字、漢字、半形逗號(,)、半形句號(.)、半形分號(;)、正斜線(/)、at(@)、底線(_)和短劃線(-)。

TransitRouterRouteEntryName

String

路由條目的名稱。

名稱長度為0~128個字元,可包含英文字母、數字、漢字、半形逗號(,)、半形句號(.)、半形分號(;)、正斜線(/)、at(@)、底線(_)和短劃線(-)。

TransitRouterRouteEntryNextHopId

String

路由條目的下一跳所關聯的網路執行個體串連ID。

傳回值

Fn::GetAtt

  • TransitRouterRouteTableId:企業版轉寄路由器的路由表ID。

  • TransitRouterRouteEntryDestinationCidrBlock:路由條目的目標網段。

  • TransitRouterRouteEntryNextHopId:路由條目的下一跳所關聯的網路執行個體串連ID。

  • TransitRouterRouteEntryType:路由條目的類型。

  • TransitRouterRouteEntryDescription:路由條目的描述。

  • TransitRouterRouteEntryNextHopType:路由條目的下一跳類型。

  • TransitRouterRouteEntryName:路由條目的名稱。

  • TransitRouterRouteEntryId:路由條目ID。

樣本

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterRouteEntryDescription:
    Description: TransitRouterRouteEntryDescription
    Type: String
  TransitRouterRouteEntryDestinationCidrBlock:
    Description: TransitRouterRouteEntryDestinationCidrBlock
    Type: String
  TransitRouterRouteEntryName:
    Description: TransitRouterRouteEntryName
    Type: String
  TransitRouterRouteEntryNextHopId:
    Description: TransitRouterRouteEntryNextHopId
    Type: String
  TransitRouterRouteEntryNextHopType:
    Description: TransitRouterRouteEntryNextHopType
    Type: String
  TransitRouterRouteTableId:
    Description: TransitRouterRouteTableId
    Type: String
Resources:
  CENTransitRouterRouteEntry:
    Properties:
      TransitRouterRouteEntryDescription:
        Ref: TransitRouterRouteEntryDescription
      TransitRouterRouteEntryDestinationCidrBlock:
        Ref: TransitRouterRouteEntryDestinationCidrBlock
      TransitRouterRouteEntryName:
        Ref: TransitRouterRouteEntryName
      TransitRouterRouteEntryNextHopId:
        Ref: TransitRouterRouteEntryNextHopId
      TransitRouterRouteEntryNextHopType:
        Ref: TransitRouterRouteEntryNextHopType
      TransitRouterRouteTableId:
        Ref: TransitRouterRouteTableId
    Type: ALIYUN::CEN::TransitRouterRouteEntry
Outputs:
  TransitRouterRouteEntryDescription:
    Description: TransitRouterRouteEntryDescription
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryDescription
  TransitRouterRouteEntryDestinationCidrBlock:
    Description: TransitRouterRouteEntryDestinationCidrBlock
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryDestinationCidrBlock
  TransitRouterRouteEntryId:
    Description: The first ID of the resource
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryId
  TransitRouterRouteEntryName:
    Description: TransitRouterRouteEntryName
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryName
  TransitRouterRouteEntryNextHopId:
    Description: TransitRouterRouteEntryNextHopId
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryNextHopId
  TransitRouterRouteEntryNextHopType:
    Description: TransitRouterRouteEntryNextHopType
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryNextHopType
  TransitRouterRouteEntryType:
    Description: TransitRouterRouteEntryType
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteEntryType
  TransitRouterRouteTableId:
    Description: TransitRouterRouteTableId
    Value:
      Fn::GetAtt:
      - CENTransitRouterRouteEntry
      - TransitRouterRouteTableId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterRouteTableId": {
      "Type": "String",
      "Description": "TransitRouterRouteTableId"
    },
    "TransitRouterRouteEntryDestinationCidrBlock": {
      "Type": "String",
      "Description": "TransitRouterRouteEntryDestinationCidrBlock"
    },
    "TransitRouterRouteEntryNextHopId": {
      "Type": "String",
      "Description": "TransitRouterRouteEntryNextHopId"
    },
    "TransitRouterRouteEntryDescription": {
      "Type": "String",
      "Description": "TransitRouterRouteEntryDescription"
    },
    "TransitRouterRouteEntryNextHopType": {
      "Type": "String",
      "Description": "TransitRouterRouteEntryNextHopType"
    },
    "TransitRouterRouteEntryName": {
      "Type": "String",
      "Description": "TransitRouterRouteEntryName"
    }
  },
  "Resources": {
    "CENTransitRouterRouteEntry": {
      "Type": "ALIYUN::CEN::TransitRouterRouteEntry",
      "Properties": {
        "TransitRouterRouteTableId": {
          "Ref": "TransitRouterRouteTableId"
        },
        "TransitRouterRouteEntryDestinationCidrBlock": {
          "Ref": "TransitRouterRouteEntryDestinationCidrBlock"
        },
        "TransitRouterRouteEntryNextHopId": {
          "Ref": "TransitRouterRouteEntryNextHopId"
        },
        "TransitRouterRouteEntryDescription": {
          "Ref": "TransitRouterRouteEntryDescription"
        },
        "TransitRouterRouteEntryNextHopType": {
          "Ref": "TransitRouterRouteEntryNextHopType"
        },
        "TransitRouterRouteEntryName": {
          "Ref": "TransitRouterRouteEntryName"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterRouteTableId": {
      "Description": "TransitRouterRouteTableId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteTableId"
        ]
      }
    },
    "TransitRouterRouteEntryDestinationCidrBlock": {
      "Description": "TransitRouterRouteEntryDestinationCidrBlock",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryDestinationCidrBlock"
        ]
      }
    },
    "TransitRouterRouteEntryNextHopId": {
      "Description": "TransitRouterRouteEntryNextHopId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryNextHopId"
        ]
      }
    },
    "TransitRouterRouteEntryType": {
      "Description": "TransitRouterRouteEntryType",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryType"
        ]
      }
    },
    "TransitRouterRouteEntryDescription": {
      "Description": "TransitRouterRouteEntryDescription",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryDescription"
        ]
      }
    },
    "TransitRouterRouteEntryNextHopType": {
      "Description": "TransitRouterRouteEntryNextHopType",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryNextHopType"
        ]
      }
    },
    "TransitRouterRouteEntryName": {
      "Description": "TransitRouterRouteEntryName",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryName"
        ]
      }
    },
    "TransitRouterRouteEntryId": {
      "Description": "The first ID of the resource",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterRouteEntry",
          "TransitRouterRouteEntryId"
        ]
      }
    }
  }
}