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 #

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

Defined in Network.AWS.EC2.DisassociateAddress

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

Defined in Network.AWS.EC2.DisassociateAddress

Show DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Generic DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Associated Types

type Rep DisassociateAddress :: Type -> Type #

Hashable DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

AWSRequest DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Associated Types

type Rs DisassociateAddress :: Type #

ToHeaders DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

ToPath DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

ToQuery DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

NFData DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Methods

rnf :: DisassociateAddress -> () #

type Rep DisassociateAddress # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

type Rep DisassociateAddress = D1 (MetaData "DisassociateAddress" "Network.AWS.EC2.DisassociateAddress" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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 # 
Instance details

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

Defined in Network.AWS.EC2.DisassociateAddress

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

Defined in Network.AWS.EC2.DisassociateAddress

Show DisassociateAddressResponse # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Generic DisassociateAddressResponse # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

Associated Types

type Rep DisassociateAddressResponse :: Type -> Type #

NFData DisassociateAddressResponse # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

type Rep DisassociateAddressResponse # 
Instance details

Defined in Network.AWS.EC2.DisassociateAddress

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