Skip to content

/AWS1/CL_EC2=>REPLACEROUTETABLEASSOCIATION()

About ReplaceRouteTableAssociation

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.

You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.

Method Signature

IMPORTING

Required arguments:

IV_ASSOCIATIONID TYPE /AWS1/EC2ROUTETBLASSOCIATIONID /AWS1/EC2ROUTETBLASSOCIATIONID

The association ID.

IV_ROUTETABLEID TYPE /AWS1/EC2ROUTETABLEID /AWS1/EC2ROUTETABLEID

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

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2RPLROUTETBLASSOC01 /AWS1/CL_EC2RPLROUTETBLASSOC01