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

Contents

Description

Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.

Synopsis

Creating a Request

detachClassicLinkVPC #

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

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

  • dclvDryRun - 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 .
  • dclvInstanceId - The ID of the instance to unlink from the VPC.
  • dclvVPCId - The ID of the VPC to which the instance is linked.

data DetachClassicLinkVPC #

Contains the parameters for DetachClassicLinkVpc.

See: detachClassicLinkVPC smart constructor.

Instances

Eq DetachClassicLinkVPC # 
Data DetachClassicLinkVPC # 

Methods

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

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

toConstr :: DetachClassicLinkVPC -> Constr #

dataTypeOf :: DetachClassicLinkVPC -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachClassicLinkVPC # 
Show DetachClassicLinkVPC # 
Generic DetachClassicLinkVPC # 
Hashable DetachClassicLinkVPC # 
NFData DetachClassicLinkVPC # 

Methods

rnf :: DetachClassicLinkVPC -> () #

AWSRequest DetachClassicLinkVPC # 
ToQuery DetachClassicLinkVPC # 
ToPath DetachClassicLinkVPC # 
ToHeaders DetachClassicLinkVPC # 
type Rep DetachClassicLinkVPC # 
type Rep DetachClassicLinkVPC = D1 (MetaData "DetachClassicLinkVPC" "Network.AWS.EC2.DetachClassicLinkVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DetachClassicLinkVPC'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dclvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dclvInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dclvVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DetachClassicLinkVPC # 

Request Lenses

dclvDryRun :: Lens' DetachClassicLinkVPC (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 .

dclvInstanceId :: Lens' DetachClassicLinkVPC Text #

The ID of the instance to unlink from the VPC.

dclvVPCId :: Lens' DetachClassicLinkVPC Text #

The ID of the VPC to which the instance is linked.

Destructuring the Response

detachClassicLinkVPCResponse #

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

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

data DetachClassicLinkVPCResponse #

Contains the output of DetachClassicLinkVpc.

See: detachClassicLinkVPCResponse smart constructor.

Instances

Eq DetachClassicLinkVPCResponse # 
Data DetachClassicLinkVPCResponse # 

Methods

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

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

toConstr :: DetachClassicLinkVPCResponse -> Constr #

dataTypeOf :: DetachClassicLinkVPCResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

dclvrsReturn :: Lens' DetachClassicLinkVPCResponse (Maybe Bool) #

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