Struct aws_sdk_emr::types::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 Amazon 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 Amazon 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§
source§impl 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 Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
sourcepub fn rules(&self) -> &[ScalingRule]
pub fn rules(&self) -> &[ScalingRule]
The scale-in and scale-out rules that comprise the automatic scaling policy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none().
source§impl AutoScalingPolicyDescription
impl AutoScalingPolicyDescription
sourcepub fn builder() -> AutoScalingPolicyDescriptionBuilder
pub fn builder() -> AutoScalingPolicyDescriptionBuilder
Creates a new builder-style object to manufacture AutoScalingPolicyDescription.
Trait Implementations§
source§impl Clone for AutoScalingPolicyDescription
impl Clone for AutoScalingPolicyDescription
source§fn clone(&self) -> AutoScalingPolicyDescription
fn clone(&self) -> AutoScalingPolicyDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AutoScalingPolicyDescription
impl Debug for AutoScalingPolicyDescription
source§impl PartialEq for AutoScalingPolicyDescription
impl PartialEq for AutoScalingPolicyDescription
source§fn eq(&self, other: &AutoScalingPolicyDescription) -> bool
fn eq(&self, other: &AutoScalingPolicyDescription) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AutoScalingPolicyDescription
Auto Trait Implementations§
impl Freeze for AutoScalingPolicyDescription
impl RefUnwindSafe for AutoScalingPolicyDescription
impl Send for AutoScalingPolicyDescription
impl Sync for AutoScalingPolicyDescription
impl Unpin for AutoScalingPolicyDescription
impl UnwindSafe for AutoScalingPolicyDescription
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more