Struct aws_sdk_autoscaling::types::MixedInstancesPolicy
source · #[non_exhaustive]pub struct MixedInstancesPolicy {
pub launch_template: Option<LaunchTemplate>,
pub instances_distribution: Option<InstancesDistribution>,
}Expand description
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.
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<LaunchTemplate>One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.
instances_distribution: Option<InstancesDistribution>The instances distribution.
Implementations§
source§impl MixedInstancesPolicy
impl MixedInstancesPolicy
sourcepub fn launch_template(&self) -> Option<&LaunchTemplate>
pub fn launch_template(&self) -> Option<&LaunchTemplate>
One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.
sourcepub fn instances_distribution(&self) -> Option<&InstancesDistribution>
pub fn instances_distribution(&self) -> Option<&InstancesDistribution>
The instances distribution.
source§impl MixedInstancesPolicy
impl MixedInstancesPolicy
sourcepub fn builder() -> MixedInstancesPolicyBuilder
pub fn builder() -> MixedInstancesPolicyBuilder
Creates a new builder-style object to manufacture MixedInstancesPolicy.
Trait Implementations§
source§impl Clone for MixedInstancesPolicy
impl Clone for MixedInstancesPolicy
source§fn clone(&self) -> MixedInstancesPolicy
fn clone(&self) -> MixedInstancesPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MixedInstancesPolicy
impl Debug for MixedInstancesPolicy
source§impl PartialEq for MixedInstancesPolicy
impl PartialEq for MixedInstancesPolicy
source§fn eq(&self, other: &MixedInstancesPolicy) -> bool
fn eq(&self, other: &MixedInstancesPolicy) -> bool
self and other values to be equal, and is used
by ==.