Struct rusoto_autoscaling::MixedInstancesPolicy
source · [−]pub struct MixedInstancesPolicy {
pub instances_distribution: Option<InstancesDistribution>,
pub launch_template: Option<LaunchTemplate>,
}
Expand description
Describes a mixed instances policy for an Auto Scaling group. With mixed instances, your Auto Scaling group can provision a combination of On-Demand Instances and Spot Instances across multiple instance types. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
You can create a mixed instances policy for a new Auto Scaling group, or you can create it for an existing group by updating the group to specify MixedInstancesPolicy
as the top-level property instead of a launch configuration or launch template.
Fields
instances_distribution: Option<InstancesDistribution>
Specifies the instances distribution. If not provided, the value for each property in InstancesDistribution
uses a default value.
launch_template: Option<LaunchTemplate>
Specifies the launch template to use and optionally the instance types (overrides) that are used to provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.
Trait Implementations
sourceimpl Clone for MixedInstancesPolicy
impl Clone for MixedInstancesPolicy
sourcefn clone(&self) -> MixedInstancesPolicy
fn clone(&self) -> MixedInstancesPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MixedInstancesPolicy
impl Debug for MixedInstancesPolicy
sourceimpl Default for MixedInstancesPolicy
impl Default for MixedInstancesPolicy
sourcefn default() -> MixedInstancesPolicy
fn default() -> MixedInstancesPolicy
Returns the “default value” for a type. Read more
sourceimpl PartialEq<MixedInstancesPolicy> for MixedInstancesPolicy
impl PartialEq<MixedInstancesPolicy> for MixedInstancesPolicy
sourcefn eq(&self, other: &MixedInstancesPolicy) -> bool
fn eq(&self, other: &MixedInstancesPolicy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MixedInstancesPolicy) -> bool
fn ne(&self, other: &MixedInstancesPolicy) -> bool
This method tests for !=
.
impl StructuralPartialEq for MixedInstancesPolicy
Auto Trait Implementations
impl RefUnwindSafe for MixedInstancesPolicy
impl Send for MixedInstancesPolicy
impl Sync for MixedInstancesPolicy
impl Unpin for MixedInstancesPolicy
impl UnwindSafe for MixedInstancesPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more