Class: Aws::EC2::Types::FleetSpotCapacityRebalanceRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass FleetSpotCapacityRebalanceRequest data as a hash:

{
  replacement_strategy: "launch", # accepts launch
}

The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#replacement_strategyString

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Returns:

  • (String)


30389
30390
30391
30392
30393
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 30389

class FleetSpotCapacityRebalanceRequest < Struct.new(
  :replacement_strategy)
  SENSITIVE = []
  include Aws::Structure
end