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

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Data ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Show ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Generic ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Associated Types

type Rep ReplaceRoute :: Type -> Type #

Hashable ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

AWSRequest ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Associated Types

type Rs ReplaceRoute :: Type #

ToHeaders ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

ToPath ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

ToQuery ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

NFData ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Methods

rnf :: ReplaceRoute -> () #

type Rep ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

type Rep ReplaceRoute = D1 (MetaData "ReplaceRoute" "Network.AWS.EC2.ReplaceRoute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReplaceRoute'" PrefixI True) (((S1 (MetaSel (Just "_rrVPCPeeringConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rrInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_rrEgressOnlyInternetGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rrDestinationIPv6CidrBlock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rrNatGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_rrNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rrGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_rrDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_rrDestinationCidrBlock") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rrRouteTableId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs ReplaceRoute Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Data ReplaceRouteResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Show ReplaceRouteResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Generic ReplaceRouteResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Associated Types

type Rep ReplaceRouteResponse :: Type -> Type #

NFData ReplaceRouteResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

Methods

rnf :: ReplaceRouteResponse -> () #

type Rep ReplaceRouteResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRoute

type Rep ReplaceRouteResponse = D1 (MetaData "ReplaceRouteResponse" "Network.AWS.EC2.ReplaceRoute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReplaceRouteResponse'" PrefixI False) (U1 :: Type -> Type))