Skip to content

/AWS1/CL_EC2=>ASSOCIATEROUTETABLE()

About AssociateRouteTable

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.

For more information, see Route tables in the Amazon VPC User Guide.

Method Signature

IMPORTING

Required arguments:

IV_ROUTETABLEID TYPE /AWS1/EC2ROUTETABLEID /AWS1/EC2ROUTETABLEID

The ID of the route table.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

IV_SUBNETID TYPE /AWS1/EC2SUBNETID /AWS1/EC2SUBNETID

The ID of the subnet.

IV_GATEWAYID TYPE /AWS1/EC2ROUTEGATEWAYID /AWS1/EC2ROUTEGATEWAYID

The ID of the internet gateway or virtual private gateway.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2ASSOCROUTETBLRSLT /AWS1/CL_EC2ASSOCROUTETBLRSLT