amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.AttachClassicLinkVPC

Contents

Description

Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it.

After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

Linking your instance to a VPC is sometimes referred to as attaching your instance.

Synopsis

Creating a Request

attachClassicLinkVPC #

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

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

  • aclvDryRun - 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 .
  • aclvInstanceId - The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  • aclvVPCId - The ID of a ClassicLink-enabled VPC.
  • aclvGroups - The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

data AttachClassicLinkVPC #

Contains the parameters for AttachClassicLinkVpc.

See: attachClassicLinkVPC smart constructor.

Instances

Eq AttachClassicLinkVPC # 
Data AttachClassicLinkVPC # 

Methods

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

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

toConstr :: AttachClassicLinkVPC -> Constr #

dataTypeOf :: AttachClassicLinkVPC -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachClassicLinkVPC # 
Show AttachClassicLinkVPC # 
Generic AttachClassicLinkVPC # 
Hashable AttachClassicLinkVPC # 
NFData AttachClassicLinkVPC # 

Methods

rnf :: AttachClassicLinkVPC -> () #

AWSRequest AttachClassicLinkVPC # 
ToQuery AttachClassicLinkVPC # 
ToPath AttachClassicLinkVPC # 
ToHeaders AttachClassicLinkVPC # 
type Rep AttachClassicLinkVPC # 
type Rep AttachClassicLinkVPC = D1 (MetaData "AttachClassicLinkVPC" "Network.AWS.EC2.AttachClassicLinkVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "AttachClassicLinkVPC'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_aclvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_aclvInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_aclvVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_aclvGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))))
type Rs AttachClassicLinkVPC # 

Request Lenses

aclvDryRun :: Lens' AttachClassicLinkVPC (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 .

aclvInstanceId :: Lens' AttachClassicLinkVPC Text #

The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

aclvVPCId :: Lens' AttachClassicLinkVPC Text #

The ID of a ClassicLink-enabled VPC.

aclvGroups :: Lens' AttachClassicLinkVPC [Text] #

The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

Destructuring the Response

attachClassicLinkVPCResponse #

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

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

data AttachClassicLinkVPCResponse #

Contains the output of AttachClassicLinkVpc.

See: attachClassicLinkVPCResponse smart constructor.

Instances

Eq AttachClassicLinkVPCResponse # 
Data AttachClassicLinkVPCResponse # 

Methods

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

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

toConstr :: AttachClassicLinkVPCResponse -> Constr #

dataTypeOf :: AttachClassicLinkVPCResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachClassicLinkVPCResponse # 
Show AttachClassicLinkVPCResponse # 
Generic AttachClassicLinkVPCResponse # 
NFData AttachClassicLinkVPCResponse # 
type Rep AttachClassicLinkVPCResponse # 
type Rep AttachClassicLinkVPCResponse = D1 (MetaData "AttachClassicLinkVPCResponse" "Network.AWS.EC2.AttachClassicLinkVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "AttachClassicLinkVPCResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aclvrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_aclvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

aclvrsReturn :: Lens' AttachClassicLinkVPCResponse (Maybe Bool) #

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