Mengaitkan tabel rute kustom dengan vSwitch dalam VPC yang sama.
Syntax
{
"Type": "ALIYUN::VPC::RouteTableAssociation",
"Properties": {
"RouteTableId": String,
"VSwitchId": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| RouteTableId | String | Yes | No | ID tabel rute. | None. |
| VSwitchId | String | Yes | No | ID vSwitch yang akan disambungkan. | None. |
Return values
Fn::GetAtt
- RouteTableId: ID tabel rute.
- VSwitchId: ID vSwitch yang telah dikaitkan.
Examples
-
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "RouteTableId": { "Type": "String", "Description": "The ID of the route table." }, "VSwitchId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId" } }, "Resources": { "RouteTableAssociation": { "Type": "ALIYUN::VPC::RouteTableAssociation", "Properties": { "RouteTableId": { "Ref": "RouteTableId" }, "VSwitchId": { "Ref": "VSwitchId" } } } }, "Outputs": { "RouteTableId": { "Description": "The ID of the route table.", "Value": { "Fn::GetAtt": [ "RouteTableAssociation", "RouteTableId" ] } }, "VSwitchId": { "Description": "The VSwitch ID which the route table associated with.", "Value": { "Fn::GetAtt": [ "RouteTableAssociation", "VSwitchId" ] } } } }