public static interface SpotOptionsRequest.Builder extends SdkPojo, CopyableBuilder<SpotOptionsRequest.Builder,SpotOptionsRequest>
| Modifier and Type | Method and Description |
|---|---|
SpotOptionsRequest.Builder |
allocationStrategy(SpotAllocationStrategy allocationStrategy)
Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the
EC2 Fleet.
|
SpotOptionsRequest.Builder |
allocationStrategy(String allocationStrategy)
Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the
EC2 Fleet.
|
SpotOptionsRequest.Builder |
instanceInterruptionBehavior(SpotInstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotOptionsRequest.Builder |
instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotOptionsRequest.Builder |
instancePoolsToUseCount(Integer instancePoolsToUseCount)
The number of Spot pools across which to allocate your target Spot capacity.
|
SpotOptionsRequest.Builder |
maxTotalPrice(String maxTotalPrice)
The maximum amount per hour for Spot Instances that you're willing to pay.
|
SpotOptionsRequest.Builder |
minTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for Spot Instances in the fleet.
|
SpotOptionsRequest.Builder |
singleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all Spot Instances into a single Availability Zone.
|
SpotOptionsRequest.Builder |
singleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSpotOptionsRequest.Builder allocationStrategy(String allocationStrategy)
Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.
If the allocation strategy is lowest-price, EC2 Fleet launches instances from the Spot Instance
pools with the lowest price. This is the default allocation strategy.
If the allocation strategy is diversified, EC2 Fleet launches instances from all of the Spot
Instance pools that you specify.
If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot
Instance pools with optimal capacity for the number of instances that are launching.
allocationStrategy - Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified
by the EC2 Fleet.
If the allocation strategy is lowest-price, EC2 Fleet launches instances from the Spot
Instance pools with the lowest price. This is the default allocation strategy.
If the allocation strategy is diversified, EC2 Fleet launches instances from all of the
Spot Instance pools that you specify.
If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot
Instance pools with optimal capacity for the number of instances that are launching.
SpotAllocationStrategy,
SpotAllocationStrategySpotOptionsRequest.Builder allocationStrategy(SpotAllocationStrategy allocationStrategy)
Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.
If the allocation strategy is lowest-price, EC2 Fleet launches instances from the Spot Instance
pools with the lowest price. This is the default allocation strategy.
If the allocation strategy is diversified, EC2 Fleet launches instances from all of the Spot
Instance pools that you specify.
If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot
Instance pools with optimal capacity for the number of instances that are launching.
allocationStrategy - Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified
by the EC2 Fleet.
If the allocation strategy is lowest-price, EC2 Fleet launches instances from the Spot
Instance pools with the lowest price. This is the default allocation strategy.
If the allocation strategy is diversified, EC2 Fleet launches instances from all of the
Spot Instance pools that you specify.
If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot
Instance pools with optimal capacity for the number of instances that are launching.
SpotAllocationStrategy,
SpotAllocationStrategySpotOptionsRequest.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,
SpotInstanceInterruptionBehaviorSpotOptionsRequest.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,
SpotInstanceInterruptionBehaviorSpotOptionsRequest.Builder instancePoolsToUseCount(Integer instancePoolsToUseCount)
The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
AllocationStrategy is set to lowest-price. 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 Spot
AllocationStrategy is set to lowest-price. EC2 Fleet selects the cheapest Spot
pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.SpotOptionsRequest.Builder singleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported
only for fleets of type instant.
singleInstanceType - Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
Supported only for fleets of type instant.SpotOptionsRequest.Builder singleAvailabilityZone(Boolean singleAvailabilityZone)
Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for
fleets of type instant.
singleAvailabilityZone - Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only
for fleets of type instant.SpotOptionsRequest.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.SpotOptionsRequest.Builder maxTotalPrice(String maxTotalPrice)
The maximum amount per hour for Spot Instances that you're willing to pay.
maxTotalPrice - The maximum amount per hour for Spot Instances that you're willing to pay.Copyright © 2019. All rights reserved.