public static final class CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder
extends java.lang.Object
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty |
build()
Builds the configured instance.
|
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder |
launchTemplateId(java.lang.String launchTemplateId)
|
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder |
launchTemplateName(java.lang.String launchTemplateName)
|
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder |
version(java.lang.String version)
Sets the value of
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.getVersion() |
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder version(java.lang.String version)
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.getVersion()
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 specify LatestVersionNumber
or DefaultVersionNumber
using the Fn::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.
this
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateId(java.lang.String launchTemplateId)
launchTemplateId
- The ID of the launch template.
You must specify the LaunchTemplateID
or the LaunchTemplateName
, but not both.this
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateName(java.lang.String launchTemplateName)
launchTemplateName
- The name of the launch template.
You must specify the LaunchTemplateName
or the LaunchTemplateID
, but not both.this
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty build()
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided