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.drs.CfnLaunchConfigurationTemplate
All Implemented Interfaces:
IInspectable, ILaunchConfigurationTemplateRef, IEnvironmentAware, 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:49.581Z") @Stability(Stable) public class CfnLaunchConfigurationTemplate extends CfnResource implements IInspectable, ILaunchConfigurationTemplateRef, ITaggableV2
Account level Launch Configuration Template for AWS Elastic Disaster Recovery.

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.drs.*;
 CfnLaunchConfigurationTemplate cfnLaunchConfigurationTemplate = CfnLaunchConfigurationTemplate.Builder.create(this, "MyCfnLaunchConfigurationTemplate")
         .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::DRS::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 new AWS::DRS::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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      ARN of the Launch Configuration Template.
    • getAttrLaunchConfigurationTemplateId

      @Stability(Stable) @NotNull public String getAttrLaunchConfigurationTemplateId()
      ID of the Launch Configuration Template.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getLaunchConfigurationTemplateRef

      @Stability(Stable) @NotNull public LaunchConfigurationTemplateReference getLaunchConfigurationTemplateRef()
      A reference to a LaunchConfigurationTemplate resource.
      Specified by:
      getLaunchConfigurationTemplateRef in interface ILaunchConfigurationTemplateRef
    • getCopyPrivateIp

      @Stability(Stable) @Nullable public Object getCopyPrivateIp()
      Copy private IP.

      Returns union: either Boolean or IResolvable

    • setCopyPrivateIp

      @Stability(Stable) public void setCopyPrivateIp(@Nullable Boolean value)
      Copy private IP.
    • setCopyPrivateIp

      @Stability(Stable) public void setCopyPrivateIp(@Nullable IResolvable value)
      Copy private IP.
    • getCopyTags

      @Stability(Stable) @Nullable public Object getCopyTags()
      Copy tags.

      Returns union: either Boolean or IResolvable

    • setCopyTags

      @Stability(Stable) public void setCopyTags(@Nullable Boolean value)
      Copy tags.
    • setCopyTags

      @Stability(Stable) public void setCopyTags(@Nullable IResolvable value)
      Copy tags.
    • getExportBucketArn

      @Stability(Stable) @Nullable public String getExportBucketArn()
      S3 bucket ARN to export Source Network templates.
    • setExportBucketArn

      @Stability(Stable) public void setExportBucketArn(@Nullable String value)
      S3 bucket ARN to export Source Network templates.
    • getLaunchDisposition

      @Stability(Stable) @Nullable public String getLaunchDisposition()
      Launch disposition.
    • setLaunchDisposition

      @Stability(Stable) public void setLaunchDisposition(@Nullable String value)
      Launch disposition.
    • getLaunchIntoSourceInstance

      @Stability(Stable) @Nullable public Object getLaunchIntoSourceInstance()
      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.

      Returns union: either Boolean or IResolvable

    • setLaunchIntoSourceInstance

      @Stability(Stable) public void setLaunchIntoSourceInstance(@Nullable Boolean value)
      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.
    • setLaunchIntoSourceInstance

      @Stability(Stable) public void setLaunchIntoSourceInstance(@Nullable IResolvable value)
      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.
    • getLicensing

      @Stability(Stable) @Nullable public Object getLicensing()
      Configuration of a machine's license.

      Returns union: either IResolvable or CfnLaunchConfigurationTemplate.LicensingProperty

    • setLicensing

      @Stability(Stable) public void setLicensing(@Nullable IResolvable value)
      Configuration of a machine's license.
    • setLicensing

      @Stability(Stable) public void setLicensing(@Nullable CfnLaunchConfigurationTemplate.LicensingProperty value)
      Configuration of a machine's license.
    • getPostLaunchEnabled

      @Stability(Stable) @Nullable public Object getPostLaunchEnabled()
      Whether we want to activate post-launch actions.

      Returns union: either Boolean or IResolvable

    • setPostLaunchEnabled

      @Stability(Stable) public void setPostLaunchEnabled(@Nullable Boolean value)
      Whether we want to activate post-launch actions.
    • setPostLaunchEnabled

      @Stability(Stable) public void setPostLaunchEnabled(@Nullable IResolvable value)
      Whether we want to activate post-launch actions.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A set of tags associated with the Launch Configuration Template.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A set of tags associated with the Launch Configuration Template.
    • getTargetInstanceTypeRightSizingMethod

      @Stability(Stable) @Nullable public String getTargetInstanceTypeRightSizingMethod()
      Target instance type right-sizing method.
    • setTargetInstanceTypeRightSizingMethod

      @Stability(Stable) public void setTargetInstanceTypeRightSizingMethod(@Nullable String value)
      Target instance type right-sizing method.