amazonka-ec2-1.6.0: 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.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 requests 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.

If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

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 # 
ToHeaders ModifySpotFleetRequest Source # 
ToPath ModifySpotFleetRequest Source # 
ToQuery ModifySpotFleetRequest Source # 
type Rep ModifySpotFleetRequest Source # 
type Rep ModifySpotFleetRequest = D1 * (MetaData "ModifySpotFleetRequest" "Network.AWS.EC2.ModifySpotFleetRequest" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ModifySpotFleetRequestResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_msfrrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_msfrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

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

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