Class FleetOnDemandOptions


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

      • allocationStrategy

        public java.util.Optional<java.lang.String> allocationStrategy()
        Returns:
        The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: `lowestPrice`, `prioritized`. Default: `lowestPrice`.
      • capacityReservationOptions

        public java.util.Optional<FleetOnDemandOptionsCapacityReservationOptions> capacityReservationOptions()
        Returns:
        The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type `instant`.
      • maxTotalPrice

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

        public java.util.Optional<java.lang.Integer> minTargetCapacity()
        Returns:
        The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type `instant`. If you specify `min_target_capacity`, at least one of the following must be specified: `single_availability_zone` or `single_instance_type`.
      • singleAvailabilityZone

        public java.util.Optional<java.lang.Boolean> singleAvailabilityZone()
        Returns:
        Indicates that the fleet launches all On-Demand 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 On-Demand Instances in the fleet. Supported only for fleets of type `instant`.