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. This parameter is required.
CloudFormation does not support specifying $Latest, or $Default for the template version number. However, you can specify LatestVersionNumber
or DefaultVersionNumber
using the Fn::GetAtt
function.
For an example of using the
Fn::GetAtt
function, see the Examples section of theAWS::AutoScaling::AutoScalingGroup
reference.
this
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateId(java.lang.String launchTemplateId)
launchTemplateId
- The ID of the [AWS::EC2::LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) . You must specify either a `LaunchTemplateName` or a `LaunchTemplateId` .this
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty.Builder launchTemplateName(java.lang.String launchTemplateName)
launchTemplateName
- The name of the [AWS::EC2::LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) . You must specify either a `LaunchTemplateName` or a `LaunchTemplateId` .this
public CfnAutoScalingGroup.LaunchTemplateSpecificationProperty build()
CfnAutoScalingGroup.LaunchTemplateSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided