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.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.

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:

  • rrtaDryRun - 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 .
  • rrtaAssociationId - The association ID.
  • rrtaRouteTableId - The ID of the new route table to associate with the subnet.

data ReplaceRouteTableAssociation Source #

Contains the parameters for ReplaceRouteTableAssociation.

See: replaceRouteTableAssociation smart constructor.

Instances
Eq ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Data ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Methods

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

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

toConstr :: ReplaceRouteTableAssociation -> Constr #

dataTypeOf :: ReplaceRouteTableAssociation -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Show ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Generic ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Associated Types

type Rep ReplaceRouteTableAssociation :: Type -> Type #

Hashable ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

AWSRequest ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Associated Types

type Rs ReplaceRouteTableAssociation :: Type #

ToHeaders ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

ToPath ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

ToQuery ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

NFData ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociation = D1 (MetaData "ReplaceRouteTableAssociation" "Network.AWS.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReplaceRouteTableAssociation'" PrefixI True) (S1 (MetaSel (Just "_rrtaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_rrtaAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rrtaRouteTableId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ReplaceRouteTableAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

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:

data ReplaceRouteTableAssociationResponse Source #

Contains the output of ReplaceRouteTableAssociation.

See: replaceRouteTableAssociationResponse smart constructor.

Instances
Eq ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Data ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Methods

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

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

toConstr :: ReplaceRouteTableAssociationResponse -> Constr #

dataTypeOf :: ReplaceRouteTableAssociationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Show ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Generic ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

NFData ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociationResponse = D1 (MetaData "ReplaceRouteTableAssociationResponse" "Network.AWS.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReplaceRouteTableAssociationResponse'" PrefixI True) (S1 (MetaSel (Just "_rrtarsNewAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rrtarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses