# CfnLaunchConfigurationTemplateProps

Properties for defining a `CfnLaunchConfigurationTemplate`.

Used as props by: [CfnLaunchConfigurationTemplate](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_drs.CfnLaunchConfigurationTemplate.html)

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_drs as drs } from 'aws-cdk-lib';
const cfnLaunchConfigurationTemplateProps: drs.CfnLaunchConfigurationTemplateProps = {
  copyPrivateIp: false,
  copyTags: false,
  exportBucketArn: 'exportBucketArn',
  launchDisposition: 'launchDisposition',
  launchIntoSourceInstance: false,
  licensing: {
    osByol: false,
  },
  postLaunchEnabled: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
  targetInstanceTypeRightSizingMethod: 'targetInstanceTypeRightSizingMethod',
};
```

Python:

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

cfn_launch_configuration_template_props = drs.CfnLaunchConfigurationTemplateProps(
    copy_private_ip=False,
    copy_tags=False,
    export_bucket_arn="exportBucketArn",
    launch_disposition="launchDisposition",
    launch_into_source_instance=False,
    licensing=drs.CfnLaunchConfigurationTemplate.LicensingProperty(
        os_byol=False
    ),
    post_launch_enabled=False,
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    target_instance_type_right_sizing_method="targetInstanceTypeRightSizingMethod"
)
```

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.drs.*;

CfnLaunchConfigurationTemplateProps cfnLaunchConfigurationTemplateProps = CfnLaunchConfigurationTemplateProps.builder()
        .copyPrivateIp(false)
        .copyTags(false)
        .exportBucketArn("exportBucketArn")
        .launchDisposition("launchDisposition")
        .launchIntoSourceInstance(false)
        .licensing(LicensingProperty.builder()
                .osByol(false)
                .build())
        .postLaunchEnabled(false)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .targetInstanceTypeRightSizingMethod("targetInstanceTypeRightSizingMethod")
        .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.DRS;

var cfnLaunchConfigurationTemplateProps = new CfnLaunchConfigurationTemplateProps {
    CopyPrivateIp = false,
    CopyTags = false,
    ExportBucketArn = "exportBucketArn",
    LaunchDisposition = "launchDisposition",
    LaunchIntoSourceInstance = false,
    Licensing = new LicensingProperty {
        OsByol = false
    },
    PostLaunchEnabled = false,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    TargetInstanceTypeRightSizingMethod = "targetInstanceTypeRightSizingMethod"
};
```

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"

cfnLaunchConfigurationTemplateProps := &CfnLaunchConfigurationTemplateProps{
	CopyPrivateIp: jsii.Boolean(false),
	CopyTags: jsii.Boolean(false),
	ExportBucketArn: jsii.String("exportBucketArn"),
	LaunchDisposition: jsii.String("launchDisposition"),
	LaunchIntoSourceInstance: jsii.Boolean(false),
	Licensing: &LicensingProperty{
		OsByol: jsii.Boolean(false),
	},
	PostLaunchEnabled: jsii.Boolean(false),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TargetInstanceTypeRightSizingMethod: jsii.String("targetInstanceTypeRightSizingMethod"),
}
```

## Properties

- `copyPrivateIp`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Copy private IP.

- `copyTags`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Copy tags.

- `exportBucketArn`: string — S3 bucket ARN to export Source Network templates.

- `launchDisposition`: string — Launch disposition.

- `launchIntoSourceInstance`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — DRS will set the 'launch into instance ID' of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.

- `licensing`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLaunchConfigurationTemplate.LicensingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_drs.CfnLaunchConfigurationTemplate.LicensingProperty.html) — Configuration of a machine's license.

- `postLaunchEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether we want to activate post-launch actions.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A set of tags associated with the Launch Configuration Template.

- `targetInstanceTypeRightSizingMethod`: string — Target instance type right-sizing method.
