ec2_associate_route_table: Associates a subnet in your VPC or an internet gateway or...

View source: R/ec2_operations.R

ec2_associate_route_tableR Documentation

Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC

Description

Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.

See https://www.paws-r-sdk.com/docs/ec2_associate_route_table/ for full documentation.

Usage

ec2_associate_route_table(
  DryRun = NULL,
  RouteTableId,
  SubnetId = NULL,
  GatewayId = NULL
)

Arguments

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 route table.

SubnetId

The ID of the subnet.

GatewayId

The ID of the internet gateway or virtual private gateway.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.