/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the configuration of On-Demand Instances in an EC2
* Fleet.See Also:
AWS
* API Reference
The strategy that determines the order of the launch template overrides to * use in fulfilling On-Demand capacity.
lowest-price
- EC2
* Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to
* each launch template override, launching the highest priority first.
Default: lowest-price
The strategy that determines the order of the launch template overrides to * use in fulfilling On-Demand capacity.
lowest-price
- EC2
* Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to
* each launch template override, launching the highest priority first.
Default: lowest-price
The strategy that determines the order of the launch template overrides to * use in fulfilling On-Demand capacity.
lowest-price
- EC2
* Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to
* each launch template override, launching the highest priority first.
Default: lowest-price
The strategy that determines the order of the launch template overrides to * use in fulfilling On-Demand capacity.
lowest-price
- EC2
* Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to
* each launch template override, launching the highest priority first.
Default: lowest-price
The strategy that determines the order of the launch template overrides to * use in fulfilling On-Demand capacity.
lowest-price
- EC2
* Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to
* each launch template override, launching the highest priority first.
Default: lowest-price
The strategy that determines the order of the launch template overrides to * use in fulfilling On-Demand capacity.
lowest-price
- EC2
* Fleet uses price to determine the order, launching the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to
* each launch template override, launching the highest priority first.
Default: lowest-price
The strategy for using unused Capacity Reservations for fulfilling On-Demand * capacity.
Supported only for fleets of type instant
.
The strategy for using unused Capacity Reservations for fulfilling On-Demand * capacity.
Supported only for fleets of type instant
.
The strategy for using unused Capacity Reservations for fulfilling On-Demand * capacity.
Supported only for fleets of type instant
.
The strategy for using unused Capacity Reservations for fulfilling On-Demand * capacity.
Supported only for fleets of type instant
.
The strategy for using unused Capacity Reservations for fulfilling On-Demand * capacity.
Supported only for fleets of type instant
.
The strategy for using unused Capacity Reservations for fulfilling On-Demand * capacity.
Supported only for fleets of type instant
.
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
.
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
.
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
.
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
.
Indicates that the fleet launches all On-Demand Instances into a single * Availability Zone.
Supported only for fleets of type
* instant
.
Indicates that the fleet launches all On-Demand Instances into a single * Availability Zone.
Supported only for fleets of type
* instant
.
Indicates that the fleet launches all On-Demand Instances into a single * Availability Zone.
Supported only for fleets of type
* instant
.
Indicates that the fleet launches all On-Demand Instances into a single * Availability Zone.
Supported only for fleets of type
* instant
.
The minimum target capacity for On-Demand Instances in the fleet. If the * minimum target capacity is not reached, the fleet launches no instances.
*Supported only for fleets of type instant
.
At least one
* of the following must be specified: SingleAvailabilityZone
|
* SingleInstanceType
The minimum target capacity for On-Demand Instances in the fleet. If the * minimum target capacity is not reached, the fleet launches no instances.
*Supported only for fleets of type instant
.
At least one
* of the following must be specified: SingleAvailabilityZone
|
* SingleInstanceType
The minimum target capacity for On-Demand Instances in the fleet. If the * minimum target capacity is not reached, the fleet launches no instances.
*Supported only for fleets of type instant
.
At least one
* of the following must be specified: SingleAvailabilityZone
|
* SingleInstanceType
The minimum target capacity for On-Demand Instances in the fleet. If the * minimum target capacity is not reached, the fleet launches no instances.
*Supported only for fleets of type instant
.
At least one
* of the following must be specified: SingleAvailabilityZone
|
* SingleInstanceType
The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline const Aws::String& GetMaxTotalPrice() const{ return m_maxTotalPrice; } /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline bool MaxTotalPriceHasBeenSet() const { return m_maxTotalPriceHasBeenSet; } /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline void SetMaxTotalPrice(const Aws::String& value) { m_maxTotalPriceHasBeenSet = true; m_maxTotalPrice = value; } /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline void SetMaxTotalPrice(Aws::String&& value) { m_maxTotalPriceHasBeenSet = true; m_maxTotalPrice = std::move(value); } /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline void SetMaxTotalPrice(const char* value) { m_maxTotalPriceHasBeenSet = true; m_maxTotalPrice.assign(value); } /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline OnDemandOptionsRequest& WithMaxTotalPrice(const Aws::String& value) { SetMaxTotalPrice(value); return *this;} /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline OnDemandOptionsRequest& WithMaxTotalPrice(Aws::String&& value) { SetMaxTotalPrice(std::move(value)); return *this;} /** *The maximum amount per hour for On-Demand Instances that you're willing to * pay.
*/ inline OnDemandOptionsRequest& WithMaxTotalPrice(const char* value) { SetMaxTotalPrice(value); return *this;} private: FleetOnDemandAllocationStrategy m_allocationStrategy; bool m_allocationStrategyHasBeenSet = false; CapacityReservationOptionsRequest m_capacityReservationOptions; bool m_capacityReservationOptionsHasBeenSet = false; bool m_singleInstanceType; bool m_singleInstanceTypeHasBeenSet = false; bool m_singleAvailabilityZone; bool m_singleAvailabilityZoneHasBeenSet = false; int m_minTargetCapacity; bool m_minTargetCapacityHasBeenSet = false; Aws::String m_maxTotalPrice; bool m_maxTotalPriceHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws