Struct aws_sdk_emr::model::ScalingRule
source · #[non_exhaustive]pub struct ScalingRule { /* private fields */ }Expand description
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.
Implementations§
source§impl ScalingRule
impl ScalingRule
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A friendly, more verbose description of the automatic scaling rule.
sourcepub fn action(&self) -> Option<&ScalingAction>
pub fn action(&self) -> Option<&ScalingAction>
The conditions that trigger an automatic scaling activity.
sourcepub fn trigger(&self) -> Option<&ScalingTrigger>
pub fn trigger(&self) -> Option<&ScalingTrigger>
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
source§impl ScalingRule
impl ScalingRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ScalingRule.
Trait Implementations§
source§impl Clone for ScalingRule
impl Clone for ScalingRule
source§fn clone(&self) -> ScalingRule
fn clone(&self) -> ScalingRule
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 more