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

Describes the configuration 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)


29425
29426
29427
29428
29429
29430
29431
29432
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29425

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

#max_total_priceString

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Returns:

  • (String)


29425
29426
29427
29428
29429
29430
29431
29432
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29425

class OnDemandOptions < Struct.new(
  :allocation_strategy,
  :single_instance_type,
  :single_availability_zone,
  :min_target_capacity,
  :max_total_price)
  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)


29425
29426
29427
29428
29429
29430
29431
29432
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29425

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

#single_availability_zoneBoolean

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

Returns:

  • (Boolean)


29425
29426
29427
29428
29429
29430
29431
29432
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29425

class OnDemandOptions < Struct.new(
  :allocation_strategy,
  :single_instance_type,
  :single_availability_zone,
  :min_target_capacity,
  :max_total_price)
  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)


29425
29426
29427
29428
29429
29430
29431
29432
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29425

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