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

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 #

Contains the parameters for MoveAddressToVpc.

See: moveAddressToVPC smart constructor.

Instances

Eq MoveAddressToVPC # 
Data MoveAddressToVPC # 

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

Methods

rnf :: MoveAddressToVPC -> () #

AWSRequest MoveAddressToVPC # 
ToQuery MoveAddressToVPC # 
ToPath MoveAddressToVPC # 
ToHeaders MoveAddressToVPC # 
type Rep MoveAddressToVPC # 
type Rep MoveAddressToVPC = D1 (MetaData "MoveAddressToVPC" "Network.AWS.EC2.MoveAddressToVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

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

matvPublicIP :: Lens' MoveAddressToVPC Text #

The Elastic IP address.

Destructuring the Response

moveAddressToVPCResponse #

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 #

Contains the output of MoveAddressToVpc.

See: moveAddressToVPCResponse smart constructor.

Instances

Eq MoveAddressToVPCResponse # 
Data MoveAddressToVPCResponse # 

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 # 
Show MoveAddressToVPCResponse # 
Generic MoveAddressToVPCResponse # 
NFData MoveAddressToVPCResponse # 
type Rep MoveAddressToVPCResponse # 
type Rep MoveAddressToVPCResponse = D1 (MetaData "MoveAddressToVPCResponse" "Network.AWS.EC2.MoveAddressToVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses

matvrsStatus :: Lens' MoveAddressToVPCResponse (Maybe AddressStatus) #

The status of the move of the IP address.

matvrsAllocationId :: Lens' MoveAddressToVPCResponse (Maybe Text) #

The allocation ID for the Elastic IP address.

matvrsResponseStatus :: Lens' MoveAddressToVPCResponse Int #

  • - | The response status code.