class Aws::Batch::Types::LaunchTemplateSpecification

An object representing a launch template associated with a compute resource. You must specify either the launch template ID or launch template name in the request, but not both.

If security groups are specified using both the `securityGroupIds` parameter of `CreateComputeEnvironment` and the launch template, the values in the `securityGroupIds` parameter of `CreateComputeEnvironment` will be used.

<note markdown=“1”> This object isn't applicable to jobs that are running on Fargate resources.

</note>

@note When making an API call, you may pass LaunchTemplateSpecification

data as a hash:

    {
      launch_template_id: "String",
      launch_template_name: "String",
      version: "String",
    }

@!attribute [rw] launch_template_id

The ID of the launch template.
@return [String]

@!attribute [rw] launch_template_name

The name of the launch template.
@return [String]

@!attribute [rw] version

The version number of the launch template, `$Latest`, or `$Default`.

If the value is `$Latest`, the latest version of the launch template
is used. If the value is `$Default`, the default version of the
launch template is used.

After the compute environment is created, the launch template
version that's used isn't changed, even if the `$Default` or
`$Latest` version for the launch template is updated. To use a new
launch template version, create a new compute environment, add the
new compute environment to the existing job queue, remove the old
compute environment from the job queue, and delete the old compute
environment.

Default: `$Default`.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LaunchTemplateSpecification AWS API Documentation

Constants

SENSITIVE