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

Class: Aws::EC2::Types::OnDemandOptionsRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing OnDemandOptionsRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
  capacity_reservation_options: {
    usage_strategy: "use-capacity-reservations-first", # accepts use-capacity-reservations-first
  },
  single_instance_type: false,
  single_availability_zone: false,
  min_target_capacity: 1,
  max_total_price: "String",
}

Describes the configuration of On-Demand Instances in an EC2 Fleet.

Returned by:

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.

Possible values:

  • lowest-price
  • prioritized

Returns:

  • (String)

    The order of the launch template overrides to use in fulfilling On-Demand capacity.

#capacity_reservation_optionsTypes::CapacityReservationOptionsRequest

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Returns:

#max_total_priceString

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

Returns:

  • (String)

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

#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)

    The minimum target capacity for On-Demand Instances in the fleet.

#single_availability_zoneBoolean

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.

Returns:

  • (Boolean)

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

#single_instance_typeBoolean

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type instant.

Returns:

  • (Boolean)

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