Class FleetSpotOptionsArgs.Builder

  • Enclosing class:
    FleetSpotOptionsArgs

    public static final class FleetSpotOptionsArgs.Builder
    extends java.lang.Object
    • Method Detail

      • allocationStrategy

        public FleetSpotOptionsArgs.Builder allocationStrategy​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> allocationStrategy)
        Parameters:
        allocationStrategy - 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`.
        Returns:
        builder
      • allocationStrategy

        public FleetSpotOptionsArgs.Builder allocationStrategy​(java.lang.String allocationStrategy)
        Parameters:
        allocationStrategy - 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`.
        Returns:
        builder
      • instanceInterruptionBehavior

        public FleetSpotOptionsArgs.Builder instanceInterruptionBehavior​(@Nullable
                                                                         com.pulumi.core.Output<java.lang.String> instanceInterruptionBehavior)
        Parameters:
        instanceInterruptionBehavior - Behavior when a Spot Instance is interrupted. Valid values: `hibernate`, `stop`, `terminate`. Default: `terminate`.
        Returns:
        builder
      • instanceInterruptionBehavior

        public FleetSpotOptionsArgs.Builder instanceInterruptionBehavior​(java.lang.String instanceInterruptionBehavior)
        Parameters:
        instanceInterruptionBehavior - Behavior when a Spot Instance is interrupted. Valid values: `hibernate`, `stop`, `terminate`. Default: `terminate`.
        Returns:
        builder
      • instancePoolsToUseCount

        public FleetSpotOptionsArgs.Builder instancePoolsToUseCount​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.Integer> instancePoolsToUseCount)
        Parameters:
        instancePoolsToUseCount - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot `allocationStrategy` is set to `lowestPrice`. Default: `1`.
        Returns:
        builder
      • instancePoolsToUseCount

        public FleetSpotOptionsArgs.Builder instancePoolsToUseCount​(java.lang.Integer instancePoolsToUseCount)
        Parameters:
        instancePoolsToUseCount - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot `allocationStrategy` is set to `lowestPrice`. Default: `1`.
        Returns:
        builder
      • maintenanceStrategies

        public FleetSpotOptionsArgs.Builder maintenanceStrategies​(@Nullable
                                                                  com.pulumi.core.Output<FleetSpotOptionsMaintenanceStrategiesArgs> maintenanceStrategies)
        Parameters:
        maintenanceStrategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
        Returns:
        builder
      • maintenanceStrategies

        public FleetSpotOptionsArgs.Builder maintenanceStrategies​(FleetSpotOptionsMaintenanceStrategiesArgs maintenanceStrategies)
        Parameters:
        maintenanceStrategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
        Returns:
        builder
      • maxTotalPrice

        public FleetSpotOptionsArgs.Builder maxTotalPrice​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> maxTotalPrice)
        Parameters:
        maxTotalPrice - The maximum amount per hour for Spot Instances that you're willing to pay.
        Returns:
        builder
      • maxTotalPrice

        public FleetSpotOptionsArgs.Builder maxTotalPrice​(java.lang.String maxTotalPrice)
        Parameters:
        maxTotalPrice - The maximum amount per hour for Spot Instances that you're willing to pay.
        Returns:
        builder
      • minTargetCapacity

        public FleetSpotOptionsArgs.Builder minTargetCapacity​(@Nullable
                                                              com.pulumi.core.Output<java.lang.Integer> minTargetCapacity)
        Parameters:
        minTargetCapacity - 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`.
        Returns:
        builder
      • minTargetCapacity

        public FleetSpotOptionsArgs.Builder minTargetCapacity​(java.lang.Integer minTargetCapacity)
        Parameters:
        minTargetCapacity - 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`.
        Returns:
        builder
      • singleAvailabilityZone

        public FleetSpotOptionsArgs.Builder singleAvailabilityZone​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Boolean> singleAvailabilityZone)
        Parameters:
        singleAvailabilityZone - Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type `instant`.
        Returns:
        builder
      • singleAvailabilityZone

        public FleetSpotOptionsArgs.Builder singleAvailabilityZone​(java.lang.Boolean singleAvailabilityZone)
        Parameters:
        singleAvailabilityZone - Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type `instant`.
        Returns:
        builder
      • singleInstanceType

        public FleetSpotOptionsArgs.Builder singleInstanceType​(@Nullable
                                                               com.pulumi.core.Output<java.lang.Boolean> singleInstanceType)
        Parameters:
        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`.
        Returns:
        builder
      • singleInstanceType

        public FleetSpotOptionsArgs.Builder singleInstanceType​(java.lang.Boolean singleInstanceType)
        Parameters:
        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`.
        Returns:
        builder