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 #

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 #

Contains the parameters for ModifySpotFleetRequest.

See: modifySpotFleetRequest smart constructor.

Instances

Eq ModifySpotFleetRequest # 
Data ModifySpotFleetRequest # 

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 # 
Show ModifySpotFleetRequest # 
Generic ModifySpotFleetRequest # 
Hashable ModifySpotFleetRequest # 
NFData ModifySpotFleetRequest # 

Methods

rnf :: ModifySpotFleetRequest -> () #

AWSRequest ModifySpotFleetRequest # 
ToHeaders ModifySpotFleetRequest # 
ToPath ModifySpotFleetRequest # 
ToQuery ModifySpotFleetRequest # 
type Rep ModifySpotFleetRequest # 
type Rep ModifySpotFleetRequest = D1 * (MetaData "ModifySpotFleetRequest" "Network.AWS.EC2.ModifySpotFleetRequest" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

msfrExcessCapacityTerminationPolicy :: Lens' ModifySpotFleetRequest (Maybe ExcessCapacityTerminationPolicy) #

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 #

The ID of the Spot Fleet request.

Destructuring the Response

modifySpotFleetRequestResponse #

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 #

Contains the output of ModifySpotFleetRequest.

See: modifySpotFleetRequestResponse smart constructor.

Instances

Eq ModifySpotFleetRequestResponse # 
Data ModifySpotFleetRequestResponse # 

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 # 
Show ModifySpotFleetRequestResponse # 
Generic ModifySpotFleetRequestResponse # 
NFData ModifySpotFleetRequestResponse # 
type Rep ModifySpotFleetRequestResponse # 
type Rep ModifySpotFleetRequestResponse = D1 * (MetaData "ModifySpotFleetRequestResponse" "Network.AWS.EC2.ModifySpotFleetRequest" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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) #

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