AWS SDK for C++  1.9.123
AWS SDK for C++
Public Member Functions | List of all members
Aws::AutoScaling::Model::InstancesDistribution Class Reference

#include <InstancesDistribution.h>

Public Member Functions

 InstancesDistribution ()
 
 InstancesDistribution (const Aws::Utils::Xml::XmlNode &xmlNode)
 
InstancesDistributionoperator= (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 Aws::StringGetOnDemandAllocationStrategy () const
 
bool OnDemandAllocationStrategyHasBeenSet () const
 
void SetOnDemandAllocationStrategy (const Aws::String &value)
 
void SetOnDemandAllocationStrategy (Aws::String &&value)
 
void SetOnDemandAllocationStrategy (const char *value)
 
InstancesDistributionWithOnDemandAllocationStrategy (const Aws::String &value)
 
InstancesDistributionWithOnDemandAllocationStrategy (Aws::String &&value)
 
InstancesDistributionWithOnDemandAllocationStrategy (const char *value)
 
int GetOnDemandBaseCapacity () const
 
bool OnDemandBaseCapacityHasBeenSet () const
 
void SetOnDemandBaseCapacity (int value)
 
InstancesDistributionWithOnDemandBaseCapacity (int value)
 
int GetOnDemandPercentageAboveBaseCapacity () const
 
bool OnDemandPercentageAboveBaseCapacityHasBeenSet () const
 
void SetOnDemandPercentageAboveBaseCapacity (int value)
 
InstancesDistributionWithOnDemandPercentageAboveBaseCapacity (int value)
 
const Aws::StringGetSpotAllocationStrategy () const
 
bool SpotAllocationStrategyHasBeenSet () const
 
void SetSpotAllocationStrategy (const Aws::String &value)
 
void SetSpotAllocationStrategy (Aws::String &&value)
 
void SetSpotAllocationStrategy (const char *value)
 
InstancesDistributionWithSpotAllocationStrategy (const Aws::String &value)
 
InstancesDistributionWithSpotAllocationStrategy (Aws::String &&value)
 
InstancesDistributionWithSpotAllocationStrategy (const char *value)
 
int GetSpotInstancePools () const
 
bool SpotInstancePoolsHasBeenSet () const
 
void SetSpotInstancePools (int value)
 
InstancesDistributionWithSpotInstancePools (int value)
 
const Aws::StringGetSpotMaxPrice () const
 
bool SpotMaxPriceHasBeenSet () const
 
void SetSpotMaxPrice (const Aws::String &value)
 
void SetSpotMaxPrice (Aws::String &&value)
 
void SetSpotMaxPrice (const char *value)
 
InstancesDistributionWithSpotMaxPrice (const Aws::String &value)
 
InstancesDistributionWithSpotMaxPrice (Aws::String &&value)
 
InstancesDistributionWithSpotMaxPrice (const char *value)
 

Detailed Description

Describes an instances distribution for an Auto Scaling group with a MixedInstancesPolicy.

The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities.

When you modify SpotAllocationStrategy, SpotInstancePools, or SpotMaxPrice in the UpdateAutoScalingGroup API call, this update action does not deploy any changes across the running Amazon EC2 instances in the group. Your existing Spot Instances continue to run as long as the maximum price for those instances is higher than the current Spot price. When scale out occurs, Amazon EC2 Auto Scaling launches instances based on the new settings. When scale in occurs, Amazon EC2 Auto Scaling terminates instances according to the group's termination policies.

See Also:

AWS API Reference

Definition at line 43 of file InstancesDistribution.h.

Constructor & Destructor Documentation

◆ InstancesDistribution() [1/2]

Aws::AutoScaling::Model::InstancesDistribution::InstancesDistribution ( )

◆ InstancesDistribution() [2/2]

Aws::AutoScaling::Model::InstancesDistribution::InstancesDistribution ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetOnDemandAllocationStrategy()

const Aws::String& Aws::AutoScaling::Model::InstancesDistribution::GetOnDemandAllocationStrategy ( ) const
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 64 of file InstancesDistribution.h.

◆ GetOnDemandBaseCapacity()

int Aws::AutoScaling::Model::InstancesDistribution::GetOnDemandBaseCapacity ( ) const
inline

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of capacity units, and not the number of instances.

Definition at line 159 of file InstancesDistribution.h.

◆ GetOnDemandPercentageAboveBaseCapacity()

int Aws::AutoScaling::Model::InstancesDistribution::GetOnDemandPercentageAboveBaseCapacity ( ) const
inline

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned.

Definition at line 199 of file InstancesDistribution.h.

◆ GetSpotAllocationStrategy()

const Aws::String& Aws::AutoScaling::Model::InstancesDistribution::GetSpotAllocationStrategy ( ) const
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 243 of file InstancesDistribution.h.

◆ GetSpotInstancePools()

int Aws::AutoScaling::Model::InstancesDistribution::GetSpotInstancePools ( ) const
inline

The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the Spot allocation strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified.

Definition at line 365 of file InstancesDistribution.h.

◆ GetSpotMaxPrice()

const Aws::String& Aws::AutoScaling::Model::InstancesDistribution::GetSpotMaxPrice ( ) const
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 402 of file InstancesDistribution.h.

◆ OnDemandAllocationStrategyHasBeenSet()

bool Aws::AutoScaling::Model::InstancesDistribution::OnDemandAllocationStrategyHasBeenSet ( ) const
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 76 of file InstancesDistribution.h.

◆ OnDemandBaseCapacityHasBeenSet()

bool Aws::AutoScaling::Model::InstancesDistribution::OnDemandBaseCapacityHasBeenSet ( ) const
inline

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of capacity units, and not the number of instances.

Definition at line 169 of file InstancesDistribution.h.

◆ OnDemandPercentageAboveBaseCapacityHasBeenSet()

bool Aws::AutoScaling::Model::InstancesDistribution::OnDemandPercentageAboveBaseCapacityHasBeenSet ( ) const
inline

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned.

Definition at line 208 of file InstancesDistribution.h.

◆ operator=()

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::AutoScaling::Model::InstancesDistribution::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

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

◆ SetOnDemandAllocationStrategy() [1/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandAllocationStrategy ( Aws::String &&  value)
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 100 of file InstancesDistribution.h.

◆ SetOnDemandAllocationStrategy() [2/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandAllocationStrategy ( const Aws::String value)
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 88 of file InstancesDistribution.h.

◆ SetOnDemandAllocationStrategy() [3/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandAllocationStrategy ( const char *  value)
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 112 of file InstancesDistribution.h.

◆ SetOnDemandBaseCapacity()

void Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandBaseCapacity ( int  value)
inline

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of capacity units, and not the number of instances.

Definition at line 179 of file InstancesDistribution.h.

◆ SetOnDemandPercentageAboveBaseCapacity()

void Aws::AutoScaling::Model::InstancesDistribution::SetOnDemandPercentageAboveBaseCapacity ( int  value)
inline

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned.

Definition at line 217 of file InstancesDistribution.h.

◆ SetSpotAllocationStrategy() [1/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotAllocationStrategy ( Aws::String &&  value)
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 291 of file InstancesDistribution.h.

◆ SetSpotAllocationStrategy() [2/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotAllocationStrategy ( const Aws::String value)
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 275 of file InstancesDistribution.h.

◆ SetSpotAllocationStrategy() [3/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotAllocationStrategy ( const char *  value)
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 307 of file InstancesDistribution.h.

◆ SetSpotInstancePools()

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotInstancePools ( int  value)
inline

The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the Spot allocation strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified.

Definition at line 383 of file InstancesDistribution.h.

◆ SetSpotMaxPrice() [1/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotMaxPrice ( Aws::String &&  value)
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 429 of file InstancesDistribution.h.

◆ SetSpotMaxPrice() [2/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotMaxPrice ( const Aws::String value)
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 420 of file InstancesDistribution.h.

◆ SetSpotMaxPrice() [3/3]

void Aws::AutoScaling::Model::InstancesDistribution::SetSpotMaxPrice ( const char *  value)
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 438 of file InstancesDistribution.h.

◆ SpotAllocationStrategyHasBeenSet()

bool Aws::AutoScaling::Model::InstancesDistribution::SpotAllocationStrategyHasBeenSet ( ) const
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 259 of file InstancesDistribution.h.

◆ SpotInstancePoolsHasBeenSet()

bool Aws::AutoScaling::Model::InstancesDistribution::SpotInstancePoolsHasBeenSet ( ) const
inline

The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the Spot allocation strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified.

Definition at line 374 of file InstancesDistribution.h.

◆ SpotMaxPriceHasBeenSet()

bool Aws::AutoScaling::Model::InstancesDistribution::SpotMaxPriceHasBeenSet ( ) const
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 411 of file InstancesDistribution.h.

◆ WithOnDemandAllocationStrategy() [1/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandAllocationStrategy ( Aws::String &&  value)
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 136 of file InstancesDistribution.h.

◆ WithOnDemandAllocationStrategy() [2/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandAllocationStrategy ( const Aws::String value)
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 124 of file InstancesDistribution.h.

◆ WithOnDemandAllocationStrategy() [3/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandAllocationStrategy ( const char *  value)
inline

Indicates how to allocate instance types to fulfill On-Demand capacity. The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the LaunchTemplateOverrides to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

Definition at line 148 of file InstancesDistribution.h.

◆ WithOnDemandBaseCapacity()

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandBaseCapacity ( int  value)
inline

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales. Defaults to 0 if not specified. If you specify weights for the instance types in the overrides, set the value of OnDemandBaseCapacity in terms of the number of capacity units, and not the number of instances.

Definition at line 189 of file InstancesDistribution.h.

◆ WithOnDemandPercentageAboveBaseCapacity()

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithOnDemandPercentageAboveBaseCapacity ( int  value)
inline

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). Defaults to 100 if not specified. If set to 100, only On-Demand Instances are provisioned.

Definition at line 226 of file InstancesDistribution.h.

◆ WithSpotAllocationStrategy() [1/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotAllocationStrategy ( Aws::String &&  value)
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 339 of file InstancesDistribution.h.

◆ WithSpotAllocationStrategy() [2/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotAllocationStrategy ( const Aws::String value)
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 323 of file InstancesDistribution.h.

◆ WithSpotAllocationStrategy() [3/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotAllocationStrategy ( const char *  value)
inline

Indicates how to allocate instances across Spot Instance pools.

If the allocation strategy is lowest-price, the Auto Scaling group launches instances using the Spot pools with the lowest price, and evenly allocates your instances across the number of Spot pools that you specify. Defaults to lowest-price if not specified.

If the allocation strategy is capacity-optimized (recommended), the Auto Scaling group launches instances using Spot pools that are optimally chosen based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized and set the order of instance types in the list of launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best-effort basis but optimizes for capacity first.

Definition at line 355 of file InstancesDistribution.h.

◆ WithSpotInstancePools()

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotInstancePools ( int  value)
inline

The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the Spot allocation strategy is lowest-price. Value must be in the range of 1 to 20. Defaults to 2 if not specified.

Definition at line 392 of file InstancesDistribution.h.

◆ WithSpotMaxPrice() [1/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotMaxPrice ( Aws::String &&  value)
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 456 of file InstancesDistribution.h.

◆ WithSpotMaxPrice() [2/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotMaxPrice ( const Aws::String value)
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 447 of file InstancesDistribution.h.

◆ WithSpotMaxPrice() [3/3]

InstancesDistribution& Aws::AutoScaling::Model::InstancesDistribution::WithSpotMaxPrice ( const char *  value)
inline

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave the value at its default (empty), Amazon EC2 Auto Scaling uses the On-Demand price as the maximum Spot price. To remove a value that you previously set, include the property but specify an empty string ("") for the value.

Definition at line 465 of file InstancesDistribution.h.


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