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
Constructors -
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$Latestor$Defaultfor the template version number is not supported. However, you can specifyLatestVersionNumberorDefaultVersionNumberusing theFn::GetAttintrinsic function. For more information, see Fn::GetAtt .For an example of using the
Fn::GetAttfunction, see the Examples section of theAWS::AutoScaling::AutoScalingGroupresource.- Returns:
this
-
launchTemplateId
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateId(String launchTemplateId) - Parameters:
launchTemplateId- The ID of the launch template. You must specify theLaunchTemplateIDor 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 theLaunchTemplateNameor theLaunchTemplateID, but not both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateSpecificationProperty>- Returns:
- a new instance of
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-