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

Contents

Description

Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

associateRouteTable Source #

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

Use one of the following lenses to modify other fields as desired:

  • artDryRun - 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 .
  • artRouteTableId - The ID of the route table.
  • artSubnetId - The ID of the subnet.

data AssociateRouteTable Source #

Contains the parameters for AssociateRouteTable.

See: associateRouteTable smart constructor.

Instances
Eq AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Data AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Methods

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

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

toConstr :: AssociateRouteTable -> Constr #

dataTypeOf :: AssociateRouteTable -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Show AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Generic AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Associated Types

type Rep AssociateRouteTable :: Type -> Type #

Hashable AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

AWSRequest AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Associated Types

type Rs AssociateRouteTable :: Type #

ToHeaders AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

ToPath AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

ToQuery AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

NFData AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Methods

rnf :: AssociateRouteTable -> () #

type Rep AssociateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

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

Defined in Network.AWS.EC2.AssociateRouteTable

Request Lenses

artDryRun :: Lens' AssociateRouteTable (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 .

artRouteTableId :: Lens' AssociateRouteTable Text Source #

The ID of the route table.

Destructuring the Response

associateRouteTableResponse Source #

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

Use one of the following lenses to modify other fields as desired:

data AssociateRouteTableResponse Source #

Contains the output of AssociateRouteTable.

See: associateRouteTableResponse smart constructor.

Instances
Eq AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Data AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Methods

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

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

toConstr :: AssociateRouteTableResponse -> Constr #

dataTypeOf :: AssociateRouteTableResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Show AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Generic AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

Associated Types

type Rep AssociateRouteTableResponse :: Type -> Type #

NFData AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

type Rep AssociateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateRouteTable

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

Response Lenses

artrsAssociationId :: Lens' AssociateRouteTableResponse (Maybe Text) Source #

The route table association ID (needed to disassociate the route table).