> **Experimental**
>
> `@aws-cdk/aws-imagebuilder-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# LaunchTemplateConfiguration

The launch template to apply the distributed AMI to.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/distribution-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/distribution-configuration.ts#L122)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const launchTemplate: ec2.LaunchTemplate;
const launchTemplateConfiguration: imagebuilder_alpha.LaunchTemplateConfiguration = {
  launchTemplate: launchTemplate,

  // the properties below are optional
  accountId: 'accountId',
  setDefaultVersion: false,
};
```

## Properties

- `accountId`: string — The AWS account ID that owns the launch template.

  **Default:** The current account is used

- `launchTemplate`: [ILaunchTemplate](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ILaunchTemplate.html) (required) — 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.

- `setDefaultVersion`: boolean = false — 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.
