Learn R Programming

paws.compute (version 0.1.0)

ec2_replace_route_table_association: Changes the route table associated with a given subnet in a VPC

Description

Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

Usage

ec2_replace_route_table_association(AssociationId, DryRun, RouteTableId)

Arguments

AssociationId

[required] The association ID.

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.

RouteTableId

[required] The ID of the new route table to associate with the subnet.

Request syntax

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

Details

You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.

Examples

Run this code
# NOT RUN {
# This example associates the specified route table with the subnet for
# the specified route table association.
# }
# NOT RUN {
svc$replace_route_table_association(
  AssociationId = "rtbassoc-781d0d1a",
  RouteTableId = "rtb-22574640"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab