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

#include <LaunchTemplate.h>

Public Member Functions

 LaunchTemplate ()
 
 LaunchTemplate (const Aws::Utils::Xml::XmlNode &xmlNode)
 
LaunchTemplateoperator= (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 LaunchTemplateSpecificationGetLaunchTemplateSpecification () const
 
bool LaunchTemplateSpecificationHasBeenSet () const
 
void SetLaunchTemplateSpecification (const LaunchTemplateSpecification &value)
 
void SetLaunchTemplateSpecification (LaunchTemplateSpecification &&value)
 
LaunchTemplateWithLaunchTemplateSpecification (const LaunchTemplateSpecification &value)
 
LaunchTemplateWithLaunchTemplateSpecification (LaunchTemplateSpecification &&value)
 
const Aws::Vector< LaunchTemplateOverrides > & GetOverrides () const
 
bool OverridesHasBeenSet () const
 
void SetOverrides (const Aws::Vector< LaunchTemplateOverrides > &value)
 
void SetOverrides (Aws::Vector< LaunchTemplateOverrides > &&value)
 
LaunchTemplateWithOverrides (const Aws::Vector< LaunchTemplateOverrides > &value)
 
LaunchTemplateWithOverrides (Aws::Vector< LaunchTemplateOverrides > &&value)
 
LaunchTemplateAddOverrides (const LaunchTemplateOverrides &value)
 
LaunchTemplateAddOverrides (LaunchTemplateOverrides &&value)
 

Detailed Description

Describes a launch template and overrides.

The overrides are used to override the instance type specified by the launch template with multiple instance types that can be used to launch On-Demand Instances and Spot Instances.

When you update the launch template or overrides, existing Amazon EC2 instances continue to run. When scale out occurs, Amazon EC2 Auto Scaling launches instances to match 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 40 of file LaunchTemplate.h.

Constructor & Destructor Documentation

◆ LaunchTemplate() [1/2]

Aws::AutoScaling::Model::LaunchTemplate::LaunchTemplate ( )

◆ LaunchTemplate() [2/2]

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

Member Function Documentation

◆ AddOverrides() [1/2]

LaunchTemplate& Aws::AutoScaling::Model::LaunchTemplate::AddOverrides ( const LaunchTemplateOverrides value)
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 149 of file LaunchTemplate.h.

◆ AddOverrides() [2/2]

LaunchTemplate& Aws::AutoScaling::Model::LaunchTemplate::AddOverrides ( LaunchTemplateOverrides &&  value)
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 158 of file LaunchTemplate.h.

◆ GetLaunchTemplateSpecification()

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

The launch template to use. You must specify either the launch template ID or launch template name in the request.

Definition at line 55 of file LaunchTemplate.h.

◆ GetOverrides()

const Aws::Vector<LaunchTemplateOverrides>& Aws::AutoScaling::Model::LaunchTemplate::GetOverrides ( ) const
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 95 of file LaunchTemplate.h.

◆ LaunchTemplateSpecificationHasBeenSet()

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

The launch template to use. You must specify either the launch template ID or launch template name in the request.

Definition at line 61 of file LaunchTemplate.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ OverridesHasBeenSet()

bool Aws::AutoScaling::Model::LaunchTemplate::OverridesHasBeenSet ( ) const
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 104 of file LaunchTemplate.h.

◆ SetLaunchTemplateSpecification() [1/2]

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

The launch template to use. You must specify either the launch template ID or launch template name in the request.

Definition at line 67 of file LaunchTemplate.h.

◆ SetLaunchTemplateSpecification() [2/2]

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

The launch template to use. You must specify either the launch template ID or launch template name in the request.

Definition at line 73 of file LaunchTemplate.h.

◆ SetOverrides() [1/2]

void Aws::AutoScaling::Model::LaunchTemplate::SetOverrides ( const Aws::Vector< LaunchTemplateOverrides > &  value)
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 113 of file LaunchTemplate.h.

◆ SetOverrides() [2/2]

void Aws::AutoScaling::Model::LaunchTemplate::SetOverrides ( Aws::Vector< LaunchTemplateOverrides > &&  value)
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 122 of file LaunchTemplate.h.

◆ WithLaunchTemplateSpecification() [1/2]

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

The launch template to use. You must specify either the launch template ID or launch template name in the request.

Definition at line 79 of file LaunchTemplate.h.

◆ WithLaunchTemplateSpecification() [2/2]

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

The launch template to use. You must specify either the launch template ID or launch template name in the request.

Definition at line 85 of file LaunchTemplate.h.

◆ WithOverrides() [1/2]

LaunchTemplate& Aws::AutoScaling::Model::LaunchTemplate::WithOverrides ( const Aws::Vector< LaunchTemplateOverrides > &  value)
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 131 of file LaunchTemplate.h.

◆ WithOverrides() [2/2]

LaunchTemplate& Aws::AutoScaling::Model::LaunchTemplate::WithOverrides ( Aws::Vector< LaunchTemplateOverrides > &&  value)
inline

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Definition at line 140 of file LaunchTemplate.h.


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