@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DesiredConfiguration extends Object implements Serializable, Cloneable
Describes the desired configuration for an instance refresh.
If you specify a desired configuration, you must specify either a LaunchTemplate
or a
MixedInstancesPolicy
.
Constructor and Description |
---|
DesiredConfiguration() |
Modifier and Type | Method and Description |
---|---|
DesiredConfiguration |
clone() |
boolean |
equals(Object obj) |
LaunchTemplateSpecification |
getLaunchTemplate()
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch
Amazon EC2 instances.
|
MixedInstancesPolicy |
getMixedInstancesPolicy()
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single
Auto Scaling group.
|
int |
hashCode() |
void |
setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch
Amazon EC2 instances.
|
void |
setMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single
Auto Scaling group.
|
String |
toString()
Returns a string representation of this object.
|
DesiredConfiguration |
withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch
Amazon EC2 instances.
|
DesiredConfiguration |
withMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single
Auto Scaling group.
|
public void setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
launchTemplate
- Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to
launch Amazon EC2 instances. For more information about launch templates, see Launch templates in
the Amazon EC2 Auto Scaling User Guide.public LaunchTemplateSpecification getLaunchTemplate()
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
public DesiredConfiguration withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
launchTemplate
- Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to
launch Amazon EC2 instances. For more information about launch templates, see Launch templates in
the Amazon EC2 Auto Scaling User Guide.public void setMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
mixedInstancesPolicy
- Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a
single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
public MixedInstancesPolicy getMixedInstancesPolicy()
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
public DesiredConfiguration withMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
mixedInstancesPolicy
- Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a
single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
public String toString()
toString
in class Object
Object.toString()
public DesiredConfiguration clone()