Builder
Properties
The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide.
The behavior when a Spot Instance is interrupted.
The number of Spot pools across which to allocate your target Spot capacity. Supported only when Spot AllocationStrategy
is set to lowest-price
. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
The maximum amount per hour for Spot Instances that you're willing to pay. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
The minimum target capacity for Spot Instances in the fleet. If this minimum capacity isn't reached, no instances are launched.
Indicates that the fleet launches all Spot Instances into a single Availability Zone.
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
Functions
construct an aws.sdk.kotlin.services.ec2.model.FleetSpotMaintenanceStrategiesRequest inside the given block