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

Contents

Description

Disassociates an Elastic IP address from the instance or network interface it's associated with.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide .

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

Synopsis

Creating a Request

disassociateAddress :: DisassociateAddress #

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

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

  • dasAssociationId - [EC2-VPC] The association ID. Required for EC2-VPC.
  • dasPublicIP - [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  • dasDryRun - 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 .

data DisassociateAddress #

Contains the parameters for DisassociateAddress.

See: disassociateAddress smart constructor.

Instances

Eq DisassociateAddress # 
Data DisassociateAddress # 

Methods

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

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

toConstr :: DisassociateAddress -> Constr #

dataTypeOf :: DisassociateAddress -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DisassociateAddress # 
Show DisassociateAddress # 
Generic DisassociateAddress # 
Hashable DisassociateAddress # 
NFData DisassociateAddress # 

Methods

rnf :: DisassociateAddress -> () #

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

Request Lenses

dasAssociationId :: Lens' DisassociateAddress (Maybe Text) #

EC2-VPC
The association ID. Required for EC2-VPC.

dasPublicIP :: Lens' DisassociateAddress (Maybe Text) #

EC2-Classic
The Elastic IP address. Required for EC2-Classic.

dasDryRun :: Lens' DisassociateAddress (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 .

Destructuring the Response

disassociateAddressResponse :: DisassociateAddressResponse #

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

data DisassociateAddressResponse #

See: disassociateAddressResponse smart constructor.

Instances

Eq DisassociateAddressResponse # 
Data DisassociateAddressResponse # 

Methods

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

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

toConstr :: DisassociateAddressResponse -> Constr #

dataTypeOf :: DisassociateAddressResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DisassociateAddressResponse # 
Show DisassociateAddressResponse # 
Generic DisassociateAddressResponse # 
NFData DisassociateAddressResponse # 
type Rep DisassociateAddressResponse # 
type Rep DisassociateAddressResponse = D1 (MetaData "DisassociateAddressResponse" "Network.AWS.EC2.DisassociateAddress" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DisassociateAddressResponse'" PrefixI False) U1)