AWS SDK for C++  1.9.109
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::CapacityReservationOptions Class Reference

#include <CapacityReservationOptions.h>

Public Member Functions

 CapacityReservationOptions ()
 
 CapacityReservationOptions (const Aws::Utils::Xml::XmlNode &xmlNode)
 
CapacityReservationOptionsoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const FleetCapacityReservationUsageStrategyGetUsageStrategy () const
 
bool UsageStrategyHasBeenSet () const
 
void SetUsageStrategy (const FleetCapacityReservationUsageStrategy &value)
 
void SetUsageStrategy (FleetCapacityReservationUsageStrategy &&value)
 
CapacityReservationOptionsWithUsageStrategy (const FleetCapacityReservationUsageStrategy &value)
 
CapacityReservationOptionsWithUsageStrategy (FleetCapacityReservationUsageStrategy &&value)
 

Detailed Description

Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

This strategy can only be used if the EC2 Fleet is of type instant.

For more information about Capacity Reservations, see On-Demand Capacity Reservations in the Amazon EC2 User Guide. For examples of using Capacity Reservations in an EC2 Fleet, see EC2 Fleet example configurations in the Amazon EC2 User Guide.

See Also:

AWS API Reference

Definition at line 40 of file CapacityReservationOptions.h.

Constructor & Destructor Documentation

◆ CapacityReservationOptions() [1/2]

Aws::EC2::Model::CapacityReservationOptions::CapacityReservationOptions ( )

◆ CapacityReservationOptions() [2/2]

Aws::EC2::Model::CapacityReservationOptions::CapacityReservationOptions ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetUsageStrategy()

const FleetCapacityReservationUsageStrategy& Aws::EC2::Model::CapacityReservationOptions::GetUsageStrategy ( ) const
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 65 of file CapacityReservationOptions.h.

◆ operator=()

CapacityReservationOptions& Aws::EC2::Model::CapacityReservationOptions::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::EC2::Model::CapacityReservationOptions::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::CapacityReservationOptions::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ SetUsageStrategy() [1/2]

void Aws::EC2::Model::CapacityReservationOptions::SetUsageStrategy ( const FleetCapacityReservationUsageStrategy value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 97 of file CapacityReservationOptions.h.

◆ SetUsageStrategy() [2/2]

void Aws::EC2::Model::CapacityReservationOptions::SetUsageStrategy ( FleetCapacityReservationUsageStrategy &&  value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 113 of file CapacityReservationOptions.h.

◆ UsageStrategyHasBeenSet()

bool Aws::EC2::Model::CapacityReservationOptions::UsageStrategyHasBeenSet ( ) const
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 81 of file CapacityReservationOptions.h.

◆ WithUsageStrategy() [1/2]

CapacityReservationOptions& Aws::EC2::Model::CapacityReservationOptions::WithUsageStrategy ( const FleetCapacityReservationUsageStrategy value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 129 of file CapacityReservationOptions.h.

◆ WithUsageStrategy() [2/2]

CapacityReservationOptions& Aws::EC2::Model::CapacityReservationOptions::WithUsageStrategy ( FleetCapacityReservationUsageStrategy &&  value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 145 of file CapacityReservationOptions.h.


The documentation for this class was generated from the following file: