ALIYUN::VPC::RouteTableAssociation は、同じ VPC 内の vSwitch にカスタムルートテーブルを関連付けるために使用されます。
構文
{
"Type": "ALIYUN::VPC::RouteTableAssociation",
"Properties": {
"RouteTableId": String,
"VSwitchId": String
}
}プロパティ
| 名前 | タイプ | 必須 | 編集可能 | 説明 | 有効性 |
| RouteTableId | String | はい | いいえ | ルートテーブルの ID です。 | なし |
| VSwitchId | String | はい | いいえ | ルートテーブルを関連付ける vSwitch の ID です。 | なし |
レスポンスパラメータ
Fn::GetAtt
- RouteTableId: ルートテーブルの ID。
- VSwitchId: vSwitch の ID。
例
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "RouteTableId": { "Type": "String", "Description": "The ID of the route table." // ルートテーブルのID }, "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.", // ルートテーブルのID "Value": { "Fn::GetAtt": [ "RouteTableAssociation", "RouteTableId" ] } }, "VSwitchId": { "Description": "The VSwitch ID which the route table associated with.", // ルートテーブルが関連付けられているVSwitch ID "Value": { "Fn::GetAtt": [ "RouteTableAssociation", "VSwitchId" ] } } } }