amazonka-ec2-1.6.0: 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 #

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 #

Contains the parameters for ReplaceRouteTableAssociation.

See: replaceRouteTableAssociation smart constructor.

Instances
Eq ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

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

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Show ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Generic ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Associated Types

type Rep ReplaceRouteTableAssociation :: * -> * #

Hashable ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

AWSRequest ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Associated Types

type Rs ReplaceRouteTableAssociation :: * #

ToHeaders ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

ToPath ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

ToQuery ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

NFData ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociation = D1 (MetaData "ReplaceRouteTableAssociation" "Network.AWS.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Request Lenses

rrtaDryRun :: Lens' ReplaceRouteTableAssociation (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 .

rrtaRouteTableId :: Lens' ReplaceRouteTableAssociation Text #

The ID of the new route table to associate with the subnet.

Destructuring the Response

replaceRouteTableAssociationResponse #

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 #

Contains the output of ReplaceRouteTableAssociation.

See: replaceRouteTableAssociationResponse smart constructor.

Instances
Eq ReplaceRouteTableAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

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

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Show ReplaceRouteTableAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Generic ReplaceRouteTableAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

Associated Types

type Rep ReplaceRouteTableAssociationResponse :: * -> * #

NFData ReplaceRouteTableAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceRouteTableAssociation

type Rep ReplaceRouteTableAssociationResponse = D1 (MetaData "ReplaceRouteTableAssociationResponse" "Network.AWS.EC2.ReplaceRouteTableAssociation" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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