amazonka-ec2-1.5.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2017 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.MoveAddressToVPC

Contents

Description

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

Synopsis

Creating a Request

moveAddressToVPC Source #

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

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

  • matvDryRun - 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 .
  • matvPublicIP - The Elastic IP address.

data MoveAddressToVPC Source #

Contains the parameters for MoveAddressToVpc.

See: moveAddressToVPC smart constructor.

Instances

Eq MoveAddressToVPC Source # 
Data MoveAddressToVPC Source # 

Methods

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

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

toConstr :: MoveAddressToVPC -> Constr #

dataTypeOf :: MoveAddressToVPC -> DataType #

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

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

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

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

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

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

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

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

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

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

Read MoveAddressToVPC Source # 
Show MoveAddressToVPC Source # 
Generic MoveAddressToVPC Source # 
Hashable MoveAddressToVPC Source # 
NFData MoveAddressToVPC Source # 

Methods

rnf :: MoveAddressToVPC -> () #

AWSRequest MoveAddressToVPC Source # 
ToQuery MoveAddressToVPC Source # 
ToPath MoveAddressToVPC Source # 
ToHeaders MoveAddressToVPC Source # 
type Rep MoveAddressToVPC Source # 
type Rep MoveAddressToVPC = D1 (MetaData "MoveAddressToVPC" "Network.AWS.EC2.MoveAddressToVPC" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "MoveAddressToVPC'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_matvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_matvPublicIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs MoveAddressToVPC Source # 

Request Lenses

matvDryRun :: Lens' MoveAddressToVPC (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 .

matvPublicIP :: Lens' MoveAddressToVPC Text Source #

The Elastic IP address.

Destructuring the Response

moveAddressToVPCResponse Source #

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

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

data MoveAddressToVPCResponse Source #

Contains the output of MoveAddressToVpc.

See: moveAddressToVPCResponse smart constructor.

Instances

Eq MoveAddressToVPCResponse Source # 
Data MoveAddressToVPCResponse Source # 

Methods

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

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

toConstr :: MoveAddressToVPCResponse -> Constr #

dataTypeOf :: MoveAddressToVPCResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read MoveAddressToVPCResponse Source # 
Show MoveAddressToVPCResponse Source # 
Generic MoveAddressToVPCResponse Source # 
NFData MoveAddressToVPCResponse Source # 
type Rep MoveAddressToVPCResponse Source # 
type Rep MoveAddressToVPCResponse = D1 (MetaData "MoveAddressToVPCResponse" "Network.AWS.EC2.MoveAddressToVPC" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "MoveAddressToVPCResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_matvrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AddressStatus))) ((:*:) (S1 (MetaSel (Just Symbol "_matvrsAllocationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_matvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

matvrsStatus :: Lens' MoveAddressToVPCResponse (Maybe AddressStatus) Source #

The status of the move of the IP address.

matvrsAllocationId :: Lens' MoveAddressToVPCResponse (Maybe Text) Source #

The allocation ID for the Elastic IP address.