Class: Aws::AutoScaling::Types::LaunchTemplate
- Inherits:
-
Struct
- Object
- Struct
- Aws::AutoScaling::Types::LaunchTemplate
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-autoscaling/types.rb
Overview
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",
},
],
}
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.
Instance Attribute Summary collapse
-
#launch_template_specification ⇒ Types::LaunchTemplateSpecification
The launch template to use.
-
#overrides ⇒ Array<Types::LaunchTemplateOverrides>
Any parameters that you specify override the same parameters in the launch template.
Instance Attribute Details
#launch_template_specification ⇒ Types::LaunchTemplateSpecification
The launch template to use. You must specify either the launch template ID or launch template name in the request.
2856 2857 2858 2859 2860 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 2856 class LaunchTemplate < Struct.new( :launch_template_specification, :overrides) include Aws::Structure end |
#overrides ⇒ Array<Types::LaunchTemplateOverrides>
Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type.
You must specify between 2 and 20 overrides.
2856 2857 2858 2859 2860 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 2856 class LaunchTemplate < Struct.new( :launch_template_specification, :overrides) include Aws::Structure end |