Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- modifySpotFleetRequest :: Text -> ModifySpotFleetRequest
- data ModifySpotFleetRequest
- msfrTargetCapacity :: Lens' ModifySpotFleetRequest (Maybe Int)
- msfrExcessCapacityTerminationPolicy :: Lens' ModifySpotFleetRequest (Maybe ExcessCapacityTerminationPolicy)
- msfrSpotFleetRequestId :: Lens' ModifySpotFleetRequest Text
- modifySpotFleetRequestResponse :: Int -> ModifySpotFleetRequestResponse
- data ModifySpotFleetRequestResponse
- msfrrsReturn :: Lens' ModifySpotFleetRequestResponse (Maybe Bool)
- msfrrsResponseStatus :: Lens' ModifySpotFleetRequestResponse Int
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:
msfrTargetCapacity
- The size of the fleet.msfrExcessCapacityTerminationPolicy
- 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
- The ID of the Spot Fleet request.
data ModifySpotFleetRequest Source #
Contains the parameters for ModifySpotFleetRequest.
See: modifySpotFleetRequest
smart constructor.
Request Lenses
msfrTargetCapacity :: Lens' ModifySpotFleetRequest (Maybe Int) Source #
The size of the fleet.
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:
msfrrsReturn
- Istrue
if the request succeeds, and an error otherwise.msfrrsResponseStatus
- -- | The response status code.
data ModifySpotFleetRequestResponse Source #
Contains the output of ModifySpotFleetRequest.
See: modifySpotFleetRequestResponse
smart constructor.
Response Lenses
msfrrsReturn :: Lens' ModifySpotFleetRequestResponse (Maybe Bool) Source #
Is true
if the request succeeds, and an error otherwise.
msfrrsResponseStatus :: Lens' ModifySpotFleetRequestResponse Int Source #
- - | The response status code.