Struct aws_sdk_securityhub::types::AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
source · #[non_exhaustive]pub struct AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails {
pub on_demand_allocation_strategy: Option<String>,
pub on_demand_base_capacity: Option<i32>,
pub on_demand_percentage_above_base_capacity: Option<i32>,
pub spot_allocation_strategy: Option<String>,
pub spot_instance_pools: Option<i32>,
pub spot_max_price: Option<String>,
}Expand description
Information about the instances distribution.
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.on_demand_allocation_strategy: Option<String>How to allocate instance types to fulfill On-Demand capacity. The valid value is prioritized.
on_demand_base_capacity: Option<i32>The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.
on_demand_percentage_above_base_capacity: Option<i32>The percentage of On-Demand Instances and Spot Instances for additional capacity beyond OnDemandBaseCapacity.
spot_allocation_strategy: Option<String>How to allocate instances across Spot Instance pools. Valid values are as follows:
-
lowest-price -
capacity-optimized -
capacity-optimized-prioritized
spot_instance_pools: Option<i32>The number of Spot Instance pools across which to allocate your Spot Instances.
spot_max_price: Option<String>The maximum price per unit hour that you are willing to pay for a Spot Instance.
Implementations§
source§impl AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
impl AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
sourcepub fn on_demand_allocation_strategy(&self) -> Option<&str>
pub fn on_demand_allocation_strategy(&self) -> Option<&str>
How to allocate instance types to fulfill On-Demand capacity. The valid value is prioritized.
sourcepub fn on_demand_base_capacity(&self) -> Option<i32>
pub fn on_demand_base_capacity(&self) -> Option<i32>
The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.
sourcepub fn on_demand_percentage_above_base_capacity(&self) -> Option<i32>
pub fn on_demand_percentage_above_base_capacity(&self) -> Option<i32>
The percentage of On-Demand Instances and Spot Instances for additional capacity beyond OnDemandBaseCapacity.
sourcepub fn spot_allocation_strategy(&self) -> Option<&str>
pub fn spot_allocation_strategy(&self) -> Option<&str>
How to allocate instances across Spot Instance pools. Valid values are as follows:
-
lowest-price -
capacity-optimized -
capacity-optimized-prioritized
sourcepub fn spot_instance_pools(&self) -> Option<i32>
pub fn spot_instance_pools(&self) -> Option<i32>
The number of Spot Instance pools across which to allocate your Spot Instances.
sourcepub fn spot_max_price(&self) -> Option<&str>
pub fn spot_max_price(&self) -> Option<&str>
The maximum price per unit hour that you are willing to pay for a Spot Instance.
source§impl AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
impl AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
sourcepub fn builder(
) -> AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetailsBuilder
pub fn builder( ) -> AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetailsBuilder
Creates a new builder-style object to manufacture AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.
Trait Implementations§
source§impl Clone for AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
impl Clone for AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
source§fn clone(
&self
) -> AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
fn clone( &self ) -> AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
impl Debug for AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
source§impl PartialEq for AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
impl PartialEq for AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
source§fn eq(
&self,
other: &AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
) -> bool
fn eq( &self, other: &AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails ) -> bool
self and other values to be equal, and is used
by ==.