Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DisassociateRouteTableCommand

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.

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);
see

DisassociateRouteTableCommandInput for command's input shape.

see

DisassociateRouteTableCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DisassociateRouteTableCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions