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

Defined in Network.AWS.EC2.MoveAddressToVPC

Data MoveAddressToVPC Source # 
Instance details

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

Defined in Network.AWS.EC2.MoveAddressToVPC

Show MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

Generic MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

Associated Types

type Rep MoveAddressToVPC :: Type -> Type #

Hashable MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

AWSRequest MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

Associated Types

type Rs MoveAddressToVPC :: Type #

ToHeaders MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

ToPath MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

ToQuery MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

NFData MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

Methods

rnf :: MoveAddressToVPC -> () #

type Rep MoveAddressToVPC Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

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

Defined in Network.AWS.EC2.MoveAddressToVPC

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

Defined in Network.AWS.EC2.MoveAddressToVPC

Data MoveAddressToVPCResponse Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

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

Defined in Network.AWS.EC2.MoveAddressToVPC

Show MoveAddressToVPCResponse Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

Generic MoveAddressToVPCResponse Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

Associated Types

type Rep MoveAddressToVPCResponse :: Type -> Type #

NFData MoveAddressToVPCResponse Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

type Rep MoveAddressToVPCResponse Source # 
Instance details

Defined in Network.AWS.EC2.MoveAddressToVPC

type Rep MoveAddressToVPCResponse = D1 (MetaData "MoveAddressToVPCResponse" "Network.AWS.EC2.MoveAddressToVPC" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "MoveAddressToVPCResponse'" PrefixI True) (S1 (MetaSel (Just "_matvrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AddressStatus)) :*: (S1 (MetaSel (Just "_matvrsAllocationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.