Class: Aws::EC2::Types::OnDemandOptions
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::OnDemandOptions
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
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`.
27731 27732 27733 27734 27735 27736 27737 |
# File 'lib/aws-sdk-ec2/types.rb', line 27731 class OnDemandOptions < 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.
27731 27732 27733 27734 27735 27736 27737 |
# File 'lib/aws-sdk-ec2/types.rb', line 27731 class OnDemandOptions < 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.
27731 27732 27733 27734 27735 27736 27737 |
# File 'lib/aws-sdk-ec2/types.rb', line 27731 class OnDemandOptions < 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.
27731 27732 27733 27734 27735 27736 27737 |
# File 'lib/aws-sdk-ec2/types.rb', line 27731 class OnDemandOptions < Struct.new( :allocation_strategy, :single_instance_type, :single_availability_zone, :min_target_capacity) include Aws::Structure end |