Class CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateSpecificationProperty>
- Enclosing interface:
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateSpecificationProperty>
A builder for
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.launchTemplateId
(String launchTemplateId) launchTemplateName
(String launchTemplateName) Sets the value ofCfnAutoScalingGroup.LaunchTemplateSpecificationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder version(String version) Sets the value ofCfnAutoScalingGroup.LaunchTemplateSpecificationProperty.getVersion()
- Parameters:
version
- The version number of the launch template. This parameter is required. Specifying$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .For an example of using the
Fn::GetAtt
function, see the Examples section of theAWS::AutoScaling::AutoScalingGroup
resource.- Returns:
this
-
launchTemplateId
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateId(String launchTemplateId) - Parameters:
launchTemplateId
- The ID of the launch template. You must specify theLaunchTemplateID
or theLaunchTemplateName
, but not both.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateName(String launchTemplateName) - Parameters:
launchTemplateName
- The name of the launch template. You must specify theLaunchTemplateName
or theLaunchTemplateID
, but not both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateSpecificationProperty>
- Returns:
- a new instance of
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-