LaunchTemplateConfiguration
- class aws_cdk.aws_imagebuilder_alpha.LaunchTemplateConfiguration(*, launch_template, account_id=None, set_default_version=None)
Bases:
object(experimental) The launch template to apply the distributed AMI to.
- Parameters:
launch_template (
ILaunchTemplate) – (experimental) The launch template to apply the distributed AMI to. A new launch template version will be created for the provided launch template with the distributed AMI applied. Note: The launch template should expose alaunchTemplateId. Templates imported by name only are not supported.account_id (
Optional[str]) – (experimental) The AWS account ID that owns the launch template. Default: The current account is usedset_default_version (
Optional[bool]) – (experimental) Whether to set the new launch template version that is created as the default launch template version. After creation of the launch template version containing the distributed AMI, it will be automatically set as the default version for the launch template. Default: false
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_imagebuilder_alpha as imagebuilder_alpha from aws_cdk import aws_ec2 as ec2 # launch_template: ec2.LaunchTemplate launch_template_configuration = imagebuilder_alpha.LaunchTemplateConfiguration( launch_template=launch_template, # the properties below are optional account_id="accountId", set_default_version=False )
Attributes
- account_id
(experimental) The AWS account ID that owns the launch template.
- Default:
The current account is used
- Stability:
experimental
- launch_template
(experimental) The launch template to apply the distributed AMI to.
A new launch template version will be created for the provided launch template with the distributed AMI applied.
Note: The launch template should expose a
launchTemplateId. Templates imported by name only are not supported.- Stability:
experimental
- set_default_version
(experimental) Whether to set the new launch template version that is created as the default launch template version.
After creation of the launch template version containing the distributed AMI, it will be automatically set as the default version for the launch template.
- Default:
false
- Stability:
experimental