You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/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)


27738
27739
27740
27741
27742
27743
27744
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 27738

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)


27738
27739
27740
27741
27742
27743
27744
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 27738

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)


27738
27739
27740
27741
27742
27743
27744
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 27738

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)


27738
27739
27740
27741
27742
27743
27744
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 27738

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