amazonka-ec2-1.3.0: 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.ReplaceRoute

Contents

Description

Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway, NAT instance, VPC peering connection, or network interface.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

See: AWS API Reference for ReplaceRoute.

Synopsis

Creating a Request

replaceRoute Source

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

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

Request Lenses

rrVPCPeeringConnectionId :: Lens' ReplaceRoute (Maybe Text) Source

The ID of a VPC peering connection.

rrInstanceId :: Lens' ReplaceRoute (Maybe Text) Source

The ID of a NAT instance in your VPC.

rrNetworkInterfaceId :: Lens' ReplaceRoute (Maybe Text) Source

The ID of a network interface.

rrGatewayId :: Lens' ReplaceRoute (Maybe Text) Source

The ID of an Internet gateway or virtual private gateway.

rrDryRun :: Lens' ReplaceRoute (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.

rrRouteTableId :: Lens' ReplaceRoute Text Source

The ID of the route table.

rrDestinationCIdRBlock :: Lens' ReplaceRoute Text Source

The CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.

Destructuring the Response

replaceRouteResponse :: ReplaceRouteResponse Source

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