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

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc
# my_launch_template: ec2.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

version

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

Default:
  • the default version of the launch template

Stability:

experimental