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

Contents

Description

Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

Synopsis

Creating a Request

restoreAddressToClassic #

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

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

  • ratcDryRun - 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 .
  • ratcPublicIP - The Elastic IP address.

data RestoreAddressToClassic #

Contains the parameters for RestoreAddressToClassic.

See: restoreAddressToClassic smart constructor.

Instances

Eq RestoreAddressToClassic # 
Data RestoreAddressToClassic # 

Methods

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

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

toConstr :: RestoreAddressToClassic -> Constr #

dataTypeOf :: RestoreAddressToClassic -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreAddressToClassic # 
Show RestoreAddressToClassic # 
Generic RestoreAddressToClassic # 
Hashable RestoreAddressToClassic # 
NFData RestoreAddressToClassic # 

Methods

rnf :: RestoreAddressToClassic -> () #

AWSRequest RestoreAddressToClassic # 
ToQuery RestoreAddressToClassic # 
ToPath RestoreAddressToClassic # 
ToHeaders RestoreAddressToClassic # 
type Rep RestoreAddressToClassic # 
type Rep RestoreAddressToClassic = D1 (MetaData "RestoreAddressToClassic" "Network.AWS.EC2.RestoreAddressToClassic" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RestoreAddressToClassic'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ratcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_ratcPublicIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs RestoreAddressToClassic # 

Request Lenses

ratcDryRun :: Lens' RestoreAddressToClassic (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 .

ratcPublicIP :: Lens' RestoreAddressToClassic Text #

The Elastic IP address.

Destructuring the Response

restoreAddressToClassicResponse #

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

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

data RestoreAddressToClassicResponse #

Contains the output of RestoreAddressToClassic.

See: restoreAddressToClassicResponse smart constructor.

Instances

Eq RestoreAddressToClassicResponse # 
Data RestoreAddressToClassicResponse # 

Methods

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

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

toConstr :: RestoreAddressToClassicResponse -> Constr #

dataTypeOf :: RestoreAddressToClassicResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreAddressToClassicResponse # 
Show RestoreAddressToClassicResponse # 
Generic RestoreAddressToClassicResponse # 
NFData RestoreAddressToClassicResponse # 
type Rep RestoreAddressToClassicResponse # 
type Rep RestoreAddressToClassicResponse = D1 (MetaData "RestoreAddressToClassicResponse" "Network.AWS.EC2.RestoreAddressToClassic" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "RestoreAddressToClassicResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ratcrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AddressStatus))) ((:*:) (S1 (MetaSel (Just Symbol "_ratcrsPublicIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ratcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

ratcrsStatus :: Lens' RestoreAddressToClassicResponse (Maybe AddressStatus) #

The move status for the IP address.