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

Contents

Description

Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC's route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

enableVPCClassicLink Source #

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

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

  • evclDryRun - 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 .
  • evclVPCId - The ID of the VPC.

data EnableVPCClassicLink Source #

Contains the parameters for EnableVpcClassicLink.

See: enableVPCClassicLink smart constructor.

Request Lenses

evclDryRun :: Lens' EnableVPCClassicLink (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

enableVPCClassicLinkResponse Source #

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

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

data EnableVPCClassicLinkResponse Source #

Contains the output of EnableVpcClassicLink.

See: enableVPCClassicLinkResponse smart constructor.

Instances

Eq EnableVPCClassicLinkResponse Source # 
Data EnableVPCClassicLinkResponse Source # 

Methods

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

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

toConstr :: EnableVPCClassicLinkResponse -> Constr #

dataTypeOf :: EnableVPCClassicLinkResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EnableVPCClassicLinkResponse Source # 
Show EnableVPCClassicLinkResponse Source # 
Generic EnableVPCClassicLinkResponse Source # 
NFData EnableVPCClassicLinkResponse Source # 
type Rep EnableVPCClassicLinkResponse Source # 
type Rep EnableVPCClassicLinkResponse = D1 * (MetaData "EnableVPCClassicLinkResponse" "Network.AWS.EC2.EnableVPCClassicLink" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "EnableVPCClassicLinkResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_evclrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_evclrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

evclrsReturn :: Lens' EnableVPCClassicLinkResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.