Package com.pulumi.aws.ec2.outputs
Class FleetSpotOptions
- java.lang.Object
-
- com.pulumi.aws.ec2.outputs.FleetSpotOptions
-
public final class FleetSpotOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFleetSpotOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>allocationStrategy()static FleetSpotOptions.Builderbuilder()static FleetSpotOptions.Builderbuilder(FleetSpotOptions defaults)java.util.Optional<java.lang.String>instanceInterruptionBehavior()java.util.Optional<java.lang.Integer>instancePoolsToUseCount()java.util.Optional<FleetSpotOptionsMaintenanceStrategies>maintenanceStrategies()java.util.Optional<java.lang.String>maxTotalPrice()java.util.Optional<java.lang.Integer>minTargetCapacity()java.util.Optional<java.lang.Boolean>singleAvailabilityZone()java.util.Optional<java.lang.Boolean>singleInstanceType()
-
-
-
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`.
-
builder
public static FleetSpotOptions.Builder builder()
-
builder
public static FleetSpotOptions.Builder builder(FleetSpotOptions defaults)
-
-