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

Contents

Description

Modifies the specified Spot fleet request.

While the Spot fleet request is being modified, it is in the modifying state.

To scale up your Spot fleet, increase its target capacity. The Spot fleet launches the additional Spot instances according to the allocation strategy for the Spot fleet request. If the allocation strategy is lowestPrice , the Spot fleet launches instances using the Spot pool with the lowest price. If the allocation strategy is diversified , the Spot fleet distributes the instances across the Spot pools.

To scale down your Spot fleet, decrease its target capacity. First, the Spot fleet cancels any open bids that exceed the new target capacity. You can request that the Spot fleet terminate Spot instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice , the Spot fleet terminates the instances with the highest price per unit. If the allocation strategy is diversified , the Spot fleet terminates instances across the Spot pools. Alternatively, you can request that the Spot fleet keep the fleet at its current size, but not replace any Spot instances that are interrupted or that you terminate manually.

Synopsis

Creating a Request

modifySpotFleetRequest Source #

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

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

data ModifySpotFleetRequest Source #

Contains the parameters for ModifySpotFleetRequest.

See: modifySpotFleetRequest smart constructor.

Instances

Eq ModifySpotFleetRequest Source # 
Data ModifySpotFleetRequest Source # 

Methods

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

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

toConstr :: ModifySpotFleetRequest -> Constr #

dataTypeOf :: ModifySpotFleetRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifySpotFleetRequest Source # 
Show ModifySpotFleetRequest Source # 
Generic ModifySpotFleetRequest Source # 
Hashable ModifySpotFleetRequest Source # 
NFData ModifySpotFleetRequest Source # 

Methods

rnf :: ModifySpotFleetRequest -> () #

AWSRequest ModifySpotFleetRequest Source # 
ToPath ModifySpotFleetRequest Source # 
ToHeaders ModifySpotFleetRequest Source # 
ToQuery ModifySpotFleetRequest Source # 
type Rep ModifySpotFleetRequest Source # 
type Rep ModifySpotFleetRequest = D1 (MetaData "ModifySpotFleetRequest" "Network.AWS.EC2.ModifySpotFleetRequest" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "ModifySpotFleetRequest'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_msfrTargetCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) ((:*:) (S1 (MetaSel (Just Symbol "_msfrExcessCapacityTerminationPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ExcessCapacityTerminationPolicy))) (S1 (MetaSel (Just Symbol "_msfrSpotFleetRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ModifySpotFleetRequest Source # 

Request Lenses

msfrExcessCapacityTerminationPolicy :: Lens' ModifySpotFleetRequest (Maybe ExcessCapacityTerminationPolicy) Source #

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

msfrSpotFleetRequestId :: Lens' ModifySpotFleetRequest Text Source #

The ID of the Spot fleet request.

Destructuring the Response

modifySpotFleetRequestResponse Source #

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

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

data ModifySpotFleetRequestResponse Source #

Contains the output of ModifySpotFleetRequest.

See: modifySpotFleetRequestResponse smart constructor.

Instances

Eq ModifySpotFleetRequestResponse Source # 
Data ModifySpotFleetRequestResponse Source # 

Methods

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

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

toConstr :: ModifySpotFleetRequestResponse -> Constr #

dataTypeOf :: ModifySpotFleetRequestResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifySpotFleetRequestResponse Source # 
Show ModifySpotFleetRequestResponse Source # 
Generic ModifySpotFleetRequestResponse Source # 
NFData ModifySpotFleetRequestResponse Source # 
type Rep ModifySpotFleetRequestResponse Source # 
type Rep ModifySpotFleetRequestResponse = D1 (MetaData "ModifySpotFleetRequestResponse" "Network.AWS.EC2.ModifySpotFleetRequest" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "ModifySpotFleetRequestResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_msfrrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_msfrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

msfrrsReturn :: Lens' ModifySpotFleetRequestResponse (Maybe Bool) Source #

Is true if the request succeeds, and an error otherwise.