Struct aws_sdk_emr::model::AutoScalingPolicy  
source · #[non_exhaustive]pub struct AutoScalingPolicy { /* private fields */ }Expand description
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. An 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.
Implementations§
source§impl AutoScalingPolicy
 
impl AutoScalingPolicy
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.
sourcepub fn rules(&self) -> Option<&[ScalingRule]>
 
pub fn rules(&self) -> Option<&[ScalingRule]>
The scale-in and scale-out rules that comprise the automatic scaling policy.
source§impl AutoScalingPolicy
 
impl AutoScalingPolicy
sourcepub fn builder() -> Builder
 
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AutoScalingPolicy.
Trait Implementations§
source§impl Clone for AutoScalingPolicy
 
impl Clone for AutoScalingPolicy
source§fn clone(&self) -> AutoScalingPolicy
 
fn clone(&self) -> AutoScalingPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for AutoScalingPolicy
 
impl Debug for AutoScalingPolicy
source§impl PartialEq<AutoScalingPolicy> for AutoScalingPolicy
 
impl PartialEq<AutoScalingPolicy> for AutoScalingPolicy
source§fn eq(&self, other: &AutoScalingPolicy) -> bool
 
fn eq(&self, other: &AutoScalingPolicy) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.