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.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 # 
Data ReplaceRouteTableAssociation Source # 

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 # 
Show ReplaceRouteTableAssociation Source # 
Generic ReplaceRouteTableAssociation Source # 
Hashable ReplaceRouteTableAssociation Source # 
NFData ReplaceRouteTableAssociation Source # 
AWSRequest ReplaceRouteTableAssociation Source # 
ToQuery ReplaceRouteTableAssociation Source # 
ToPath ReplaceRouteTableAssociation Source # 
ToHeaders ReplaceRouteTableAssociation Source # 
type Rep ReplaceRouteTableAssociation Source # 
type Rep ReplaceRouteTableAssociation = D1 (MetaData "ReplaceRouteTableAssociation" "Network.AWS.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "ReplaceRouteTableAssociation'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rrtaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_rrtaAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rrtaRouteTableId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ReplaceRouteTableAssociation Source # 

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

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 # 
Show ReplaceRouteTableAssociationResponse Source # 
Generic ReplaceRouteTableAssociationResponse Source # 
NFData ReplaceRouteTableAssociationResponse Source # 
type Rep ReplaceRouteTableAssociationResponse Source # 
type Rep ReplaceRouteTableAssociationResponse = D1 (MetaData "ReplaceRouteTableAssociationResponse" "Network.AWS.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "ReplaceRouteTableAssociationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rrtarsNewAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rrtarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses