Class: Aws::EC2::Types::OnDemandOptions

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

Overview

The allocation strategy of On-Demand Instances in an EC2 Fleet.

Instance Attribute Summary collapse

Instance Attribute Details

#allocation_strategyString

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify ‘lowest-price`, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify `prioritized`, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to `lowest-price`.

Returns:

  • (String)


27731
27732
27733
27734
27735
27736
27737
# File 'lib/aws-sdk-ec2/types.rb', line 27731

class OnDemandOptions < Struct.new(
  :allocation_strategy,
  :single_instance_type,
  :single_availability_zone,
  :min_target_capacity)
  include Aws::Structure
end

#min_target_capacityInteger

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Returns:

  • (Integer)


27731
27732
27733
27734
27735
27736
27737
# File 'lib/aws-sdk-ec2/types.rb', line 27731

class OnDemandOptions < Struct.new(
  :allocation_strategy,
  :single_instance_type,
  :single_availability_zone,
  :min_target_capacity)
  include Aws::Structure
end

#single_availability_zoneBoolean

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.

Returns:

  • (Boolean)


27731
27732
27733
27734
27735
27736
27737
# File 'lib/aws-sdk-ec2/types.rb', line 27731

class OnDemandOptions < Struct.new(
  :allocation_strategy,
  :single_instance_type,
  :single_availability_zone,
  :min_target_capacity)
  include Aws::Structure
end

#single_instance_typeBoolean

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.

Returns:

  • (Boolean)


27731
27732
27733
27734
27735
27736
27737
# File 'lib/aws-sdk-ec2/types.rb', line 27731

class OnDemandOptions < Struct.new(
  :allocation_strategy,
  :single_instance_type,
  :single_availability_zone,
  :min_target_capacity)
  include Aws::Structure
end