CfnLaunchConfigurationTemplateProps Struct
Properties for defining a CfnLaunchConfigurationTemplate.
| Source | |
|---|---|
| Type last changed |
Example
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
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
// 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();
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"
};
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
copyPrivateIpoptionalboolean | IResolvablecopy_private_ipoptionaltyping.Union[bool, IResolvable]copyPrivateIpoptionalBooleanCopyPrivateIpoptionalboolCopyPrivateIpoptionalinterface{} #Copy private IP.
copyTagsoptionalboolean | IResolvablecopy_tagsoptionaltyping.Union[bool, IResolvable]copyTagsoptionalBooleanCopyTagsoptionalboolCopyTagsoptionalinterface{} #Copy tags.
exportBucketArnoptionalstringexport_bucket_arnoptionalstrexportBucketArnoptionalStringExportBucketArnoptionalstringExportBucketArnoptional*string #S3 bucket ARN to export Source Network templates.
launchDispositionoptionalstringlaunch_dispositionoptionalstrlaunchDispositionoptionalStringLaunchDispositionoptionalstringLaunchDispositionoptional*string #Launch disposition.
launchIntoSourceInstanceoptionalboolean | IResolvablelaunch_into_source_instanceoptionaltyping.Union[bool, IResolvable]launchIntoSourceInstanceoptionalBooleanLaunchIntoSourceInstanceoptionalboolLaunchIntoSourceInstanceoptionalinterface{} #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.
licensingoptionalIResolvable | CfnLaunchConfigurationTemplate.licensingoptionaltyping.Union[IResolvable, LicensingProperty]licensingoptionalIResolvableLicensingoptionalIResolvableLicensingoptionalinterface{} #Configuration of a machine's license.
postLaunchEnabledoptionalboolean | IResolvablepost_launch_enabledoptionaltyping.Union[bool, IResolvable]postLaunchEnabledoptionalBooleanPostLaunchEnabledoptionalboolPostLaunchEnabledoptionalinterface{} #Whether we want to activate post-launch actions.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A set of tags associated with the Launch Configuration Template.
targetInstanceTypeRightSizingMethodoptionalstringtarget_instance_type_right_sizing_methodoptionalstrtargetInstanceTypeRightSizingMethodoptionalStringTargetInstanceTypeRightSizingMethodoptionalstringTargetInstanceTypeRightSizingMethodoptional*string #Target instance type right-sizing method.