Skip to content
v2.278.0

CfnLaunchConfigurationTemplateProps Struct ​

Properties for defining a CfnLaunchConfigurationTemplate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mgn as mgn } from 'aws-cdk-lib';
const cfnLaunchConfigurationTemplateProps: mgn.CfnLaunchConfigurationTemplateProps = {
  associatePublicIpAddress: false,
  bootMode: 'bootMode',
  copyPrivateIp: false,
  copyTags: false,
  enableMapAutoTagging: false,
  enableParametersEncryption: false,
  largeVolumeConf: {
    iops: 123,
    throughput: 123,
    volumeType: 'volumeType',
  },
  launchDisposition: 'launchDisposition',
  licensing: {
    osByol: false,
  },
  mapAutoTaggingMpeId: 'mapAutoTaggingMpeId',
  parametersEncryptionKey: 'parametersEncryptionKey',
  postLaunchActions: {
    cloudWatchLogGroupName: 'cloudWatchLogGroupName',
    deployment: 'deployment',
    s3LogBucket: 's3LogBucket',
    s3OutputKeyPrefix: 's3OutputKeyPrefix',
    ssmDocuments: [{
      actionName: 'actionName',
      ssmDocumentName: 'ssmDocumentName',

      // the properties below are optional
      externalParameters: {
        externalParametersKey: {
          dynamicPath: 'dynamicPath',
        },
      },
      mustSucceedForCutover: false,
      parameters: {
        parametersKey: [{
          parameterName: 'parameterName',
          parameterType: 'parameterType',
        }],
      },
      timeoutSeconds: 123,
    }],
  },
  smallVolumeConf: {
    iops: 123,
    throughput: 123,
    volumeType: 'volumeType',
  },
  smallVolumeMaxSize: 123,
  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_mgn as mgn

cfn_launch_configuration_template_props = mgn.CfnLaunchConfigurationTemplateProps(
    associate_public_ip_address=False,
    boot_mode="bootMode",
    copy_private_ip=False,
    copy_tags=False,
    enable_map_auto_tagging=False,
    enable_parameters_encryption=False,
    large_volume_conf=mgn.CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty(
        iops=123,
        throughput=123,
        volume_type="volumeType"
    ),
    launch_disposition="launchDisposition",
    licensing=mgn.CfnLaunchConfigurationTemplate.LicensingProperty(
        os_byol=False
    ),
    map_auto_tagging_mpe_id="mapAutoTaggingMpeId",
    parameters_encryption_key="parametersEncryptionKey",
    post_launch_actions=mgn.CfnLaunchConfigurationTemplate.PostLaunchActionsProperty(
        cloud_watch_log_group_name="cloudWatchLogGroupName",
        deployment="deployment",
        s3_log_bucket="s3LogBucket",
        s3_output_key_prefix="s3OutputKeyPrefix",
        ssm_documents=[mgn.CfnLaunchConfigurationTemplate.SsmDocumentProperty(
            action_name="actionName",
            ssm_document_name="ssmDocumentName",

            # the properties below are optional
            external_parameters={
                "external_parameters_key": mgn.CfnLaunchConfigurationTemplate.SsmExternalParameterProperty(
                    dynamic_path="dynamicPath"
                )
            },
            must_succeed_for_cutover=False,
            parameters={
                "parameters_key": [mgn.CfnLaunchConfigurationTemplate.SsmParameterStoreParameterProperty(
                    parameter_name="parameterName",
                    parameter_type="parameterType"
                )]
            },
            timeout_seconds=123
        )]
    ),
    small_volume_conf=mgn.CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty(
        iops=123,
        throughput=123,
        volume_type="volumeType"
    ),
    small_volume_max_size=123,
    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.mgn.*;

CfnLaunchConfigurationTemplateProps cfnLaunchConfigurationTemplateProps = CfnLaunchConfigurationTemplateProps.builder()
        .associatePublicIpAddress(false)
        .bootMode("bootMode")
        .copyPrivateIp(false)
        .copyTags(false)
        .enableMapAutoTagging(false)
        .enableParametersEncryption(false)
        .largeVolumeConf(LaunchTemplateDiskConfProperty.builder()
                .iops(123)
                .throughput(123)
                .volumeType("volumeType")
                .build())
        .launchDisposition("launchDisposition")
        .licensing(LicensingProperty.builder()
                .osByol(false)
                .build())
        .mapAutoTaggingMpeId("mapAutoTaggingMpeId")
        .parametersEncryptionKey("parametersEncryptionKey")
        .postLaunchActions(PostLaunchActionsProperty.builder()
                .cloudWatchLogGroupName("cloudWatchLogGroupName")
                .deployment("deployment")
                .s3LogBucket("s3LogBucket")
                .s3OutputKeyPrefix("s3OutputKeyPrefix")
                .ssmDocuments(List.of(SsmDocumentProperty.builder()
                        .actionName("actionName")
                        .ssmDocumentName("ssmDocumentName")

                        // the properties below are optional
                        .externalParameters(Map.of(
                                "externalParametersKey", SsmExternalParameterProperty.builder()
                                        .dynamicPath("dynamicPath")
                                        .build()))
                        .mustSucceedForCutover(false)
                        .parameters(Map.of(
                                "parametersKey", List.of(SsmParameterStoreParameterProperty.builder()
                                        .parameterName("parameterName")
                                        .parameterType("parameterType")
                                        .build())))
                        .timeoutSeconds(123)
                        .build()))
                .build())
        .smallVolumeConf(LaunchTemplateDiskConfProperty.builder()
                .iops(123)
                .throughput(123)
                .volumeType("volumeType")
                .build())
        .smallVolumeMaxSize(123)
        .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.MGN;

var cfnLaunchConfigurationTemplateProps = new CfnLaunchConfigurationTemplateProps {
    AssociatePublicIpAddress = false,
    BootMode = "bootMode",
    CopyPrivateIp = false,
    CopyTags = false,
    EnableMapAutoTagging = false,
    EnableParametersEncryption = false,
    LargeVolumeConf = new LaunchTemplateDiskConfProperty {
        Iops = 123,
        Throughput = 123,
        VolumeType = "volumeType"
    },
    LaunchDisposition = "launchDisposition",
    Licensing = new LicensingProperty {
        OsByol = false
    },
    MapAutoTaggingMpeId = "mapAutoTaggingMpeId",
    ParametersEncryptionKey = "parametersEncryptionKey",
    PostLaunchActions = new PostLaunchActionsProperty {
        CloudWatchLogGroupName = "cloudWatchLogGroupName",
        Deployment = "deployment",
        S3LogBucket = "s3LogBucket",
        S3OutputKeyPrefix = "s3OutputKeyPrefix",
        SsmDocuments = new [] { new SsmDocumentProperty {
            ActionName = "actionName",
            SsmDocumentName = "ssmDocumentName",

            // the properties below are optional
            ExternalParameters = new Dictionary<string, object> {
                { "externalParametersKey", new SsmExternalParameterProperty {
                    DynamicPath = "dynamicPath"
                } }
            },
            MustSucceedForCutover = false,
            Parameters = new Dictionary<string, object> {
                { "parametersKey", new [] { new SsmParameterStoreParameterProperty {
                    ParameterName = "parameterName",
                    ParameterType = "parameterType"
                } } }
            },
            TimeoutSeconds = 123
        } }
    },
    SmallVolumeConf = new LaunchTemplateDiskConfProperty {
        Iops = 123,
        Throughput = 123,
        VolumeType = "volumeType"
    },
    SmallVolumeMaxSize = 123,
    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{
	AssociatePublicIpAddress: jsii.Boolean(false),
	BootMode: jsii.String("bootMode"),
	CopyPrivateIp: jsii.Boolean(false),
	CopyTags: jsii.Boolean(false),
	EnableMapAutoTagging: jsii.Boolean(false),
	EnableParametersEncryption: jsii.Boolean(false),
	LargeVolumeConf: &LaunchTemplateDiskConfProperty{
		Iops: jsii.Number(123),
		Throughput: jsii.Number(123),
		VolumeType: jsii.String("volumeType"),
	},
	LaunchDisposition: jsii.String("launchDisposition"),
	Licensing: &LicensingProperty{
		OsByol: jsii.Boolean(false),
	},
	MapAutoTaggingMpeId: jsii.String("mapAutoTaggingMpeId"),
	ParametersEncryptionKey: jsii.String("parametersEncryptionKey"),
	PostLaunchActions: &PostLaunchActionsProperty{
		CloudWatchLogGroupName: jsii.String("cloudWatchLogGroupName"),
		Deployment: jsii.String("deployment"),
		S3LogBucket: jsii.String("s3LogBucket"),
		S3OutputKeyPrefix: jsii.String("s3OutputKeyPrefix"),
		SsmDocuments: []interface{}{
			&SsmDocumentProperty{
				ActionName: jsii.String("actionName"),
				SsmDocumentName: jsii.String("ssmDocumentName"),

				// the properties below are optional
				ExternalParameters: map[string]interface{}{
					"externalParametersKey": &SsmExternalParameterProperty{
						"dynamicPath": jsii.String("dynamicPath"),
					},
				},
				MustSucceedForCutover: jsii.Boolean(false),
				Parameters: map[string]interface{}{
					"parametersKey": []interface{}{
						&SsmParameterStoreParameterProperty{
							"parameterName": jsii.String("parameterName"),
							"parameterType": jsii.String("parameterType"),
						},
					},
				},
				TimeoutSeconds: jsii.Number(123),
			},
		},
	},
	SmallVolumeConf: &LaunchTemplateDiskConfProperty{
		Iops: jsii.Number(123),
		Throughput: jsii.Number(123),
		VolumeType: jsii.String("volumeType"),
	},
	SmallVolumeMaxSize: jsii.Number(123),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TargetInstanceTypeRightSizingMethod: jsii.String("targetInstanceTypeRightSizingMethod"),
}

Properties ​

associatePublicIpAddressoptionalboolean | IResolvableassociate_public_ip_addressoptionaltyping.Union[bool, IResolvable]associatePublicIpAddressoptionalBooleanAssociatePublicIpAddressoptionalboolAssociatePublicIpAddressoptionalinterface{} #
Whether to associate a public IP address with the launched instance.
bootModeoptionalstringboot_modeoptionalstrbootModeoptionalStringBootModeoptionalstringBootModeoptional*string #
Launch configuration template boot mode.
copyPrivateIpoptionalboolean | IResolvablecopy_private_ipoptionaltyping.Union[bool, IResolvable]copyPrivateIpoptionalBooleanCopyPrivateIpoptionalboolCopyPrivateIpoptionalinterface{} #
Whether to copy the private IP of the source server.
copyTagsoptionalboolean | IResolvablecopy_tagsoptionaltyping.Union[bool, IResolvable]copyTagsoptionalBooleanCopyTagsoptionalboolCopyTagsoptionalinterface{} #
Whether to copy the tags of the source server.
enableMapAutoTaggingoptionalboolean | IResolvableenable_map_auto_taggingoptionaltyping.Union[bool, IResolvable]enableMapAutoTaggingoptionalBooleanEnableMapAutoTaggingoptionalboolEnableMapAutoTaggingoptionalinterface{} #
Whether to enable map auto tagging.
enableParametersEncryptionoptionalboolean | IResolvableenable_parameters_encryptionoptionaltyping.Union[bool, IResolvable]enableParametersEncryptionoptionalBooleanEnableParametersEncryptionoptionalboolEnableParametersEncryptionoptionalinterface{} #
Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.
largeVolumeConfoptionalIResolvable | CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfPropertylarge_volume_confoptionaltyping.Union[IResolvable, LaunchTemplateDiskConfProperty]largeVolumeConfoptionalIResolvableLargeVolumeConfoptionalIResolvableLargeVolumeConfoptionalinterface{} #
Launch template disk configuration.
launchDispositionoptionalstringlaunch_dispositionoptionalstrlaunchDispositionoptionalStringLaunchDispositionoptionalstringLaunchDispositionoptional*string #
Launch disposition.
licensingoptionalIResolvable | CfnLaunchConfigurationTemplate.LicensingPropertylicensingoptionaltyping.Union[IResolvable, LicensingProperty]licensingoptionalIResolvableLicensingoptionalIResolvableLicensingoptionalinterface{} #
Configuration of a machine's license.
mapAutoTaggingMpeIdoptionalstringmap_auto_tagging_mpe_idoptionalstrmapAutoTaggingMpeIdoptionalStringMapAutoTaggingMpeIdoptionalstringMapAutoTaggingMpeIdoptional*string #
Launch configuration template map auto tagging MPE ID.
parametersEncryptionKeyoptionalstringparameters_encryption_keyoptionalstrparametersEncryptionKeyoptionalStringParametersEncryptionKeyoptionalstringParametersEncryptionKeyoptional*string #
ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions.
postLaunchActionsoptionalIResolvable | CfnLaunchConfigurationTemplate.PostLaunchActionsPropertypost_launch_actionsoptionaltyping.Union[IResolvable, PostLaunchActionsProperty]postLaunchActionsoptionalIResolvablePostLaunchActionsoptionalIResolvablePostLaunchActionsoptionalinterface{} #
Post launch actions to execute on the Test or Cutover instance.
smallVolumeConfoptionalIResolvable | CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfPropertysmall_volume_confoptionaltyping.Union[IResolvable, LaunchTemplateDiskConfProperty]smallVolumeConfoptionalIResolvableSmallVolumeConfoptionalIResolvableSmallVolumeConfoptionalinterface{} #
Launch template disk configuration.
smallVolumeMaxSizeoptionalnumbersmall_volume_max_sizeoptionalint | floatsmallVolumeMaxSizeoptionalNumberSmallVolumeMaxSizeoptionaldoubleSmallVolumeMaxSizeoptional*float64 #
Small volume maximum size, in GiB.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A set of tags to be associated with the Launch Configuration Template.
targetInstanceTypeRightSizingMethodoptionalstringtarget_instance_type_right_sizing_methodoptionalstrtargetInstanceTypeRightSizingMethodoptionalStringTargetInstanceTypeRightSizingMethodoptionalstringTargetInstanceTypeRightSizingMethodoptional*string #
Target instance type right-sizing method.