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

#include <TargetCapacitySpecification.h>

Public Member Functions

 TargetCapacitySpecification ()
 
 TargetCapacitySpecification (const Aws::Utils::Xml::XmlNode &xmlNode)
 
TargetCapacitySpecificationoperator= (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
 
int GetTotalTargetCapacity () const
 
bool TotalTargetCapacityHasBeenSet () const
 
void SetTotalTargetCapacity (int value)
 
TargetCapacitySpecificationWithTotalTargetCapacity (int value)
 
int GetOnDemandTargetCapacity () const
 
bool OnDemandTargetCapacityHasBeenSet () const
 
void SetOnDemandTargetCapacity (int value)
 
TargetCapacitySpecificationWithOnDemandTargetCapacity (int value)
 
int GetSpotTargetCapacity () const
 
bool SpotTargetCapacityHasBeenSet () const
 
void SetSpotTargetCapacity (int value)
 
TargetCapacitySpecificationWithSpotTargetCapacity (int value)
 
const DefaultTargetCapacityTypeGetDefaultTargetCapacityType () const
 
bool DefaultTargetCapacityTypeHasBeenSet () const
 
void SetDefaultTargetCapacityType (const DefaultTargetCapacityType &value)
 
void SetDefaultTargetCapacityType (DefaultTargetCapacityType &&value)
 
TargetCapacitySpecificationWithDefaultTargetCapacityType (const DefaultTargetCapacityType &value)
 
TargetCapacitySpecificationWithDefaultTargetCapacityType (DefaultTargetCapacityType &&value)
 

Detailed Description

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

You can use the On-Demand Instance MaxTotalPrice parameter, the Spot Instance MaxTotalPrice, or both to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, EC2 Fleet will launch instances until it reaches the maximum amount that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. The MaxTotalPrice parameters are located in OnDemandOptions and SpotOptions.

See Also:

AWS API Reference

Definition at line 46 of file TargetCapacitySpecification.h.

Constructor & Destructor Documentation

◆ TargetCapacitySpecification() [1/2]

Aws::EC2::Model::TargetCapacitySpecification::TargetCapacitySpecification ( )

◆ TargetCapacitySpecification() [2/2]

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

Member Function Documentation

◆ DefaultTargetCapacityTypeHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecification::DefaultTargetCapacityTypeHasBeenSet ( ) const
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 142 of file TargetCapacitySpecification.h.

◆ GetDefaultTargetCapacityType()

const DefaultTargetCapacityType& Aws::EC2::Model::TargetCapacitySpecification::GetDefaultTargetCapacityType ( ) const
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 136 of file TargetCapacitySpecification.h.

◆ GetOnDemandTargetCapacity()

int Aws::EC2::Model::TargetCapacitySpecification::GetOnDemandTargetCapacity ( ) const
inline

The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

Definition at line 86 of file TargetCapacitySpecification.h.

◆ GetSpotTargetCapacity()

int Aws::EC2::Model::TargetCapacitySpecification::GetSpotTargetCapacity ( ) const
inline

The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

Definition at line 111 of file TargetCapacitySpecification.h.

◆ GetTotalTargetCapacity()

int Aws::EC2::Model::TargetCapacitySpecification::GetTotalTargetCapacity ( ) const
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 61 of file TargetCapacitySpecification.h.

◆ OnDemandTargetCapacityHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecification::OnDemandTargetCapacityHasBeenSet ( ) const
inline

The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

Definition at line 92 of file TargetCapacitySpecification.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetDefaultTargetCapacityType() [1/2]

void Aws::EC2::Model::TargetCapacitySpecification::SetDefaultTargetCapacityType ( const DefaultTargetCapacityType value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 148 of file TargetCapacitySpecification.h.

◆ SetDefaultTargetCapacityType() [2/2]

void Aws::EC2::Model::TargetCapacitySpecification::SetDefaultTargetCapacityType ( DefaultTargetCapacityType &&  value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 154 of file TargetCapacitySpecification.h.

◆ SetOnDemandTargetCapacity()

void Aws::EC2::Model::TargetCapacitySpecification::SetOnDemandTargetCapacity ( int  value)
inline

The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

Definition at line 98 of file TargetCapacitySpecification.h.

◆ SetSpotTargetCapacity()

void Aws::EC2::Model::TargetCapacitySpecification::SetSpotTargetCapacity ( int  value)
inline

The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

Definition at line 123 of file TargetCapacitySpecification.h.

◆ SetTotalTargetCapacity()

void Aws::EC2::Model::TargetCapacitySpecification::SetTotalTargetCapacity ( int  value)
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 73 of file TargetCapacitySpecification.h.

◆ SpotTargetCapacityHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecification::SpotTargetCapacityHasBeenSet ( ) const
inline

The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

Definition at line 117 of file TargetCapacitySpecification.h.

◆ TotalTargetCapacityHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecification::TotalTargetCapacityHasBeenSet ( ) const
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 67 of file TargetCapacitySpecification.h.

◆ WithDefaultTargetCapacityType() [1/2]

TargetCapacitySpecification& Aws::EC2::Model::TargetCapacitySpecification::WithDefaultTargetCapacityType ( const DefaultTargetCapacityType value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 160 of file TargetCapacitySpecification.h.

◆ WithDefaultTargetCapacityType() [2/2]

TargetCapacitySpecification& Aws::EC2::Model::TargetCapacitySpecification::WithDefaultTargetCapacityType ( DefaultTargetCapacityType &&  value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 166 of file TargetCapacitySpecification.h.

◆ WithOnDemandTargetCapacity()

TargetCapacitySpecification& Aws::EC2::Model::TargetCapacitySpecification::WithOnDemandTargetCapacity ( int  value)
inline

The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

Definition at line 104 of file TargetCapacitySpecification.h.

◆ WithSpotTargetCapacity()

TargetCapacitySpecification& Aws::EC2::Model::TargetCapacitySpecification::WithSpotTargetCapacity ( int  value)
inline

The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

Definition at line 129 of file TargetCapacitySpecification.h.

◆ WithTotalTargetCapacity()

TargetCapacitySpecification& Aws::EC2::Model::TargetCapacitySpecification::WithTotalTargetCapacity ( int  value)
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 79 of file TargetCapacitySpecification.h.


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