Class: Aws::EC2::Types::OnDemandOptionsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::OnDemandOptionsRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass OnDemandOptionsRequest data as a hash:
{
allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
single_instance_type: false,
single_availability_zone: false,
min_target_capacity: 1,
}
The allocation strategy of On-Demand Instances in an EC2 Fleet.
Instance Attribute Summary collapse
-
#allocation_strategy ⇒ String
The order of the launch template overrides to use in fulfilling On-Demand capacity.
-
#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`.
27779 27780 27781 27782 27783 27784 27785 |
# File 'lib/aws-sdk-ec2/types.rb', line 27779 class OnDemandOptionsRequest < Struct.new( :allocation_strategy, :single_instance_type, :single_availability_zone, :min_target_capacity) include Aws::Structure end |
#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.
27779 27780 27781 27782 27783 27784 27785 |
# File 'lib/aws-sdk-ec2/types.rb', line 27779 class OnDemandOptionsRequest < Struct.new( :allocation_strategy, :single_instance_type, :single_availability_zone, :min_target_capacity) include Aws::Structure end |
#single_availability_zone ⇒ Boolean
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
27779 27780 27781 27782 27783 27784 27785 |
# File 'lib/aws-sdk-ec2/types.rb', line 27779 class OnDemandOptionsRequest < Struct.new( :allocation_strategy, :single_instance_type, :single_availability_zone, :min_target_capacity) include Aws::Structure end |
#single_instance_type ⇒ Boolean
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
27779 27780 27781 27782 27783 27784 27785 |
# File 'lib/aws-sdk-ec2/types.rb', line 27779 class OnDemandOptionsRequest < Struct.new( :allocation_strategy, :single_instance_type, :single_availability_zone, :min_target_capacity) include Aws::Structure end |