# LaunchTemplateConfigurationProperty

Identifies an Amazon EC2 launch template to use for a specific account.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const launchTemplateConfigurationProperty: imagebuilder.CfnDistributionConfiguration.LaunchTemplateConfigurationProperty = {
  accountId: 'accountId',
  launchTemplateId: 'launchTemplateId',
  setDefaultVersion: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_imagebuilder as imagebuilder

launch_template_configuration_property = imagebuilder.CfnDistributionConfiguration.LaunchTemplateConfigurationProperty(
    account_id="accountId",
    launch_template_id="launchTemplateId",
    set_default_version=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;

LaunchTemplateConfigurationProperty launchTemplateConfigurationProperty = LaunchTemplateConfigurationProperty.builder()
        .accountId("accountId")
        .launchTemplateId("launchTemplateId")
        .setDefaultVersion(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;

var launchTemplateConfigurationProperty = new LaunchTemplateConfigurationProperty {
    AccountId = "accountId",
    LaunchTemplateId = "launchTemplateId",
    SetDefaultVersion = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

launchTemplateConfigurationProperty := &LaunchTemplateConfigurationProperty{
	AccountId: jsii.String("accountId"),
	LaunchTemplateId: jsii.String("launchTemplateId"),
	SetDefaultVersion: jsii.Boolean(false),
}
```

## Properties

- `accountId`: string — The account ID that this configuration applies to.

- `launchTemplateId`: string — Identifies the Amazon EC2 launch template to use.

- `setDefaultVersion`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Set the specified Amazon EC2 launch template as the default launch template for the specified account.
