#[non_exhaustive]pub struct AutoScalingPolicyStateChangeReason {
pub code: Option<AutoScalingPolicyStateChangeReasonCode>,
pub message: Option<String>,
}Expand description
The reason for an AutoScalingPolicyStatus change.
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.code: Option<AutoScalingPolicyStateChangeReasonCode>The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
message: Option<String>A friendly, more verbose message that accompanies an automatic scaling policy state change.
Implementations§
source§impl AutoScalingPolicyStateChangeReason
impl AutoScalingPolicyStateChangeReason
sourcepub fn code(&self) -> Option<&AutoScalingPolicyStateChangeReasonCode>
pub fn code(&self) -> Option<&AutoScalingPolicyStateChangeReasonCode>
The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
source§impl AutoScalingPolicyStateChangeReason
impl AutoScalingPolicyStateChangeReason
sourcepub fn builder() -> AutoScalingPolicyStateChangeReasonBuilder
pub fn builder() -> AutoScalingPolicyStateChangeReasonBuilder
Creates a new builder-style object to manufacture AutoScalingPolicyStateChangeReason.
Trait Implementations§
source§impl Clone for AutoScalingPolicyStateChangeReason
impl Clone for AutoScalingPolicyStateChangeReason
source§fn clone(&self) -> AutoScalingPolicyStateChangeReason
fn clone(&self) -> AutoScalingPolicyStateChangeReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AutoScalingPolicyStateChangeReason
impl PartialEq for AutoScalingPolicyStateChangeReason
source§fn eq(&self, other: &AutoScalingPolicyStateChangeReason) -> bool
fn eq(&self, other: &AutoScalingPolicyStateChangeReason) -> bool
self and other values to be equal, and is used
by ==.