launchTemplateSpecification

@JvmName(name = "agqyjyegaicwvhfx")
suspend fun launchTemplateSpecification(value: Output<LaunchTemplateSpecificationArgs>)
@JvmName(name = "qddaljdxhtkvydhq")
suspend fun launchTemplateSpecification(value: LaunchTemplateSpecificationArgs?)

Parameters

value

Provides a launch template for the specified instance type or set of instance requirements. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's specified in the `LaunchTemplate` definition. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide. You can specify up to 20 launch templates per Auto Scaling group. The launch templates specified in the overrides and in the `LaunchTemplate` definition count towards this limit. Specifies a launch template to use when provisioning EC2 instances for an Auto Scaling group. You must specify the following: + The ID or the name of the launch template, but not both. + The version of the launch template. `LaunchTemplateSpecification` is property of the AWS::AutoScaling::AutoScalingGroup resource. It is also a property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplate and AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property types. For information about creating a launch template, see AWS::EC2::LaunchTemplate and Create a launch template for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. For examples of launch templates, see Auto scaling template snippets and the Examples section in the `AWS::EC2::LaunchTemplate` resource.


@JvmName(name = "xqgcotckvnopqsec")
suspend fun launchTemplateSpecification(argument: suspend LaunchTemplateSpecificationArgsBuilder.() -> Unit)

Parameters

argument

Provides a launch template for the specified instance type or set of instance requirements. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's specified in the `LaunchTemplate` definition. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide. You can specify up to 20 launch templates per Auto Scaling group. The launch templates specified in the overrides and in the `LaunchTemplate` definition count towards this limit. Specifies a launch template to use when provisioning EC2 instances for an Auto Scaling group. You must specify the following: + The ID or the name of the launch template, but not both. + The version of the launch template. `LaunchTemplateSpecification` is property of the AWS::AutoScaling::AutoScalingGroup resource. It is also a property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplate and AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property types. For information about creating a launch template, see AWS::EC2::LaunchTemplate and Create a launch template for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. For examples of launch templates, see Auto scaling template snippets and the Examples section in the `AWS::EC2::LaunchTemplate` resource.