amazonka-ec2-1.6.1: 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.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 # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Data DetachClassicLinkVPC # 
Instance details

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

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Show DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Generic DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Associated Types

type Rep DetachClassicLinkVPC :: Type -> Type #

Hashable DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

AWSRequest DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Associated Types

type Rs DetachClassicLinkVPC :: Type #

ToHeaders DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

ToPath DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

ToQuery DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

NFData DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Methods

rnf :: DetachClassicLinkVPC -> () #

type Rep DetachClassicLinkVPC # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

type Rep DetachClassicLinkVPC = D1 (MetaData "DetachClassicLinkVPC" "Network.AWS.EC2.DetachClassicLinkVPC" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DetachClassicLinkVPC'" PrefixI True) (S1 (MetaSel (Just "_dclvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_dclvInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dclvVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DetachClassicLinkVPC # 
Instance details

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

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Data DetachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

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

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Show DetachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Generic DetachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

Associated Types

type Rep DetachClassicLinkVPCResponse :: Type -> Type #

NFData DetachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

type Rep DetachClassicLinkVPCResponse # 
Instance details

Defined in Network.AWS.EC2.DetachClassicLinkVPC

type Rep DetachClassicLinkVPCResponse = D1 (MetaData "DetachClassicLinkVPCResponse" "Network.AWS.EC2.DetachClassicLinkVPC" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DetachClassicLinkVPCResponse'" PrefixI True) (S1 (MetaSel (Just "_dclvrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dclvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dclvrsReturn :: Lens' DetachClassicLinkVPCResponse (Maybe Bool) #

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