ALIYUN::CEN::ChildInstanceRouteEntryToAttachment

ALIYUN::CEN::ChildInstanceRouteEntryToAttachment类型用于为企业版转发路由器连接的网络实例添加路由条目。

语法

{
  "Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
  "Properties": {
    "TransitRouterAttachmentId": String,
    "RouteTableId": String,
    "CenId": String,
    "DestinationCidrBlock": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

CenId

String

云企业网实例ID。

DestinationCidrBlock

String

路由条目的目标网段。

RouteTableId

String

网络实例的路由表ID。

TransitRouterAttachmentId

String

网络实例连接ID。

返回值

Fn::GetAtt

  • TransitRouterAttachmentId:网络实例连接ID。

  • RouteTableId:网络实例的路由表ID。

  • CenId:云企业网实例ID。

  • DestinationCidrBlock:路由条目的目标网段。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterAttachmentId:
    Type: String
    Description: The ID of the network instance connection.
  RouteTableId:
    Type: String
    Description: The ID of the route table configured on the network instance.
  CenId:
    Type: String
    Description: The ID of the CEN instance.
  DestinationCidrBlock:
    Type: String
    Description: The destination CIDR block of the route.
Resources:
  ChildInstanceRouteEntryToAttachment:
    Type: ALIYUN::CEN::ChildInstanceRouteEntryToAttachment
    Properties:
      TransitRouterAttachmentId:
        Ref: TransitRouterAttachmentId
      RouteTableId:
        Ref: RouteTableId
      CenId:
        Ref: CenId
      DestinationCidrBlock:
        Ref: DestinationCidrBlock
Outputs:
  TransitRouterAttachmentId:
    Description: The ID of the network instance connection.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - TransitRouterAttachmentId
  RouteTableId:
    Description: The ID of the route table configured on the network instance.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - RouteTableId
  CenId:
    Description: The ID of the CEN instance.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - CenId
  DestinationCidrBlock:
    Description: The destination CIDR block of the route.
    Value:
      Fn::GetAtt:
        - ChildInstanceRouteEntryToAttachment
        - DestinationCidrBlock

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterAttachmentId": {
      "Type": "String",
      "Description": "The ID of the network instance connection."
    },
    "RouteTableId": {
      "Type": "String",
      "Description": "The ID of the route table configured on the network instance."
    },
    "CenId": {
      "Type": "String",
      "Description": "The ID of the CEN instance."
    },
    "DestinationCidrBlock": {
      "Type": "String",
      "Description": "The destination CIDR block of the route."
    }
  },
  "Resources": {
    "ChildInstanceRouteEntryToAttachment": {
      "Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
      "Properties": {
        "TransitRouterAttachmentId": {
          "Ref": "TransitRouterAttachmentId"
        },
        "RouteTableId": {
          "Ref": "RouteTableId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "DestinationCidrBlock": {
          "Ref": "DestinationCidrBlock"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterAttachmentId": {
      "Description": "The ID of the network instance connection.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "RouteTableId": {
      "Description": "The ID of the route table configured on the network instance.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "RouteTableId"
        ]
      }
    },
    "CenId": {
      "Description": "The ID of the CEN instance.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "CenId"
        ]
      }
    },
    "DestinationCidrBlock": {
      "Description": "The destination CIDR block of the route.",
      "Value": {
        "Fn::GetAtt": [
          "ChildInstanceRouteEntryToAttachment",
          "DestinationCidrBlock"
        ]
      }
    }
  }
}