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
- Struct
- Aws::EC2::Types::OnDemandOptionsRequest
- Defined in:
- (unknown)
Overview
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
-
#allocation_strategy ⇒ String
The order of the launch template overrides to use in fulfilling On-Demand capacity.
-
#capacity_reservation_options ⇒ Types::CapacityReservationOptionsRequest
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
-
#max_total_price ⇒ String
The maximum amount per hour for On-Demand Instances that you\'re willing to pay.
-
#min_target_capacity ⇒ Integer
The minimum target capacity for On-Demand Instances in the fleet.
-
#single_availability_zone ⇒ Boolean
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
-
#single_instance_type ⇒ Boolean
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
Instance Attribute Details
#allocation_strategy ⇒ String
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
#capacity_reservation_options ⇒ Types::CapacityReservationOptionsRequest
The strategy for using unused Capacity Reservations for fulfilling
On-Demand capacity. Supported only for fleets of type instant.
#max_total_price ⇒ String
The maximum amount per hour for On-Demand Instances that you\'re willing to pay.
#min_target_capacity ⇒ Integer
The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
#single_availability_zone ⇒ Boolean
Indicates that the fleet launches all On-Demand Instances into a single
Availability Zone. Supported only for fleets of type instant.
#single_instance_type ⇒ Boolean
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.