Struct aws_sdk_autoscaling::types::DesiredConfiguration
source · #[non_exhaustive]pub struct DesiredConfiguration {
pub launch_template: Option<LaunchTemplateSpecification>,
pub mixed_instances_policy: Option<MixedInstancesPolicy>,
}Expand description
Describes the desired configuration for an instance refresh.
If you specify a desired configuration, you must specify either a LaunchTemplate or a MixedInstancesPolicy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.launch_template: Option<LaunchTemplateSpecification>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.
mixed_instances_policy: Option<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.
Implementations§
source§impl DesiredConfiguration
impl DesiredConfiguration
sourcepub fn launch_template(&self) -> Option<&LaunchTemplateSpecification>
pub fn launch_template(&self) -> Option<&LaunchTemplateSpecification>
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.
sourcepub fn mixed_instances_policy(&self) -> Option<&MixedInstancesPolicy>
pub fn mixed_instances_policy(&self) -> Option<&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.
source§impl DesiredConfiguration
impl DesiredConfiguration
sourcepub fn builder() -> DesiredConfigurationBuilder
pub fn builder() -> DesiredConfigurationBuilder
Creates a new builder-style object to manufacture DesiredConfiguration.
Trait Implementations§
source§impl Clone for DesiredConfiguration
impl Clone for DesiredConfiguration
source§fn clone(&self) -> DesiredConfiguration
fn clone(&self) -> DesiredConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DesiredConfiguration
impl Debug for DesiredConfiguration
source§impl PartialEq for DesiredConfiguration
impl PartialEq for DesiredConfiguration
source§fn eq(&self, other: &DesiredConfiguration) -> bool
fn eq(&self, other: &DesiredConfiguration) -> bool
self and other values to be equal, and is used
by ==.