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

Contents

Description

Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, AWS will place instances that you launch with a tenancy of host , but without targeting a specific host ID, onto any available Dedicated Host in your account which has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID if you want the instance to launch onto a specific host. If no host ID is provided, the instance will be launched onto a suitable host which has auto-placement enabled.

Synopsis

Creating a Request

modifyHosts Source #

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

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

  • mhAutoPlacement - Specify whether to enable or disable auto-placement.
  • mhHostIds - The host IDs of the Dedicated Hosts you want to modify.

data ModifyHosts Source #

Contains the parameters for ModifyHosts.

See: modifyHosts smart constructor.

Instances
Eq ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Data ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Methods

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

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

toConstr :: ModifyHosts -> Constr #

dataTypeOf :: ModifyHosts -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Show ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Generic ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Associated Types

type Rep ModifyHosts :: Type -> Type #

Hashable ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

AWSRequest ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Associated Types

type Rs ModifyHosts :: Type #

ToHeaders ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Methods

toHeaders :: ModifyHosts -> [Header] #

ToPath ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

ToQuery ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

NFData ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Methods

rnf :: ModifyHosts -> () #

type Rep ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

type Rep ModifyHosts = D1 (MetaData "ModifyHosts" "Network.AWS.EC2.ModifyHosts" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyHosts'" PrefixI True) (S1 (MetaSel (Just "_mhAutoPlacement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AutoPlacement) :*: S1 (MetaSel (Just "_mhHostIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))
type Rs ModifyHosts Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Request Lenses

mhAutoPlacement :: Lens' ModifyHosts AutoPlacement Source #

Specify whether to enable or disable auto-placement.

mhHostIds :: Lens' ModifyHosts [Text] Source #

The host IDs of the Dedicated Hosts you want to modify.

Destructuring the Response

modifyHostsResponse Source #

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

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

  • mhrsUnsuccessful - The IDs of the Dedicated Hosts that could not be modified. Check whether the setting you requested can be used.
  • mhrsSuccessful - The IDs of the Dedicated Hosts that were successfully modified.
  • mhrsResponseStatus - -- | The response status code.

data ModifyHostsResponse Source #

Contains the output of ModifyHosts.

See: modifyHostsResponse smart constructor.

Instances
Eq ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Data ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Methods

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

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

toConstr :: ModifyHostsResponse -> Constr #

dataTypeOf :: ModifyHostsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Show ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Generic ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Associated Types

type Rep ModifyHostsResponse :: Type -> Type #

NFData ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

Methods

rnf :: ModifyHostsResponse -> () #

type Rep ModifyHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyHosts

type Rep ModifyHostsResponse = D1 (MetaData "ModifyHostsResponse" "Network.AWS.EC2.ModifyHosts" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyHostsResponse'" PrefixI True) (S1 (MetaSel (Just "_mhrsUnsuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UnsuccessfulItem])) :*: (S1 (MetaSel (Just "_mhrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_mhrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

mhrsUnsuccessful :: Lens' ModifyHostsResponse [UnsuccessfulItem] Source #

The IDs of the Dedicated Hosts that could not be modified. Check whether the setting you requested can be used.

mhrsSuccessful :: Lens' ModifyHostsResponse [Text] Source #

The IDs of the Dedicated Hosts that were successfully modified.

mhrsResponseStatus :: Lens' ModifyHostsResponse Int Source #

  • - | The response status code.