class Aws::AutoScaling::Types::LaunchTemplate
Describes a launch template and overrides.
You specify these properties as part of a mixed instances policy.
When you update the launch template or overrides in the UpdateAutoScalingGroup API call, 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.
@note When making an API call, you may pass LaunchTemplate
data as a hash: { launch_template_specification: { launch_template_id: "XmlStringMaxLen255", launch_template_name: "LaunchTemplateName", version: "XmlStringMaxLen255", }, overrides: [ { instance_type: "XmlStringMaxLen255", weighted_capacity: "XmlStringMaxLen32", launch_template_specification: { launch_template_id: "XmlStringMaxLen255", launch_template_name: "LaunchTemplateName", version: "XmlStringMaxLen255", }, }, ], }
@!attribute [rw] launch_template_specification
The launch template to use. @return [Types::LaunchTemplateSpecification]
@!attribute [rw] overrides
Any properties that you specify override the same properties in the launch template. If not provided, Amazon EC2 Auto Scaling uses the instance type specified in the launch template when it launches an instance. @return [Array<Types::LaunchTemplateOverrides>]
@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
Constants
- SENSITIVE