FleetSpotOptions class

Constructors

FleetSpotOptions({Input<String?>? allocationStrategy, Input<String?>? instanceInterruptionBehavior, Input<int?>? instancePoolsToUseCount, Input<FleetSpotOptionsMaintenanceStrategies?>? maintenanceStrategies, Input<String?>? maxTotalPrice, Input<int?>? minTargetCapacity, Input<bool?>? singleAvailabilityZone, Input<bool?>? singleInstanceType})
Creates a new FleetSpotOptions. 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. instanceInterruptionBehavior Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate. instancePoolsToUseCount Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocationStrategy is set to lowestPrice. Default: 1. maintenanceStrategies Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below. maxTotalPrice The maximum amount per hour for Spot Instances that you're willing to pay. 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. singleAvailabilityZone Indicates that the fleet launches all Spot Instances into a single Availability Zone. 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.
const
FleetSpotOptions.fromMap(Map<String, dynamic> map)
factory

Properties

allocationStrategy → Input<String?>?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
instanceInterruptionBehavior → Input<String?>?
Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
final
instancePoolsToUseCount → Input<int?>?
Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocationStrategy is set to lowestPrice. Default: 1.
final
maintenanceStrategies → Input<FleetSpotOptionsMaintenanceStrategies?>?
Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
final
maxTotalPrice → Input<String?>?
The maximum amount per hour for Spot Instances that you're willing to pay.
final
minTargetCapacity → Input<int?>?
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singleAvailabilityZone → Input<bool?>?
Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
final
singleInstanceType → Input<bool?>?
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited