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

Contents

Description

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

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

Synopsis

Creating a Request

createRouteTable Source #

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

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

  • crtDryRun - 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 .
  • crtVPCId - The ID of the VPC.

data CreateRouteTable Source #

Contains the parameters for CreateRouteTable.

See: createRouteTable smart constructor.

Instances
Eq CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Data CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Methods

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

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

toConstr :: CreateRouteTable -> Constr #

dataTypeOf :: CreateRouteTable -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Show CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Generic CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Associated Types

type Rep CreateRouteTable :: Type -> Type #

Hashable CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

AWSRequest CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Associated Types

type Rs CreateRouteTable :: Type #

ToHeaders CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

ToPath CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

ToQuery CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

NFData CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Methods

rnf :: CreateRouteTable -> () #

type Rep CreateRouteTable Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

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

Defined in Network.AWS.EC2.CreateRouteTable

Request Lenses

crtDryRun :: Lens' CreateRouteTable (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 .

Destructuring the Response

createRouteTableResponse Source #

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

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

data CreateRouteTableResponse Source #

Contains the output of CreateRouteTable.

See: createRouteTableResponse smart constructor.

Instances
Eq CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Data CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Methods

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

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

toConstr :: CreateRouteTableResponse -> Constr #

dataTypeOf :: CreateRouteTableResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Show CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Generic CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Associated Types

type Rep CreateRouteTableResponse :: Type -> Type #

NFData CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

type Rep CreateRouteTableResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

type Rep CreateRouteTableResponse = D1 (MetaData "CreateRouteTableResponse" "Network.AWS.EC2.CreateRouteTable" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateRouteTableResponse'" PrefixI True) (S1 (MetaSel (Just "_crtrsRouteTable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RouteTable)) :*: S1 (MetaSel (Just "_crtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

crtrsRouteTable :: Lens' CreateRouteTableResponse (Maybe RouteTable) Source #

Information about the route table.