ALIYUN::CEN::RouteEntry

更新时间:2024-07-18 05:30:50

ALIYUN::CEN::RouteEntry类型用于将加载到CEN中的VPCVBR的路由条目发布到CEN中。

语法

{
  "Type": "ALIYUN::CEN::RouteEntry",
  "Properties": {
    "ChildInstanceRegionId": String,
    "CenId": String,
    "DestinationCidrBlock": String,
    "ChildInstanceRouteTableId": String,
    "ChildInstanceType": String,
    "ChildInstanceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

CenId

String

云企业网实例的ID。

无。

ChildInstanceId

String

加载的网络实例ID(VPCVBRID)。

无。

ChildInstanceRegionId

String

加载的网络实例的地域ID。

无。

ChildInstanceRouteTableId

String

网络实例的路由表ID。

无。

ChildInstanceType

String

网络实例类型。

取值:

  • VPC

  • VBR

DestinationCidrBlock

String

要发布的网段。

无。

返回值

Fn::GetAtt

无。

示例

YAML格式
JSON格式
ROSTemplateFormatVersion: '2015-09-01'
Resources:
  RouteEntry:
    Type: ALIYUN::CEN::RouteEntry
    Properties:
      ChildInstanceRegionId:
        Ref: ChildInstanceRegionId
      CenId:
        Ref: CenId
      DestinationCidrBlock:
        Ref: DestinationCidrBlock
      ChildInstanceRouteTableId:
        Ref: ChildInstanceRouteTableId
      ChildInstanceType:
        Ref: ChildInstanceType
      ChildInstanceId:
        Ref: ChildInstanceId
Parameters:
  ChildInstanceRegionId:
    Type: String
    Description: The ID of the region where the attached VBR or VPC is located.
  CenId:
    Type: String
    Description: The ID of the CEN instance where the route entry is published.
  DestinationCidrBlock:
    Type: String
    Description: The destination CIDR block of the route entry to publish.
  ChildInstanceRouteTableId:
    Type: String
    Description: The route table of the attached VBR or VPC.
  ChildInstanceType:
    Type: String
    Description: 'The type of the network, value: VPC VBR'
    AllowedValues:
      - VPC
      - VBR
  ChildInstanceId:
    Type: String
    Description: The ID of the attached network (VPC or VBR).
Outputs: {}
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "RouteEntry": {
      "Type": "ALIYUN::CEN::RouteEntry",
      "Properties": {
        "ChildInstanceRegionId": {
          "Ref": "ChildInstanceRegionId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "DestinationCidrBlock": {
          "Ref": "DestinationCidrBlock"
        },
        "ChildInstanceRouteTableId": {
          "Ref": "ChildInstanceRouteTableId"
        },
        "ChildInstanceType": {
          "Ref": "ChildInstanceType"
        },
        "ChildInstanceId": {
          "Ref": "ChildInstanceId"
        }
      }
    }
  },
  "Parameters": {
    "ChildInstanceRegionId": {
      "Type": "String",
      "Description": "The ID of the region where the attached VBR or VPC is located."
    },
    "CenId": {
      "Type": "String",
      "Description": "The ID of the CEN instance where the route entry is published."
    },
    "DestinationCidrBlock": {
      "Type": "String",
      "Description": "The destination CIDR block of the route entry to publish."
    },
    "ChildInstanceRouteTableId": {
      "Type": "String",
      "Description": "The route table of the attached VBR or VPC."
    },
    "ChildInstanceType": {
      "Type": "String",
      "Description": "The type of the network, value: VPC VBR",
      "AllowedValues": [
        "VPC",
        "VBR"
      ]
    },
    "ChildInstanceId": {
      "Type": "String",
      "Description": "The ID of the attached network (VPC or VBR)."
    }
  },
  "Outputs": {}
}
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等