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

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

Contains the parameters for DisassociateAddress.

See: disassociateAddress smart constructor.

Instances
Eq DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Data DisassociateAddress Source # 
Instance details

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

Defined in Network.AWS.EC2.DisassociateAddress

Show DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Generic DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Associated Types

type Rep DisassociateAddress :: Type -> Type #

Hashable DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

AWSRequest DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Associated Types

type Rs DisassociateAddress :: Type #

ToHeaders DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

ToPath DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

ToQuery DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

NFData DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Methods

rnf :: DisassociateAddress -> () #

type Rep DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

type Rep DisassociateAddress = D1 (MetaData "DisassociateAddress" "Network.AWS.EC2.DisassociateAddress" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DisassociateAddress'" PrefixI True) (S1 (MetaSel (Just "_dasAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dasPublicIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dasDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Rs DisassociateAddress Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

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

Defined in Network.AWS.EC2.DisassociateAddress

Data DisassociateAddressResponse Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

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

Defined in Network.AWS.EC2.DisassociateAddress

Show DisassociateAddressResponse Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Generic DisassociateAddressResponse Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Associated Types

type Rep DisassociateAddressResponse :: Type -> Type #

NFData DisassociateAddressResponse Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

type Rep DisassociateAddressResponse Source # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

type Rep DisassociateAddressResponse = D1 (MetaData "DisassociateAddressResponse" "Network.AWS.EC2.DisassociateAddress" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DisassociateAddressResponse'" PrefixI False) (U1 :: Type -> Type))