全部产品
Search
文档中心

资源编排:ALIYUN::CEN::TransitRouterMulticastDomainAssociation

更新时间:Mar 30, 2026

ALIYUN::CEN::TransitRouterMulticastDomainAssociation类型用于将专有网络VPC下的交换机关联至组播域。

语法

{
  "Type": "ALIYUN::CEN::TransitRouterMulticastDomainAssociation",
  "Properties": {
    "TransitRouterAttachmentId": String,
    "TransitRouterMulticastDomainId": String,
    "VSwitchId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

TransitRouterAttachmentId

String

VPC连接的ID。

TransitRouterMulticastDomainId

String

组播域的ID。

VSwitchId

String

交换机的ID。

返回值

Fn::GetAtt

  • TransitRouterAttachmentId:VPC连接的ID。

  • TransitRouterMulticastDomainId:组播域的ID。

  • VSwitchId:交换机的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterAttachmentId:
    Type: String
    Description:
      en: The ID of the VPC connection.
      zh: VPC连接的ID。
    Required: true
  TransitRouterMulticastDomainId:
    Type: String
    Description:
      en: The ID of the multicast domain.
      zh: 组播域的ID。
    Required: true
  VSwitchId:
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
      ZoneId: ${ZoneId}
    AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
    Type: String
    Description:
      en: The ID of the VSwitch.
      zh: 交换机的ID。
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::CEN::TransitRouterMulticastDomainAssociation
    Properties:
      TransitRouterAttachmentId:
        Ref: TransitRouterAttachmentId
      TransitRouterMulticastDomainId:
        Ref: TransitRouterMulticastDomainId
      VSwitchId:
        Ref: VSwitchId
Outputs:
  TransitRouterAttachmentId:
    Description:
      en: The ID of the VPC connection.
      zh: VPC连接的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterAttachmentId
  TransitRouterMulticastDomainId:
    Description:
      en: The ID of the multicast domain.
      zh: 组播域的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterMulticastDomainId
  VSwitchId:
    Description:
      en: The ID of the VSwitch.
      zh: 交换机的ID。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - VSwitchId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterAttachmentId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the VPC connection.",
        "zh": "VPC连接的ID。"
      },
      "Required": true
    },
    "TransitRouterMulticastDomainId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the multicast domain.",
        "zh": "组播域的ID。"
      },
      "Required": true
    },
    "VSwitchId": {
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}",
        "ZoneId": "${ZoneId}"
      },
      "AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
      "Type": "String",
      "Description": {
        "en": "The ID of the VSwitch.",
        "zh": "交换机的ID。"
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CEN::TransitRouterMulticastDomainAssociation",
      "Properties": {
        "TransitRouterAttachmentId": {
          "Ref": "TransitRouterAttachmentId"
        },
        "TransitRouterMulticastDomainId": {
          "Ref": "TransitRouterMulticastDomainId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterAttachmentId": {
      "Description": {
        "en": "The ID of the VPC connection.",
        "zh": "VPC连接的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "TransitRouterMulticastDomainId": {
      "Description": {
        "en": "The ID of the multicast domain.",
        "zh": "组播域的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterMulticastDomainId"
        ]
      }
    },
    "VSwitchId": {
      "Description": {
        "en": "The ID of the VSwitch.",
        "zh": "交换机的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "VSwitchId"
        ]
      }
    }
  }
}