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

data AttachClassicLinkVPC #

Contains the parameters for AttachClassicLinkVpc.

See: attachClassicLinkVPC smart constructor.

Instances
Eq AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Data AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Show AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Generic AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Associated Types

type Rep AttachClassicLinkVPC :: * -> * #

Hashable AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

AWSRequest AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Associated Types

type Rs AttachClassicLinkVPC :: * #

ToHeaders AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

ToPath AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

ToQuery AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

NFData AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Methods

rnf :: AttachClassicLinkVPC -> () #

type Rep AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

type Rep AttachClassicLinkVPC = D1 (MetaData "AttachClassicLinkVPC" "Network.AWS.EC2.AttachClassicLinkVPC" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "AttachClassicLinkVPC'" PrefixI True) ((S1 (MetaSel (Just "_aclvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_aclvGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])) :*: (S1 (MetaSel (Just "_aclvInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aclvVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.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 .

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.

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.

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

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Data AttachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

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

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Show AttachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Generic AttachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

Associated Types

type Rep AttachClassicLinkVPCResponse :: * -> * #

NFData AttachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

type Rep AttachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.AttachClassicLinkVPC

type Rep AttachClassicLinkVPCResponse = D1 (MetaData "AttachClassicLinkVPCResponse" "Network.AWS.EC2.AttachClassicLinkVPC" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "AttachClassicLinkVPCResponse'" PrefixI True) (S1 (MetaSel (Just "_aclvrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_aclvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

aclvrsReturn :: Lens' AttachClassicLinkVPCResponse (Maybe Bool) #

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