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

Copyright(c) 2013-2016 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, NAT gateway, VPC peering connection, network interface, or egress-only Internet gateway.

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

Synopsis

Creating a Request

replaceRoute #

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:

  • rrVPCPeeringConnectionId - The ID of a VPC peering connection.
  • rrInstanceId - The ID of a NAT instance in your VPC.
  • rrEgressOnlyInternetGatewayId - [IPv6 traffic only] The ID of an egress-only Internet gateway.
  • rrDestinationIPv6CidrBlock - The IPv6 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
  • rrNatGatewayId - [IPv4 traffic only] The ID of a NAT gateway.
  • rrNetworkInterfaceId - The ID of a network interface.
  • rrGatewayId - The ID of an Internet gateway or virtual private gateway.
  • rrDryRun - 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 .
  • rrDestinationCidrBlock - The IPv4 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
  • rrRouteTableId - The ID of the route table.

data ReplaceRoute #

Contains the parameters for ReplaceRoute.

See: replaceRoute smart constructor.

Instances

Eq ReplaceRoute # 
Data ReplaceRoute # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReplaceRoute -> c ReplaceRoute #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReplaceRoute #

toConstr :: ReplaceRoute -> Constr #

dataTypeOf :: ReplaceRoute -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ReplaceRoute) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReplaceRoute) #

gmapT :: (forall b. Data b => b -> b) -> ReplaceRoute -> ReplaceRoute #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReplaceRoute -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReplaceRoute -> r #

gmapQ :: (forall d. Data d => d -> u) -> ReplaceRoute -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ReplaceRoute -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReplaceRoute -> m ReplaceRoute #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReplaceRoute -> m ReplaceRoute #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReplaceRoute -> m ReplaceRoute #

Read ReplaceRoute # 
Show ReplaceRoute # 
Generic ReplaceRoute # 

Associated Types

type Rep ReplaceRoute :: * -> * #

Hashable ReplaceRoute # 
NFData ReplaceRoute # 

Methods

rnf :: ReplaceRoute -> () #

AWSRequest ReplaceRoute # 
ToQuery ReplaceRoute # 
ToPath ReplaceRoute # 
ToHeaders ReplaceRoute # 
type Rep ReplaceRoute # 
type Rs ReplaceRoute # 

Request Lenses

rrVPCPeeringConnectionId :: Lens' ReplaceRoute (Maybe Text) #

The ID of a VPC peering connection.

rrInstanceId :: Lens' ReplaceRoute (Maybe Text) #

The ID of a NAT instance in your VPC.

rrEgressOnlyInternetGatewayId :: Lens' ReplaceRoute (Maybe Text) #

IPv6 traffic only
The ID of an egress-only Internet gateway.

rrDestinationIPv6CidrBlock :: Lens' ReplaceRoute (Maybe Text) #

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

rrNatGatewayId :: Lens' ReplaceRoute (Maybe Text) #

IPv4 traffic only
The ID of a NAT gateway.

rrNetworkInterfaceId :: Lens' ReplaceRoute (Maybe Text) #

The ID of a network interface.

rrGatewayId :: Lens' ReplaceRoute (Maybe Text) #

The ID of an Internet gateway or virtual private gateway.

rrDryRun :: Lens' ReplaceRoute (Maybe Bool) #

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 .

rrDestinationCidrBlock :: Lens' ReplaceRoute (Maybe Text) #

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

rrRouteTableId :: Lens' ReplaceRoute Text #

The ID of the route table.

Destructuring the Response

replaceRouteResponse :: ReplaceRouteResponse #

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

data ReplaceRouteResponse #

See: replaceRouteResponse smart constructor.

Instances

Eq ReplaceRouteResponse # 
Data ReplaceRouteResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReplaceRouteResponse -> c ReplaceRouteResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReplaceRouteResponse #

toConstr :: ReplaceRouteResponse -> Constr #

dataTypeOf :: ReplaceRouteResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ReplaceRouteResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReplaceRouteResponse) #

gmapT :: (forall b. Data b => b -> b) -> ReplaceRouteResponse -> ReplaceRouteResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReplaceRouteResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReplaceRouteResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ReplaceRouteResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ReplaceRouteResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReplaceRouteResponse -> m ReplaceRouteResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReplaceRouteResponse -> m ReplaceRouteResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReplaceRouteResponse -> m ReplaceRouteResponse #

Read ReplaceRouteResponse # 
Show ReplaceRouteResponse # 
Generic ReplaceRouteResponse # 
NFData ReplaceRouteResponse # 

Methods

rnf :: ReplaceRouteResponse -> () #

type Rep ReplaceRouteResponse # 
type Rep ReplaceRouteResponse = D1 (MetaData "ReplaceRouteResponse" "Network.AWS.EC2.ReplaceRoute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ReplaceRouteResponse'" PrefixI False) U1)