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 Source #

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 Source #

Contains the parameters for DetachClassicLinkVpc.

See: detachClassicLinkVPC smart constructor.

Instances

Eq DetachClassicLinkVPC Source # 
Data DetachClassicLinkVPC Source # 

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 Source # 
Show DetachClassicLinkVPC Source # 
Generic DetachClassicLinkVPC Source # 
Hashable DetachClassicLinkVPC Source # 
NFData DetachClassicLinkVPC Source # 

Methods

rnf :: DetachClassicLinkVPC -> () #

AWSRequest DetachClassicLinkVPC Source # 
ToPath DetachClassicLinkVPC Source # 
ToHeaders DetachClassicLinkVPC Source # 
ToQuery DetachClassicLinkVPC Source # 
type Rep DetachClassicLinkVPC Source # 
type Rep DetachClassicLinkVPC = D1 (MetaData "DetachClassicLinkVPC" "Network.AWS.EC2.DetachClassicLinkVPC" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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 Source # 

Request Lenses

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

dclvInstanceId :: Lens' DetachClassicLinkVPC Text Source #

The ID of the instance to unlink from the VPC.

dclvVPCId :: Lens' DetachClassicLinkVPC Text Source #

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

Destructuring the Response

detachClassicLinkVPCResponse Source #

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 Source #

Contains the output of DetachClassicLinkVpc.

See: detachClassicLinkVPCResponse smart constructor.

Instances

Eq DetachClassicLinkVPCResponse Source # 
Data DetachClassicLinkVPCResponse Source # 

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 Source # 
Show DetachClassicLinkVPCResponse Source # 
Generic DetachClassicLinkVPCResponse Source # 
NFData DetachClassicLinkVPCResponse Source # 
type Rep DetachClassicLinkVPCResponse Source # 
type Rep DetachClassicLinkVPCResponse = D1 (MetaData "DetachClassicLinkVPCResponse" "Network.AWS.EC2.DetachClassicLinkVPC" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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) Source #

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