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

#include <LaunchTemplateOverrides.h>

Public Member Functions

 LaunchTemplateOverrides ()
 
 LaunchTemplateOverrides (const Aws::Utils::Xml::XmlNode &xmlNode)
 
LaunchTemplateOverridesoperator= (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::StringGetInstanceType () const
 
bool InstanceTypeHasBeenSet () const
 
void SetInstanceType (const Aws::String &value)
 
void SetInstanceType (Aws::String &&value)
 
void SetInstanceType (const char *value)
 
LaunchTemplateOverridesWithInstanceType (const Aws::String &value)
 
LaunchTemplateOverridesWithInstanceType (Aws::String &&value)
 
LaunchTemplateOverridesWithInstanceType (const char *value)
 
const Aws::StringGetWeightedCapacity () const
 
bool WeightedCapacityHasBeenSet () const
 
void SetWeightedCapacity (const Aws::String &value)
 
void SetWeightedCapacity (Aws::String &&value)
 
void SetWeightedCapacity (const char *value)
 
LaunchTemplateOverridesWithWeightedCapacity (const Aws::String &value)
 
LaunchTemplateOverridesWithWeightedCapacity (Aws::String &&value)
 
LaunchTemplateOverridesWithWeightedCapacity (const char *value)
 
const LaunchTemplateSpecificationGetLaunchTemplateSpecification () const
 
bool LaunchTemplateSpecificationHasBeenSet () const
 
void SetLaunchTemplateSpecification (const LaunchTemplateSpecification &value)
 
void SetLaunchTemplateSpecification (LaunchTemplateSpecification &&value)
 
LaunchTemplateOverridesWithLaunchTemplateSpecification (const LaunchTemplateSpecification &value)
 
LaunchTemplateOverridesWithLaunchTemplateSpecification (LaunchTemplateSpecification &&value)
 

Detailed Description

Describes an override for a launch template. The maximum number of instance types that can be associated with an Auto Scaling group is 40. The maximum number of distinct launch templates you can define for an Auto Scaling group is

  1. For more information about configuring overrides, see Configuring overrides in the Amazon EC2 Auto Scaling User Guide.

See Also:

AWS API Reference

Definition at line 38 of file LaunchTemplateOverrides.h.

Constructor & Destructor Documentation

◆ LaunchTemplateOverrides() [1/2]

Aws::AutoScaling::Model::LaunchTemplateOverrides::LaunchTemplateOverrides ( )

◆ LaunchTemplateOverrides() [2/2]

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

Member Function Documentation

◆ GetInstanceType()

const Aws::String& Aws::AutoScaling::Model::LaunchTemplateOverrides::GetInstanceType ( ) const
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 56 of file LaunchTemplateOverrides.h.

◆ GetLaunchTemplateSpecification()

const LaunchTemplateSpecification& Aws::AutoScaling::Model::LaunchTemplateOverrides::GetLaunchTemplateSpecification ( ) const
inline

Provides the launch template to be used when launching the instance type. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

Definition at line 260 of file LaunchTemplateOverrides.h.

◆ GetWeightedCapacity()

const Aws::String& Aws::AutoScaling::Model::LaunchTemplateOverrides::GetWeightedCapacity ( ) const
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 136 of file LaunchTemplateOverrides.h.

◆ InstanceTypeHasBeenSet()

bool Aws::AutoScaling::Model::LaunchTemplateOverrides::InstanceTypeHasBeenSet ( ) const
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 65 of file LaunchTemplateOverrides.h.

◆ LaunchTemplateSpecificationHasBeenSet()

bool Aws::AutoScaling::Model::LaunchTemplateOverrides::LaunchTemplateSpecificationHasBeenSet ( ) const
inline

Provides the launch template to be used when launching the instance type. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

Definition at line 271 of file LaunchTemplateOverrides.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetInstanceType() [1/3]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceType ( Aws::String &&  value)
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 83 of file LaunchTemplateOverrides.h.

◆ SetInstanceType() [2/3]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceType ( const Aws::String value)
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 74 of file LaunchTemplateOverrides.h.

◆ SetInstanceType() [3/3]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetInstanceType ( const char *  value)
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 92 of file LaunchTemplateOverrides.h.

◆ SetLaunchTemplateSpecification() [1/2]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetLaunchTemplateSpecification ( const LaunchTemplateSpecification value)
inline

Provides the launch template to be used when launching the instance type. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

Definition at line 282 of file LaunchTemplateOverrides.h.

◆ SetLaunchTemplateSpecification() [2/2]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetLaunchTemplateSpecification ( LaunchTemplateSpecification &&  value)
inline

Provides the launch template to be used when launching the instance type. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

Definition at line 293 of file LaunchTemplateOverrides.h.

◆ SetWeightedCapacity() [1/3]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetWeightedCapacity ( Aws::String &&  value)
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 184 of file LaunchTemplateOverrides.h.

◆ SetWeightedCapacity() [2/3]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetWeightedCapacity ( const Aws::String value)
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 168 of file LaunchTemplateOverrides.h.

◆ SetWeightedCapacity() [3/3]

void Aws::AutoScaling::Model::LaunchTemplateOverrides::SetWeightedCapacity ( const char *  value)
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 200 of file LaunchTemplateOverrides.h.

◆ WeightedCapacityHasBeenSet()

bool Aws::AutoScaling::Model::LaunchTemplateOverrides::WeightedCapacityHasBeenSet ( ) const
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 152 of file LaunchTemplateOverrides.h.

◆ WithInstanceType() [1/3]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceType ( Aws::String &&  value)
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 110 of file LaunchTemplateOverrides.h.

◆ WithInstanceType() [2/3]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceType ( const Aws::String value)
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 101 of file LaunchTemplateOverrides.h.

◆ WithInstanceType() [3/3]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithInstanceType ( const char *  value)
inline

The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 119 of file LaunchTemplateOverrides.h.

◆ WithLaunchTemplateSpecification() [1/2]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithLaunchTemplateSpecification ( const LaunchTemplateSpecification value)
inline

Provides the launch template to be used when launching the instance type. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

Definition at line 304 of file LaunchTemplateOverrides.h.

◆ WithLaunchTemplateSpecification() [2/2]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithLaunchTemplateSpecification ( LaunchTemplateSpecification &&  value)
inline

Provides the launch template to be used when launching the instance type. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

Definition at line 315 of file LaunchTemplateOverrides.h.

◆ WithWeightedCapacity() [1/3]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithWeightedCapacity ( Aws::String &&  value)
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 232 of file LaunchTemplateOverrides.h.

◆ WithWeightedCapacity() [2/3]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithWeightedCapacity ( const Aws::String value)
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 216 of file LaunchTemplateOverrides.h.

◆ WithWeightedCapacity() [3/3]

LaunchTemplateOverrides& Aws::AutoScaling::Model::LaunchTemplateOverrides::WithWeightedCapacity ( const char *  value)
inline

The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1 to 999.

Definition at line 248 of file LaunchTemplateOverrides.h.


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