ALIYUN::CEN::TransitRouterRouteTableAssociationReplacement

ALIYUN::CEN::TransitRouterRouteTableAssociationReplacement类型用于更换网络实例连接关联的转发路由器路由表。

语法

{
  "Type": "ALIYUN::CEN::TransitRouterRouteTableAssociationReplacement",
  "Properties": {
    "TransitRouterRouteTableId": String,
    "TransitRouterAttachmentId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

TransitRouterRouteTableId

String

网络实例连接待关联的转发路由器路由表 ID。

TransitRouterAttachmentId

String

网络实例连接 ID。

返回值

Fn::GetAtt

OriginalTransitRouterRouteTableId:替换前的原始传输路由器路由表 ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterRouteTableId:
    Type: String
    Description:
      en: The ID of the transit router route table to be associated.
    Required: true
  TransitRouterAttachmentId:
    Type: String
    Description:
      en: The ID of the network instance connection.
    Required: true
Resources:
  TransitRouterRouteTableAssociationReplacement:
    Type: ALIYUN::CEN::TransitRouterRouteTableAssociationReplacement
    Properties:
      TransitRouterRouteTableId:
        Ref: TransitRouterRouteTableId
      TransitRouterAttachmentId:
        Ref: TransitRouterAttachmentId
Outputs:
  OriginalTransitRouterRouteTableId:
    Description: The original transit router route table ID before replacement.
    Value:
      Fn::GetAtt:
        - TransitRouterRouteTableAssociationReplacement
        - OriginalTransitRouterRouteTableId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterRouteTableId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the transit router route table to be associated."
      },
      "Required": true
    },
    "TransitRouterAttachmentId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the network instance connection."
      },
      "Required": true
    }
  },
  "Resources": {
    "TransitRouterRouteTableAssociationReplacement": {
      "Type": "ALIYUN::CEN::TransitRouterRouteTableAssociationReplacement",
      "Properties": {
        "TransitRouterRouteTableId": {
          "Ref": "TransitRouterRouteTableId"
        },
        "TransitRouterAttachmentId": {
          "Ref": "TransitRouterAttachmentId"
        }
      }
    }
  },
  "Outputs": {
    "OriginalTransitRouterRouteTableId": {
      "Description": "The original transit router route table ID before replacement.",
      "Value": {
        "Fn::GetAtt": [
          "TransitRouterRouteTableAssociationReplacement",
          "OriginalTransitRouterRouteTableId"
        ]
      }
    }
  }
}