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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 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:

  • 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 Source #

Contains the parameters for ReplaceRoute.

See: replaceRoute smart constructor.

Instances

Eq ReplaceRoute Source # 
Data ReplaceRoute Source # 

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 Source # 
Show ReplaceRoute Source # 
Generic ReplaceRoute Source # 

Associated Types

type Rep ReplaceRoute :: * -> * #

Hashable ReplaceRoute Source # 
NFData ReplaceRoute Source # 

Methods

rnf :: ReplaceRoute -> () #

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

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.

rrEgressOnlyInternetGatewayId :: Lens' ReplaceRoute (Maybe Text) Source #

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

rrDestinationIPv6CidrBlock :: Lens' ReplaceRoute (Maybe Text) Source #

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) Source #

IPv4 traffic only
The ID of a NAT gateway.

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 .

rrDestinationCidrBlock :: Lens' ReplaceRoute (Maybe Text) Source #

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 Source #

The ID of the route table.

Destructuring the Response

replaceRouteResponse :: ReplaceRouteResponse Source #

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

data ReplaceRouteResponse Source #

See: replaceRouteResponse smart constructor.

Instances

Eq ReplaceRouteResponse Source # 
Data ReplaceRouteResponse Source # 

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 Source # 
Show ReplaceRouteResponse Source # 
Generic ReplaceRouteResponse Source # 
NFData ReplaceRouteResponse Source # 

Methods

rnf :: ReplaceRouteResponse -> () #

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