LaunchTemplateSpecification

class aws_cdk.aws_batch.LaunchTemplateSpecification(*, launch_template_name, version=None)

Bases: object

(experimental) Launch template property specification.

Parameters
  • launch_template_name (str) – (experimental) The Launch template name.

  • version (Optional[str]) – (experimental) The launch template version to be used (optional). Default: - the default version of the launch template

Stability

experimental

Example:

# vpc is of type Vpc
# my_launch_template is of type CfnLaunchTemplate


my_compute_env = batch.ComputeEnvironment(self, "ComputeEnv",
    compute_resources=batch.ComputeResources(
        launch_template=batch.LaunchTemplateSpecification(
            launch_template_name=my_launch_template.launch_template_name
        ),
        vpc=vpc
    ),
    compute_environment_name="MyStorageCapableComputeEnvironment"
)

Attributes

launch_template_name

(experimental) The Launch template name.

Stability

experimental

Return type

str

version

(experimental) The launch template version to be used (optional).

Default
  • the default version of the launch template

Stability

experimental

Return type

Optional[str]