Skip to content

EC2  >  Operations  >  disassociate_route_table

disassociate_route_table

Operation

disassociate_route_table async

disassociate_route_table(input: DisassociateRouteTableInput, plugins: list[Plugin] | None = None) -> DisassociateRouteTableOutput

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.

Parameters:

Name Type Description Default
input DisassociateRouteTableInput

An instance of DisassociateRouteTableInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DisassociateRouteTableOutput

An instance of DisassociateRouteTableOutput.

Input

DisassociateRouteTableInput dataclass

Bases: _SerdeShape

Dataclass for DisassociateRouteTableInput structure.

Attributes

association_id class-attribute instance-attribute
association_id: str | None = ...

The association ID representing the current association between the route table and subnet or gateway.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Output

DisassociateRouteTableOutput dataclass

Bases: _SerdeShape

Dataclass for DisassociateRouteTableOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.