amazonka-ec2-1.4.4: 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 Source #

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:

data DisassociateAddress Source #

Contains the parameters for DisassociateAddress.

See: disassociateAddress smart constructor.

Instances

Eq DisassociateAddress Source # 
Data DisassociateAddress Source # 

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

Methods

rnf :: DisassociateAddress -> () #

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

Request Lenses

dasAssociationId :: Lens' DisassociateAddress (Maybe Text) Source #

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

dasPublicIP :: Lens' DisassociateAddress (Maybe Text) Source #

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

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

Destructuring the Response

disassociateAddressResponse :: DisassociateAddressResponse Source #

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

data DisassociateAddressResponse Source #

See: disassociateAddressResponse smart constructor.

Instances

Eq DisassociateAddressResponse Source # 
Data DisassociateAddressResponse Source # 

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 Source # 
Show DisassociateAddressResponse Source # 
Generic DisassociateAddressResponse Source # 
NFData DisassociateAddressResponse Source # 
type Rep DisassociateAddressResponse Source # 
type Rep DisassociateAddressResponse = D1 (MetaData "DisassociateAddressResponse" "Network.AWS.EC2.DisassociateAddress" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" False) (C1 (MetaCons "DisassociateAddressResponse'" PrefixI False) U1)