amazonka-ec2-1.3.4: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ReplaceRouteTableAssociation

Contents

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.

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.

See: AWS API Reference for ReplaceRouteTableAssociation.

Synopsis

Creating a Request

replaceRouteTableAssociation Source

Creates a value of ReplaceRouteTableAssociation with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

rrtaDryRun :: Lens' ReplaceRouteTableAssociation (Maybe Bool) Source

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.

rrtaRouteTableId :: Lens' ReplaceRouteTableAssociation Text Source

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

Destructuring the Response

replaceRouteTableAssociationResponse Source

Creates a value of ReplaceRouteTableAssociationResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses