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 #

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 #

Contains the parameters for CreateRouteTable.

See: createRouteTable smart constructor.

Instances
Eq CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

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

Defined in Network.AWS.EC2.CreateRouteTable

Show CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Generic CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Associated Types

type Rep CreateRouteTable :: Type -> Type #

Hashable CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

AWSRequest CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Associated Types

type Rs CreateRouteTable :: Type #

ToHeaders CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

ToPath CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

ToQuery CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

NFData CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Methods

rnf :: CreateRouteTable -> () #

type Rep CreateRouteTable # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

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

Defined in Network.AWS.EC2.CreateRouteTable

Request Lenses

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

crtVPCId :: Lens' CreateRouteTable Text #

The ID of the VPC.

Destructuring the Response

createRouteTableResponse #

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 #

Contains the output of CreateRouteTable.

See: createRouteTableResponse smart constructor.

Instances
Eq CreateRouteTableResponse # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

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

Defined in Network.AWS.EC2.CreateRouteTable

Show CreateRouteTableResponse # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Generic CreateRouteTableResponse # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

Associated Types

type Rep CreateRouteTableResponse :: Type -> Type #

NFData CreateRouteTableResponse # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

type Rep CreateRouteTableResponse # 
Instance details

Defined in Network.AWS.EC2.CreateRouteTable

type Rep CreateRouteTableResponse = D1 (MetaData "CreateRouteTableResponse" "Network.AWS.EC2.CreateRouteTable" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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) #

Information about the route table.

crtrsResponseStatus :: Lens' CreateRouteTableResponse Int #

  • - | The response status code.