Struct aws_sdk_emr::model::AutoScalingPolicyDescription
source · [−]#[non_exhaustive]pub struct AutoScalingPolicyDescription {
pub status: Option<AutoScalingPolicyStatus>,
pub constraints: Option<ScalingConstraints>,
pub rules: Option<Vec<ScalingRule>>,
}Expand description
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
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.status: Option<AutoScalingPolicyStatus>The status of an automatic scaling policy.
constraints: Option<ScalingConstraints>The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
rules: Option<Vec<ScalingRule>>The scale-in and scale-out rules that comprise the automatic scaling policy.
Implementations
sourceimpl AutoScalingPolicyDescription
impl AutoScalingPolicyDescription
sourcepub fn status(&self) -> Option<&AutoScalingPolicyStatus>
pub fn status(&self) -> Option<&AutoScalingPolicyStatus>
The status of an automatic scaling policy.
sourcepub fn constraints(&self) -> Option<&ScalingConstraints>
pub fn constraints(&self) -> Option<&ScalingConstraints>
The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
sourceimpl AutoScalingPolicyDescription
impl AutoScalingPolicyDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AutoScalingPolicyDescription
Trait Implementations
sourceimpl Clone for AutoScalingPolicyDescription
impl Clone for AutoScalingPolicyDescription
sourcefn clone(&self) -> AutoScalingPolicyDescription
fn clone(&self) -> AutoScalingPolicyDescription
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 AutoScalingPolicyDescription
impl Debug for AutoScalingPolicyDescription
sourceimpl PartialEq<AutoScalingPolicyDescription> for AutoScalingPolicyDescription
impl PartialEq<AutoScalingPolicyDescription> for AutoScalingPolicyDescription
sourcefn eq(&self, other: &AutoScalingPolicyDescription) -> bool
fn eq(&self, other: &AutoScalingPolicyDescription) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AutoScalingPolicyDescription) -> bool
fn ne(&self, other: &AutoScalingPolicyDescription) -> bool
This method tests for !=.
impl StructuralPartialEq for AutoScalingPolicyDescription
Auto Trait Implementations
impl RefUnwindSafe for AutoScalingPolicyDescription
impl Send for AutoScalingPolicyDescription
impl Sync for AutoScalingPolicyDescription
impl Unpin for AutoScalingPolicyDescription
impl UnwindSafe for AutoScalingPolicyDescription
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> 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