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.
|
default SpotOptionsRequest.Builder |
maintenanceStrategies(Consumer<FleetSpotMaintenanceStrategiesRequest.Builder> maintenanceStrategies)
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
|
SpotOptionsRequest.Builder |
maintenanceStrategies(FleetSpotMaintenanceStrategiesRequest maintenanceStrategies)
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
|
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, sdkFields
copy
applyMutation, build
SpotOptionsRequest.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
,
SpotAllocationStrategy
SpotOptionsRequest.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
,
SpotAllocationStrategy
SpotOptionsRequest.Builder maintenanceStrategies(FleetSpotMaintenanceStrategiesRequest maintenanceStrategies)
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
maintenanceStrategies
- The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.default SpotOptionsRequest.Builder maintenanceStrategies(Consumer<FleetSpotMaintenanceStrategiesRequest.Builder> maintenanceStrategies)
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
This is a convenience that creates an instance of theFleetSpotMaintenanceStrategiesRequest.Builder
avoiding the need to create one manually via FleetSpotMaintenanceStrategiesRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to maintenanceStrategies(FleetSpotMaintenanceStrategiesRequest)
.maintenanceStrategies
- a consumer that will call methods on FleetSpotMaintenanceStrategiesRequest.Builder
maintenanceStrategies(FleetSpotMaintenanceStrategiesRequest)
SpotOptionsRequest.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
SpotOptionsRequest.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
SpotOptionsRequest.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 © 2021. All rights reserved.