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

Contents

Description

When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, e.g., ModifyHosts. You must stop or terminate all instances on a host before it can be released.

When Dedicated Hosts are released, it make take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated hosts. Try waiting a few minutes, and then try again.

Released hosts will still appear in a DescribeHosts response.

Synopsis

Creating a Request

releaseHosts :: ReleaseHosts Source #

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

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

  • rhHostIds - The IDs of the Dedicated Hosts you want to release.

data ReleaseHosts Source #

Contains the parameters for ReleaseHosts.

See: releaseHosts smart constructor.

Instances

Eq ReleaseHosts Source # 
Data ReleaseHosts Source # 

Methods

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

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

toConstr :: ReleaseHosts -> Constr #

dataTypeOf :: ReleaseHosts -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReleaseHosts Source # 
Show ReleaseHosts Source # 
Generic ReleaseHosts Source # 

Associated Types

type Rep ReleaseHosts :: * -> * #

Hashable ReleaseHosts Source # 
NFData ReleaseHosts Source # 

Methods

rnf :: ReleaseHosts -> () #

AWSRequest ReleaseHosts Source # 
ToQuery ReleaseHosts Source # 
ToPath ReleaseHosts Source # 
ToHeaders ReleaseHosts Source # 
type Rep ReleaseHosts Source # 
type Rep ReleaseHosts = D1 (MetaData "ReleaseHosts" "Network.AWS.EC2.ReleaseHosts" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" True) (C1 (MetaCons "ReleaseHosts'" PrefixI True) (S1 (MetaSel (Just Symbol "_rhHostIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type Rs ReleaseHosts Source # 

Request Lenses

rhHostIds :: Lens' ReleaseHosts [Text] Source #

The IDs of the Dedicated Hosts you want to release.

Destructuring the Response

releaseHostsResponse Source #

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

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

data ReleaseHostsResponse Source #

Contains the output of ReleaseHosts.

See: releaseHostsResponse smart constructor.

Instances

Eq ReleaseHostsResponse Source # 
Data ReleaseHostsResponse Source # 

Methods

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

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

toConstr :: ReleaseHostsResponse -> Constr #

dataTypeOf :: ReleaseHostsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReleaseHostsResponse Source # 
Show ReleaseHostsResponse Source # 
Generic ReleaseHostsResponse Source # 
NFData ReleaseHostsResponse Source # 

Methods

rnf :: ReleaseHostsResponse -> () #

type Rep ReleaseHostsResponse Source # 
type Rep ReleaseHostsResponse = D1 (MetaData "ReleaseHostsResponse" "Network.AWS.EC2.ReleaseHosts" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "ReleaseHostsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rhrsUnsuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UnsuccessfulItem]))) ((:*:) (S1 (MetaSel (Just Symbol "_rhrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_rhrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

rhrsUnsuccessful :: Lens' ReleaseHostsResponse [UnsuccessfulItem] Source #

The IDs of the Dedicated Hosts that could not be released, including an error message.

rhrsSuccessful :: Lens' ReleaseHostsResponse [Text] Source #

The IDs of the Dedicated Hosts that were successfully released.

rhrsResponseStatus :: Lens' ReleaseHostsResponse Int Source #

  • - | The response status code.