ALIYUN::CEN::TransitRouterCidr

更新时间:
复制为 MD 格式

ALIYUN::CEN::TransitRouterCidr类型用于创建转发路由器下CIDR地址段。

语法

{
  "Type": "ALIYUN::CEN::TransitRouterCidr",
  "Properties": {
    "Cidr": String,
    "TransitRouterId": String,
    "Description": String,
    "PublishCidrRoute": Boolean,
    "TransitRouterCidrName": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Cidr

String

转发路由器的CIDR地址块。

TransitRouterId

String

转发路由器的ID。

Description

String

转发路由器CIDR地址块的描述。

描述的长度必须为1256个字符,且不能以http://或https://开头。您也可以将该参数留空。长度限制:最小1,最大256

PublishCidrRoute

Boolean

指定是否允许系统自动向转发路由器的路由表中添加指向该CIDR地址块的路由。

如果您将值设置为true,在创建私有VPN网关上的VPN连接并为VPN连接启用路由学习后,系统会自动向与VPN连接具有路由学习关系的转发路由器的路由表中添加以下路由:目的CIDR地址块为转发路由器CIDR地址块的黑洞路由,该CIDR地址块是指向IPsec-VPN连接分配网关IP地址的CIDR地址块。黑洞路由仅向连接到转发路由器的虚拟边界路由器(VBR)的路由表广播。

TransitRouterCidrName

String

转发路由器CIDR地址块的新名称。

名称的长度必须为1128个字符,且不能以http://或https://开头。您也可以将该参数留空。长度限制:最小1,最大128

返回值

Fn::GetAtt

  • TransitRouterCidrName:转发路由器CIDR地址块的新名称。

  • Description:转发路由器CIDR地址块的新描述。

  • Cidr:转发路由器的CIDR地址块。

  • TransitRouterCidrId:CIDR地址块的ID。

  • Family:CIDR地址块的类型。

  • PublishCidrRoute:指定是否允许系统自动向转发路由器的路由表中添加指向该CIDR地址块的路由。

  • TransitRouterId:转发路由器的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Cidr:
    Type: String
    Description:
      en: The CIDR block of the transit router.
      zh: 转发路由器的CIDR地址块。
    Required: true
  TransitRouterId:
    Type: String
    Description:
      en: The ID of the transit router.
      zh: 转发路由器的ID。
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::CEN::TransitRouterCidr
    Properties:
      Cidr:
        Ref: Cidr
      TransitRouterId:
        Ref: TransitRouterId
Outputs:
  TransitRouterCidrName:
    Description:
      en: The new name of the transit router CIDR block.
      zh: 转发路由器CIDR地址块的新名称。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterCidrName
  Description:
    Description:
      en: The new description of the transit router CIDR block.
      zh: 转发路由器CIDR地址块的新描述。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Description
  Cidr:
    Description:
      en: The CIDR block of the transit router.
      zh: 转发路由器的CIDR地址块。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Cidr
  TransitRouterCidrId:
    Description:
      en: The ID of the CIDR block.
      zh: CIDR地址块的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterCidrId
  Family:
    Description:
      en: The type of the CIDR block.
      zh: CIDR地址块的类型。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Family
  PublishCidrRoute:
    Description:
      en: Specifies whether to allow the system to automatically add a route that points to the CIDR block to the route table of the transit router.
      zh: 指定是否允许系统自动向转发路由器的路由表中添加指向该CIDR地址块的路由。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PublishCidrRoute
  TransitRouterId:
    Description:
      en: The ID of the transit router.
      zh: 转发路由器的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Cidr": {
      "Type": "String",
      "Description": {
        "en": "The CIDR block of the transit router.",
        "zh": "转发路由器的CIDR地址块。"
      },
      "Required": true
    },
    "TransitRouterId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the transit router.",
        "zh": "转发路由器的ID。"
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CEN::TransitRouterCidr",
      "Properties": {
        "Cidr": {
          "Ref": "Cidr"
        },
        "TransitRouterId": {
          "Ref": "TransitRouterId"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterCidrName": {
      "Description": {
        "en": "The new name of the transit router CIDR block.",
        "zh": "转发路由器CIDR地址块的新名称。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterCidrName"
        ]
      }
    },
    "Description": {
      "Description": {
        "en": "The new description of the transit router CIDR block.",
        "zh": "转发路由器CIDR地址块的新描述。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      }
    },
    "Cidr": {
      "Description": {
        "en": "The CIDR block of the transit router.",
        "zh": "转发路由器的CIDR地址块。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Cidr"
        ]
      }
    },
    "TransitRouterCidrId": {
      "Description": {
        "en": "The ID of the CIDR block.",
        "zh": "CIDR地址块的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterCidrId"
        ]
      }
    },
    "Family": {
      "Description": {
        "en": "The type of the CIDR block.",
        "zh": "CIDR地址块的类型。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Family"
        ]
      }
    },
    "PublishCidrRoute": {
      "Description": {
        "en": "Specifies whether to allow the system to automatically add a route that points to the CIDR block to the route table of the transit router.",
        "zh": "指定是否允许系统自动向转发路由器的路由表中添加指向该CIDR地址块的路由。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "PublishCidrRoute"
        ]
      }
    },
    "TransitRouterId": {
      "Description": {
        "en": "The ID of the transit router.",
        "zh": "转发路由器的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterId"
        ]
      }
    }
  }
}