disassociateRouteTable

Disassociates a subnet or gateway from a route table.

After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.

Samples


fun main() { 
   //sampleStart 
   // This example disassociates the specified route table from its associated subnet.
ec2Client.disassociateRouteTable {
    associationId = "rtbassoc-781d0d1a"
} 
   //sampleEnd
}