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 Virtual Private Cloud User Guide.
example
Use a bare-bones client and the command you need to make an API call.
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 Virtual Private Cloud User Guide.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DisassociateRouteTableCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DisassociateRouteTableCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DisassociateRouteTableCommand(input); const response = await client.send(command);
DisassociateRouteTableCommandInput for command's
input
shape.DisassociateRouteTableCommandOutput for command's
response
shape.config for EC2Client's
config
shape.