Struct aws_sdk_emr::types::ScalingRule
source · #[non_exhaustive]pub struct ScalingRule {
pub name: Option<String>,
pub description: Option<String>,
pub action: Option<ScalingAction>,
pub trigger: Option<ScalingTrigger>,
}
Expand description
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how Amazon 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.
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.name: Option<String>
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
description: Option<String>
A friendly, more verbose description of the automatic scaling rule.
action: Option<ScalingAction>
The conditions that trigger an automatic scaling activity.
trigger: Option<ScalingTrigger>
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
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() -> ScalingRuleBuilder
pub fn builder() -> ScalingRuleBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalingRule
impl Debug for ScalingRule
source§impl PartialEq for ScalingRule
impl PartialEq for ScalingRule
source§fn eq(&self, other: &ScalingRule) -> bool
fn eq(&self, other: &ScalingRule) -> bool
self
and other
values to be equal, and is used
by ==
.