paws.compute (version 0.1.0)

ec2_disassociate_route_table: Disassociates a subnet from a route table

Description

Disassociates a subnet from a route table.

Usage

ec2_disassociate_route_table(AssociationId, DryRun)

Arguments

AssociationId

[required] The association ID representing the current association between the route table and subnet.

DryRun

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.

Request syntax

svc$disassociate_route_table(
  AssociationId = "string",
  DryRun = TRUE|FALSE
)

Details

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.

Examples

Run this code
# NOT RUN {
# This example disassociates the specified route table from its associated
# subnet.
# }
# NOT RUN {
svc$disassociate_route_table(
  AssociationId = "rtbassoc-781d0d1a"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace