ALIYUN::VPC::PeeringRouterInterfaceConnection initiates a peering connection between two router interfaces.
Syntax
{
"Type": "ALIYUN::VPC::PeeringRouterInterfaceConnection",
"Properties": {
"OppositeInterfaceId": String,
"RouterInterfaceId": String
}
}
Properties
| Property Name | Type | Required | Update allowed | Description | Constraints |
| OppositeInterfaceId | String | Yes | No | ID of the accepter router interface. | None |
| RouterInterfaceId | String | Yes | No | ID of the requester router interface. | None |
Return values
Fn::GetAtt
- OppositeInterfaceId: ID of the accepter router interface.
- RouterInterfaceId: ID of the requester router interface.
Examples
-
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "OppositeInterfaceId": { "Type": "String", "Description": "The Receiver RouterInterface ID to accept peer RouterInterface." }, "RouterInterfaceId": { "Type": "String", "Description": "The Initiator RouterInterface ID to connect peer RouterInterface." } }, "Resources": { "RouterInterfaceConnection": { "Type": "ALIYUN::VPC::PeeringRouterInterfaceConnection", "Properties": { "OppositeInterfaceId": { "Ref": "OppositeInterfaceId" }, "RouterInterfaceId": { "Ref": "RouterInterfaceId" } } } }, "Outputs": { "OppositeInterfaceId": { "Description": "The receiver RouterInterface ID.", "Value": { "Fn::GetAtt": [ "RouterInterfaceConnection", "OppositeInterfaceId" ] } }, "RouterInterfaceId": { "Description": "The initiator RouterInterface ID.", "Value": { "Fn::GetAtt": [ "RouterInterfaceConnection", "RouterInterfaceId" ] } } } }
该文章对您有帮助吗?