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"
]
}
}
}
}