Skip to content
v2.277.0

LaunchTemplateConfigurationProperty Struct ​

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

Example ​

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
# 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
// 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();
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
};
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 ​

accountIdoptionalstringaccount_idoptionalstraccountIdoptionalStringAccountIdoptionalstringAccountIdoptional*string #
The account ID that this configuration applies to.
launchTemplateIdoptionalstringlaunch_template_idoptionalstrlaunchTemplateIdoptionalStringLaunchTemplateIdoptionalstringLaunchTemplateIdoptional*string #
Identifies the Amazon EC2 launch template to use.
setDefaultVersionoptionalboolean | IResolvableset_default_versionoptionaltyping.Union[bool, IResolvable]setDefaultVersionoptionalBooleanSetDefaultVersionoptionalboolSetDefaultVersionoptionalinterface{} #
Set the specified Amazon EC2 launch template as the default launch template for the specified account.