You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::AutoScaling::Types::LaunchTemplateOverrides

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LaunchTemplateOverrides as input to an Aws::Client method, you can use a vanilla Hash:

{
  instance_type: "XmlStringMaxLen255",
  weighted_capacity: "XmlStringMaxLen32",
}

Describes an override for a launch template. Currently, the only supported override is instance type.

The maximum number of instance type overrides that can be associated with an Auto Scaling group is 20.

Instance Attribute Summary collapse

Instance Attribute Details

#instance_typeString

The instance type. You must use an instance type that is supported in your requested Region and Availability Zones.

For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.

Returns:

  • (String)

    The instance type.

#weighted_capacityString

The number of capacity units, which gives the instance type a proportional weight to other instance types. For example, larger instance types are generally weighted more than smaller instance types. These are the same units that you chose to set the desired capacity in terms of instances, or a performance attribute such as vCPUs, memory, or I/O.

For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

Valid Range: Minimum value of 1. Maximum value of 999.

Returns:

  • (String)

    The number of capacity units, which gives the instance type a proportional weight to other instance types.