Class FleetSpotOptions


  • public final class FleetSpotOptions
    extends java.lang.Object
    • Method Detail

      • allocationStrategy

        public java.util.Optional<java.lang.String> allocationStrategy()
        Returns:
        How to allocate the target capacity across the Spot pools. Valid values: `diversified`, `lowestPrice`, `capacity-optimized`, `capacity-optimized-prioritized` and `price-capacity-optimized`. Default: `lowestPrice`.
      • instanceInterruptionBehavior

        public java.util.Optional<java.lang.String> instanceInterruptionBehavior()
        Returns:
        Behavior when a Spot Instance is interrupted. Valid values: `hibernate`, `stop`, `terminate`. Default: `terminate`.
      • instancePoolsToUseCount

        public java.util.Optional<java.lang.Integer> instancePoolsToUseCount()
        Returns:
        Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot `allocationStrategy` is set to `lowestPrice`. Default: `1`.
      • maintenanceStrategies

        public java.util.Optional<FleetSpotOptionsMaintenanceStrategies> maintenanceStrategies()
        Returns:
        Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
      • maxTotalPrice

        public java.util.Optional<java.lang.String> maxTotalPrice()
        Returns:
        The maximum amount per hour for Spot Instances that you're willing to pay.
      • minTargetCapacity

        public java.util.Optional<java.lang.Integer> minTargetCapacity()
        Returns:
        The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type `instant`.
      • singleAvailabilityZone

        public java.util.Optional<java.lang.Boolean> singleAvailabilityZone()
        Returns:
        Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type `instant`.
      • singleInstanceType

        public java.util.Optional<java.lang.Boolean> singleInstanceType()
        Returns:
        Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type `instant`.