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

#include <SpotCapacityRebalance.h>

Public Member Functions

 SpotCapacityRebalance ()
 
 SpotCapacityRebalance (const Aws::Utils::Xml::XmlNode &xmlNode)
 
SpotCapacityRebalanceoperator= (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 ReplacementStrategyGetReplacementStrategy () const
 
bool ReplacementStrategyHasBeenSet () const
 
void SetReplacementStrategy (const ReplacementStrategy &value)
 
void SetReplacementStrategy (ReplacementStrategy &&value)
 
SpotCapacityRebalanceWithReplacementStrategy (const ReplacementStrategy &value)
 
SpotCapacityRebalanceWithReplacementStrategy (ReplacementStrategy &&value)
 

Detailed Description

The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide for Linux Instances.

See Also:

AWS API Reference

Definition at line 36 of file SpotCapacityRebalance.h.

Constructor & Destructor Documentation

◆ SpotCapacityRebalance() [1/2]

Aws::EC2::Model::SpotCapacityRebalance::SpotCapacityRebalance ( )

◆ SpotCapacityRebalance() [2/2]

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

Member Function Documentation

◆ GetReplacementStrategy()

const ReplacementStrategy& Aws::EC2::Model::SpotCapacityRebalance::GetReplacementStrategy ( ) const
inline

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 57 of file SpotCapacityRebalance.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ ReplacementStrategyHasBeenSet()

bool Aws::EC2::Model::SpotCapacityRebalance::ReplacementStrategyHasBeenSet ( ) const
inline

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 69 of file SpotCapacityRebalance.h.

◆ SetReplacementStrategy() [1/2]

void Aws::EC2::Model::SpotCapacityRebalance::SetReplacementStrategy ( const ReplacementStrategy value)
inline

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 81 of file SpotCapacityRebalance.h.

◆ SetReplacementStrategy() [2/2]

void Aws::EC2::Model::SpotCapacityRebalance::SetReplacementStrategy ( ReplacementStrategy &&  value)
inline

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 93 of file SpotCapacityRebalance.h.

◆ WithReplacementStrategy() [1/2]

SpotCapacityRebalance& Aws::EC2::Model::SpotCapacityRebalance::WithReplacementStrategy ( const ReplacementStrategy value)
inline

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 105 of file SpotCapacityRebalance.h.

◆ WithReplacementStrategy() [2/2]

SpotCapacityRebalance& Aws::EC2::Model::SpotCapacityRebalance::WithReplacementStrategy ( ReplacementStrategy &&  value)
inline

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

Definition at line 117 of file SpotCapacityRebalance.h.


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