public static interface SpotOptions.Builder extends SdkPojo, CopyableBuilder<SpotOptions.Builder,SpotOptions>
Modifier and Type | Method and Description |
---|---|
SpotOptions.Builder |
allocationStrategy(SpotAllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request.
|
SpotOptions.Builder |
allocationStrategy(String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request.
|
SpotOptions.Builder |
instanceInterruptionBehavior(SpotInstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotOptions.Builder |
instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotOptions.Builder |
instancePoolsToUseCount(Integer instancePoolsToUseCount)
The number of Spot pools across which to allocate your target Spot capacity.
|
SpotOptions.Builder |
minTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for Spot Instances in the fleet.
|
SpotOptions.Builder |
singleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
|
copy
applyMutation, build
SpotOptions.Builder allocationStrategy(String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request. The
default is lowest-price
.
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet
request. The default is lowest-price
.SpotAllocationStrategy
,
SpotAllocationStrategy
SpotOptions.Builder allocationStrategy(SpotAllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request. The
default is lowest-price
.
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet
request. The default is lowest-price
.SpotAllocationStrategy
,
SpotAllocationStrategy
SpotOptions.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.SpotInstanceInterruptionBehavior
,
SpotInstanceInterruptionBehavior
SpotOptions.Builder instanceInterruptionBehavior(SpotInstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.SpotInstanceInterruptionBehavior
,
SpotInstanceInterruptionBehavior
SpotOptions.Builder instancePoolsToUseCount(Integer instancePoolsToUseCount)
The number of Spot pools across which to allocate your target Spot capacity. Valid only when
AllocationStrategy is set to lowestPrice
. EC2 Fleet selects the cheapest Spot pools and
evenly allocates your target Spot capacity across the number of Spot pools that you specify.
instancePoolsToUseCount
- The number of Spot pools across which to allocate your target Spot capacity. Valid only when
AllocationStrategy is set to lowestPrice
. EC2 Fleet selects the cheapest Spot
pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.SpotOptions.Builder singleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
singleInstanceType
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.SpotOptions.Builder minTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
minTargetCapacity
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not
reached, the fleet launches no instances.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.