Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CEN::TransitRouterMulticastDomainAssociation

Última atualização: Jun 27, 2026

Associa um vSwitch em uma Virtual Private Cloud (VPC) a um domínio multicast.

Sintaxe

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

Propriedades

Parâmetro

Tipo

Obrigatório

Atualize permitida

Descrição

Restrições

TransitRouterAttachmentId

String

Sim

Não

ID da conexão VPC.

Nenhuma

TransitRouterMulticastDomainId

String

Sim

Não

ID do domínio multicast.

Nenhuma

VSwitchId

String

Sim

Não

ID do vSwitch.

Nenhuma

Saídas

Fn::GetAtt

  • TransitRouterAttachmentId: ID da conexão VPC.

  • TransitRouterMulticastDomainId: ID do domínio multicast.

  • VSwitchId: ID do vSwitch.

Exemplos

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