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

Defined in Network.AWS.EC2.ReleaseHosts

Data ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

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

Defined in Network.AWS.EC2.ReleaseHosts

Show ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Generic ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Associated Types

type Rep ReleaseHosts :: Type -> Type #

Hashable ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

AWSRequest ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Associated Types

type Rs ReleaseHosts :: Type #

ToHeaders ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

ToPath ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

ToQuery ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

NFData ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Methods

rnf :: ReleaseHosts -> () #

type Rep ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

type Rep ReleaseHosts = D1 (MetaData "ReleaseHosts" "Network.AWS.EC2.ReleaseHosts" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" True) (C1 (MetaCons "ReleaseHosts'" PrefixI True) (S1 (MetaSel (Just "_rhHostIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type Rs ReleaseHosts Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

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

Defined in Network.AWS.EC2.ReleaseHosts

Data ReleaseHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

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

Defined in Network.AWS.EC2.ReleaseHosts

Show ReleaseHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Generic ReleaseHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Associated Types

type Rep ReleaseHostsResponse :: Type -> Type #

NFData ReleaseHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

Methods

rnf :: ReleaseHostsResponse -> () #

type Rep ReleaseHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReleaseHosts

type Rep ReleaseHostsResponse = D1 (MetaData "ReleaseHostsResponse" "Network.AWS.EC2.ReleaseHosts" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReleaseHostsResponse'" PrefixI True) (S1 (MetaSel (Just "_rhrsUnsuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UnsuccessfulItem])) :*: (S1 (MetaSel (Just "_rhrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_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.