Class CfnLaunchConfigurationTemplate.Builder
java.lang.Object
software.amazon.awscdk.services.mgn.CfnLaunchConfigurationTemplate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchConfigurationTemplate>
- Enclosing class:
CfnLaunchConfigurationTemplate
@Stability(Stable)
public static final class CfnLaunchConfigurationTemplate.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchConfigurationTemplate>
A fluent builder for
CfnLaunchConfigurationTemplate.-
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress(Boolean associatePublicIpAddress) Whether to associate a public IP address with the launched instance.associatePublicIpAddress(IResolvable associatePublicIpAddress) Whether to associate a public IP address with the launched instance.Launch configuration template boot mode.build()copyPrivateIp(Boolean copyPrivateIp) Whether to copy the private IP of the source server.copyPrivateIp(IResolvable copyPrivateIp) Whether to copy the private IP of the source server.Whether to copy the tags of the source server.copyTags(IResolvable copyTags) Whether to copy the tags of the source server.enableMapAutoTagging(Boolean enableMapAutoTagging) Whether to enable map auto tagging.enableMapAutoTagging(IResolvable enableMapAutoTagging) Whether to enable map auto tagging.enableParametersEncryption(Boolean enableParametersEncryption) Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.enableParametersEncryption(IResolvable enableParametersEncryption) Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.largeVolumeConf(IResolvable largeVolumeConf) Launch template disk configuration.Launch template disk configuration.launchDisposition(String launchDisposition) Launch disposition.licensing(IResolvable licensing) Configuration of a machine's license.Configuration of a machine's license.mapAutoTaggingMpeId(String mapAutoTaggingMpeId) Launch configuration template map auto tagging MPE ID.parametersEncryptionKey(String parametersEncryptionKey) ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions.postLaunchActions(IResolvable postLaunchActions) Post launch actions to execute on the Test or Cutover instance.postLaunchActions(CfnLaunchConfigurationTemplate.PostLaunchActionsProperty postLaunchActions) Post launch actions to execute on the Test or Cutover instance.smallVolumeConf(IResolvable smallVolumeConf) Launch template disk configuration.Launch template disk configuration.smallVolumeMaxSize(Number smallVolumeMaxSize) Small volume maximum size, in GiB.A set of tags to be associated with the Launch Configuration Template.targetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) Target instance type right-sizing method.
-
Method Details
-
create
@Stability(Stable) public static CfnLaunchConfigurationTemplate.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnLaunchConfigurationTemplate.Builder.
-
associatePublicIpAddress
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) Whether to associate a public IP address with the launched instance.- Parameters:
associatePublicIpAddress- Whether to associate a public IP address with the launched instance. This parameter is required.- Returns:
this- See Also:
-
associatePublicIpAddress
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder associatePublicIpAddress(IResolvable associatePublicIpAddress) Whether to associate a public IP address with the launched instance.- Parameters:
associatePublicIpAddress- Whether to associate a public IP address with the launched instance. This parameter is required.- Returns:
this- See Also:
-
bootMode
Launch configuration template boot mode.- Parameters:
bootMode- Launch configuration template boot mode. This parameter is required.- Returns:
this- See Also:
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder copyPrivateIp(Boolean copyPrivateIp) Whether to copy the private IP of the source server.- Parameters:
copyPrivateIp- Whether to copy the private IP of the source server. This parameter is required.- Returns:
this- See Also:
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder copyPrivateIp(IResolvable copyPrivateIp) Whether to copy the private IP of the source server.- Parameters:
copyPrivateIp- Whether to copy the private IP of the source server. This parameter is required.- Returns:
this- See Also:
-
copyTags
Whether to copy the tags of the source server.- Parameters:
copyTags- Whether to copy the tags of the source server. This parameter is required.- Returns:
this- See Also:
-
copyTags
Whether to copy the tags of the source server.- Parameters:
copyTags- Whether to copy the tags of the source server. This parameter is required.- Returns:
this- See Also:
-
enableMapAutoTagging
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder enableMapAutoTagging(Boolean enableMapAutoTagging) Whether to enable map auto tagging.- Parameters:
enableMapAutoTagging- Whether to enable map auto tagging. This parameter is required.- Returns:
this- See Also:
-
enableMapAutoTagging
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder enableMapAutoTagging(IResolvable enableMapAutoTagging) Whether to enable map auto tagging.- Parameters:
enableMapAutoTagging- Whether to enable map auto tagging. This parameter is required.- Returns:
this- See Also:
-
enableParametersEncryption
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder enableParametersEncryption(Boolean enableParametersEncryption) Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.- Parameters:
enableParametersEncryption- Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions. This parameter is required.- Returns:
this- See Also:
-
enableParametersEncryption
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder enableParametersEncryption(IResolvable enableParametersEncryption) Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.- Parameters:
enableParametersEncryption- Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions. This parameter is required.- Returns:
this- See Also:
-
largeVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder largeVolumeConf(IResolvable largeVolumeConf) Launch template disk configuration.- Parameters:
largeVolumeConf- Launch template disk configuration. This parameter is required.- Returns:
this- See Also:
-
largeVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder largeVolumeConf(CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty largeVolumeConf) Launch template disk configuration.- Parameters:
largeVolumeConf- Launch template disk configuration. This parameter is required.- Returns:
this- See Also:
-
launchDisposition
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder launchDisposition(String launchDisposition) Launch disposition.- Parameters:
launchDisposition- Launch disposition. This parameter is required.- Returns:
this- See Also:
-
licensing
Configuration of a machine's license.- Parameters:
licensing- Configuration of a machine's license. This parameter is required.- Returns:
this- See Also:
-
licensing
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder licensing(CfnLaunchConfigurationTemplate.LicensingProperty licensing) Configuration of a machine's license.- Parameters:
licensing- Configuration of a machine's license. This parameter is required.- Returns:
this- See Also:
-
mapAutoTaggingMpeId
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder mapAutoTaggingMpeId(String mapAutoTaggingMpeId) Launch configuration template map auto tagging MPE ID.- Parameters:
mapAutoTaggingMpeId- Launch configuration template map auto tagging MPE ID. This parameter is required.- Returns:
this- See Also:
-
parametersEncryptionKey
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder parametersEncryptionKey(String parametersEncryptionKey) ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions.- Parameters:
parametersEncryptionKey- ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions. This parameter is required.- Returns:
this- See Also:
-
postLaunchActions
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder postLaunchActions(IResolvable postLaunchActions) Post launch actions to execute on the Test or Cutover instance.- Parameters:
postLaunchActions- Post launch actions to execute on the Test or Cutover instance. This parameter is required.- Returns:
this- See Also:
-
postLaunchActions
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder postLaunchActions(CfnLaunchConfigurationTemplate.PostLaunchActionsProperty postLaunchActions) Post launch actions to execute on the Test or Cutover instance.- Parameters:
postLaunchActions- Post launch actions to execute on the Test or Cutover instance. This parameter is required.- Returns:
this- See Also:
-
smallVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder smallVolumeConf(IResolvable smallVolumeConf) Launch template disk configuration.- Parameters:
smallVolumeConf- Launch template disk configuration. This parameter is required.- Returns:
this- See Also:
-
smallVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder smallVolumeConf(CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty smallVolumeConf) Launch template disk configuration.- Parameters:
smallVolumeConf- Launch template disk configuration. This parameter is required.- Returns:
this- See Also:
-
smallVolumeMaxSize
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder smallVolumeMaxSize(Number smallVolumeMaxSize) Small volume maximum size, in GiB.- Parameters:
smallVolumeMaxSize- Small volume maximum size, in GiB. This parameter is required.- Returns:
this- See Also:
-
tags
A set of tags to be associated with the Launch Configuration Template.- Parameters:
tags- A set of tags to be associated with the Launch Configuration Template. This parameter is required.- Returns:
this- See Also:
-
targetInstanceTypeRightSizingMethod
@Stability(Stable) public CfnLaunchConfigurationTemplate.Builder targetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) Target instance type right-sizing method.- Parameters:
targetInstanceTypeRightSizingMethod- Target instance type right-sizing method. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchConfigurationTemplate>- Returns:
- a newly built instance of
CfnLaunchConfigurationTemplate.
-