AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.

Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual ReplaceRouteTableAssociationResponse ReplaceRouteTableAssociation(
         ReplaceRouteTableAssociationRequest request
)

Parameters

request
Type: Amazon.EC2.Model.ReplaceRouteTableAssociationRequest

Container for the necessary parameters to execute the ReplaceRouteTableAssociation service method.

Return Value
Type: Amazon.EC2.Model.ReplaceRouteTableAssociationResponse
The response from the ReplaceRouteTableAssociation service method, as returned by EC2.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5