Class CfnLaunchConfigurationTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mgn.CfnLaunchConfigurationTemplate
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ILaunchConfigurationTemplateRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:56.184Z")
@Stability(Stable)
public class CfnLaunchConfigurationTemplate
extends CfnResource
implements IInspectable, ILaunchConfigurationTemplateRef, ITaggableV2
Account level Launch Configuration Template for AWS Application Migration Service.
Example:
// 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.*;
CfnLaunchConfigurationTemplate cfnLaunchConfigurationTemplate = CfnLaunchConfigurationTemplate.Builder.create(this, "MyCfnLaunchConfigurationTemplate")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLaunchConfigurationTemplate.static interfaceLaunch template disk configuration.static interfaceConfiguration of a machine's license.static interfacePost launch actions to execute on the Test or Cutover instance.static interfaceAn AWS Systems Manager Document to execute as a post launch action.static interfaceAn AWS Systems Manager Document external parameter.static interfaceAn AWS Systems Manager Parameter Store parameter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.mgn.ILaunchConfigurationTemplateRef
ILaunchConfigurationTemplateRef.Jsii$Default, ILaunchConfigurationTemplateRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnLaunchConfigurationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLaunchConfigurationTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnLaunchConfigurationTemplate(software.constructs.Construct scope, String id) Create a newAWS::MGN::LaunchConfigurationTemplate.CfnLaunchConfigurationTemplate(software.constructs.Construct scope, String id, CfnLaunchConfigurationTemplateProps props) Create a newAWS::MGN::LaunchConfigurationTemplate. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringWhether to associate a public IP address with the launched instance.ARN of the Launch Configuration Template.ID of the EC2 launch template backing the Launch Configuration Template.ID of the Launch Configuration Template.Launch configuration template boot mode.Tag Manager which manages the tags for this resource.Whether to copy the private IP of the source server.Whether to copy the tags of the source server.Whether to enable map auto tagging.Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.Launch template disk configuration.A reference to a LaunchConfigurationTemplate resource.Launch disposition.Configuration of a machine's license.Launch configuration template map auto tagging MPE ID.ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions.Post launch actions to execute on the Test or Cutover instance.Launch template disk configuration.Small volume maximum size, in GiB.getTags()A set of tags to be associated with the Launch Configuration Template.Target instance type right-sizing method.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnLaunchConfigurationTemplate.renderProperties(Map<String, Object> props) voidWhether to associate a public IP address with the launched instance.voidWhether to associate a public IP address with the launched instance.voidsetBootMode(String value) Launch configuration template boot mode.voidsetCopyPrivateIp(Boolean value) Whether to copy the private IP of the source server.voidsetCopyPrivateIp(IResolvable value) Whether to copy the private IP of the source server.voidsetCopyTags(Boolean value) Whether to copy the tags of the source server.voidsetCopyTags(IResolvable value) Whether to copy the tags of the source server.voidsetEnableMapAutoTagging(Boolean value) Whether to enable map auto tagging.voidWhether to enable map auto tagging.voidWhether to enable encryption of the AWS Systems Manager parameters used by post launch actions.voidWhether to enable encryption of the AWS Systems Manager parameters used by post launch actions.voidsetLargeVolumeConf(IResolvable value) Launch template disk configuration.voidLaunch template disk configuration.voidsetLaunchDisposition(String value) Launch disposition.voidsetLicensing(IResolvable value) Configuration of a machine's license.voidConfiguration of a machine's license.voidsetMapAutoTaggingMpeId(String value) Launch configuration template map auto tagging MPE ID.voidsetParametersEncryptionKey(String value) ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions.voidsetPostLaunchActions(IResolvable value) Post launch actions to execute on the Test or Cutover instance.voidPost launch actions to execute on the Test or Cutover instance.voidsetSmallVolumeConf(IResolvable value) Launch template disk configuration.voidLaunch template disk configuration.voidsetSmallVolumeMaxSize(Number value) Small volume maximum size, in GiB.voidA set of tags to be associated with the Launch Configuration Template.voidTarget instance type right-sizing method.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLaunchConfigurationTemplate
protected CfnLaunchConfigurationTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLaunchConfigurationTemplate
protected CfnLaunchConfigurationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLaunchConfigurationTemplate
@Stability(Stable) public CfnLaunchConfigurationTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnLaunchConfigurationTemplateProps props) Create a newAWS::MGN::LaunchConfigurationTemplate.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnLaunchConfigurationTemplate
@Stability(Stable) public CfnLaunchConfigurationTemplate(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::MGN::LaunchConfigurationTemplate.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForLaunchConfigurationTemplate
@Stability(Stable) @NotNull public static String arnForLaunchConfigurationTemplate(@NotNull ILaunchConfigurationTemplateRef resource) - Parameters:
resource- This parameter is required.
-
isCfnLaunchConfigurationTemplate
@Stability(Stable) @NotNull public static Boolean isCfnLaunchConfigurationTemplate(@NotNull Object x) Checks whether the given object is a CfnLaunchConfigurationTemplate.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
ARN of the Launch Configuration Template. -
getAttrEc2LaunchTemplateId
ID of the EC2 launch template backing the Launch Configuration Template. -
getAttrLaunchConfigurationTemplateId
ID of the Launch Configuration Template. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getLaunchConfigurationTemplateRef
@Stability(Stable) @NotNull public LaunchConfigurationTemplateReference getLaunchConfigurationTemplateRef()A reference to a LaunchConfigurationTemplate resource.- Specified by:
getLaunchConfigurationTemplateRefin interfaceILaunchConfigurationTemplateRef
-
getAssociatePublicIpAddress
Whether to associate a public IP address with the launched instance.Returns union: either
BooleanorIResolvable -
setAssociatePublicIpAddress
Whether to associate a public IP address with the launched instance. -
setAssociatePublicIpAddress
Whether to associate a public IP address with the launched instance. -
getBootMode
Launch configuration template boot mode. -
setBootMode
Launch configuration template boot mode. -
getCopyPrivateIp
Whether to copy the private IP of the source server.Returns union: either
BooleanorIResolvable -
setCopyPrivateIp
Whether to copy the private IP of the source server. -
setCopyPrivateIp
Whether to copy the private IP of the source server. -
getCopyTags
Whether to copy the tags of the source server.Returns union: either
BooleanorIResolvable -
setCopyTags
Whether to copy the tags of the source server. -
setCopyTags
Whether to copy the tags of the source server. -
getEnableMapAutoTagging
Whether to enable map auto tagging.Returns union: either
BooleanorIResolvable -
setEnableMapAutoTagging
Whether to enable map auto tagging. -
setEnableMapAutoTagging
Whether to enable map auto tagging. -
getEnableParametersEncryption
Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.Returns union: either
BooleanorIResolvable -
setEnableParametersEncryption
Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions. -
setEnableParametersEncryption
Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions. -
getLargeVolumeConf
Launch template disk configuration.Returns union: either
IResolvableorCfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty -
setLargeVolumeConf
Launch template disk configuration. -
setLargeVolumeConf
@Stability(Stable) public void setLargeVolumeConf(@Nullable CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty value) Launch template disk configuration. -
getLaunchDisposition
Launch disposition. -
setLaunchDisposition
Launch disposition. -
getLicensing
Configuration of a machine's license.Returns union: either
IResolvableorCfnLaunchConfigurationTemplate.LicensingProperty -
setLicensing
Configuration of a machine's license. -
setLicensing
@Stability(Stable) public void setLicensing(@Nullable CfnLaunchConfigurationTemplate.LicensingProperty value) Configuration of a machine's license. -
getMapAutoTaggingMpeId
Launch configuration template map auto tagging MPE ID. -
setMapAutoTaggingMpeId
Launch configuration template map auto tagging MPE ID. -
getParametersEncryptionKey
ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions. -
setParametersEncryptionKey
ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions. -
getPostLaunchActions
Post launch actions to execute on the Test or Cutover instance.Returns union: either
IResolvableorCfnLaunchConfigurationTemplate.PostLaunchActionsProperty -
setPostLaunchActions
Post launch actions to execute on the Test or Cutover instance. -
setPostLaunchActions
@Stability(Stable) public void setPostLaunchActions(@Nullable CfnLaunchConfigurationTemplate.PostLaunchActionsProperty value) Post launch actions to execute on the Test or Cutover instance. -
getSmallVolumeConf
Launch template disk configuration.Returns union: either
IResolvableorCfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty -
setSmallVolumeConf
Launch template disk configuration. -
setSmallVolumeConf
@Stability(Stable) public void setSmallVolumeConf(@Nullable CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty value) Launch template disk configuration. -
getSmallVolumeMaxSize
Small volume maximum size, in GiB. -
setSmallVolumeMaxSize
Small volume maximum size, in GiB. -
getTags
A set of tags to be associated with the Launch Configuration Template. -
setTags
A set of tags to be associated with the Launch Configuration Template. -
getTargetInstanceTypeRightSizingMethod
Target instance type right-sizing method. -
setTargetInstanceTypeRightSizingMethod
Target instance type right-sizing method.
-