AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Inheritance Hierarchy

System.Object
  Amazon.AutoScaling.Model.LaunchTemplate

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z

Syntax

C#
public class LaunchTemplate

The LaunchTemplate type exposes the following members

Constructors

NameDescription
Public Method LaunchTemplate()

Properties

NameTypeDescription
Public Property LaunchTemplateSpecification Amazon.AutoScaling.Model.LaunchTemplateSpecification

Gets and sets the property LaunchTemplateSpecification.

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

Public Property Overrides System.Collections.Generic.List<Amazon.AutoScaling.Model.LaunchTemplateOverrides>

Gets and sets the property Overrides.

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.

Version Information

.NET Standard:
Supported in: 2.0, 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms