Associates a subnet with a route table.
Declaration Syntax
C# |
public AssociateRouteTableResponse AssociateRouteTable( AssociateRouteTableRequest request )
Parameters
- request (AssociateRouteTableRequest)
- Associate Route Table request
Return Value
Associate Route Table Response from the service
Remarks
The subnet and route table must be in the same VPC. This
association causes traffic originating from the subnet
to be routed according to the routes in the route table.
The action returns an association ID, which you need if
you want to disassociate the route table from the subnet
later. A route table can be associated with multiple subnets.
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |