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

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

data ModifyHosts Source #

Contains the parameters for ModifyHosts.

See: modifyHosts smart constructor.

Instances

Eq ModifyHosts Source # 
Data ModifyHosts Source # 

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 # 
Show ModifyHosts Source # 
Generic ModifyHosts Source # 

Associated Types

type Rep ModifyHosts :: * -> * #

Hashable ModifyHosts Source # 
NFData ModifyHosts Source # 

Methods

rnf :: ModifyHosts -> () #

AWSRequest ModifyHosts Source # 
ToPath ModifyHosts Source # 
ToHeaders ModifyHosts Source # 

Methods

toHeaders :: ModifyHosts -> [Header] #

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

Request Lenses

mhHostIds :: Lens' ModifyHosts [Text] Source #

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

mhAutoPlacement :: Lens' ModifyHosts AutoPlacement Source #

Specify whether to enable or disable auto-placement.

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 # 
Data ModifyHostsResponse Source # 

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 # 
Show ModifyHostsResponse Source # 
Generic ModifyHostsResponse Source # 
NFData ModifyHostsResponse Source # 

Methods

rnf :: ModifyHostsResponse -> () #

type Rep ModifyHostsResponse Source # 
type Rep ModifyHostsResponse = D1 (MetaData "ModifyHostsResponse" "Network.AWS.EC2.ModifyHosts" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "ModifyHostsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mhrsUnsuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UnsuccessfulItem]))) ((:*:) (S1 (MetaSel (Just Symbol "_mhrsSuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_mhrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (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.