#[non_exhaustive]pub struct StackSetDriftDetectionDetails { /* private fields */ }Expand description
Detailed information about the drift status of the stack set.
For stack sets, contains information about the last completed drift operation performed on the stack set. Information about drift operations in-progress isn't included.
For stack set operations, includes information about drift operations currently being performed on the stack set.
For more information, see Detecting unmanaged changes in stack sets in the CloudFormation User Guide.
Implementations§
source§impl StackSetDriftDetectionDetails
impl StackSetDriftDetectionDetails
sourcepub fn drift_status(&self) -> Option<&StackSetDriftStatus>
pub fn drift_status(&self) -> Option<&StackSetDriftStatus>
Status of the stack set's actual configuration compared to its expected template and parameter configuration. A stack set is considered to have drifted if one or more of its stack instances have drifted from their expected template and parameter configuration.
-
DRIFTED: One or more of the stack instances belonging to the stack set stack differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted. -
NOT_CHECKED: CloudFormation hasn't checked the stack set for drift. -
IN_SYNC: All of the stack instances belonging to the stack set stack match from the expected template and parameter configuration.
sourcepub fn drift_detection_status(&self) -> Option<&StackSetDriftDetectionStatus>
pub fn drift_detection_status(&self) -> Option<&StackSetDriftDetectionStatus>
The status of the stack set drift detection operation.
-
COMPLETED: The drift detection operation completed without failing on any stack instances. -
FAILED: The drift detection operation exceeded the specified failure tolerance. -
PARTIAL_SUCCESS: The drift detection operation completed without exceeding the failure tolerance for the operation. -
IN_PROGRESS: The drift detection operation is currently being performed. -
STOPPED: The user has canceled the drift detection operation.
sourcepub fn last_drift_check_timestamp(&self) -> Option<&DateTime>
pub fn last_drift_check_timestamp(&self) -> Option<&DateTime>
Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be NULL for any stack set on which drift detection hasn't yet been performed.
sourcepub fn total_stack_instances_count(&self) -> i32
pub fn total_stack_instances_count(&self) -> i32
The total number of stack instances belonging to this stack set.
The total number of stack instances is equal to the total of:
-
Stack instances that match the stack set configuration.
-
Stack instances that have drifted from the stack set configuration.
-
Stack instances where the drift detection operation has failed.
-
Stack instances currently being checked for drift.
sourcepub fn drifted_stack_instances_count(&self) -> i32
pub fn drifted_stack_instances_count(&self) -> i32
The number of stack instances that have drifted from the expected template and parameter configuration of the stack set. A stack instance is considered to have drifted if one or more of the resources in the associated stack don't match their expected configuration.
sourcepub fn in_sync_stack_instances_count(&self) -> i32
pub fn in_sync_stack_instances_count(&self) -> i32
The number of stack instances which match the expected template and parameter configuration of the stack set.
sourcepub fn in_progress_stack_instances_count(&self) -> i32
pub fn in_progress_stack_instances_count(&self) -> i32
The number of stack instances that are currently being checked for drift.
sourcepub fn failed_stack_instances_count(&self) -> i32
pub fn failed_stack_instances_count(&self) -> i32
The number of stack instances for which the drift detection operation failed.
source§impl StackSetDriftDetectionDetails
impl StackSetDriftDetectionDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackSetDriftDetectionDetails.
Examples found in repository?
7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732
pub fn deser_structure_crate_model_stack_set_drift_detection_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StackSetDriftDetectionDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StackSetDriftDetectionDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DriftStatus") /* DriftStatus com.amazonaws.cloudformation#StackSetDriftDetectionDetails$DriftStatus */ => {
let var_323 =
Some(
Result::<crate::model::StackSetDriftStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackSetDriftStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_drift_status(var_323);
}
,
s if s.matches("DriftDetectionStatus") /* DriftDetectionStatus com.amazonaws.cloudformation#StackSetDriftDetectionDetails$DriftDetectionStatus */ => {
let var_324 =
Some(
Result::<crate::model::StackSetDriftDetectionStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackSetDriftDetectionStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_drift_detection_status(var_324);
}
,
s if s.matches("LastDriftCheckTimestamp") /* LastDriftCheckTimestamp com.amazonaws.cloudformation#StackSetDriftDetectionDetails$LastDriftCheckTimestamp */ => {
let var_325 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#Timestamp`)"))
?
)
;
builder = builder.set_last_drift_check_timestamp(var_325);
}
,
s if s.matches("TotalStackInstancesCount") /* TotalStackInstancesCount com.amazonaws.cloudformation#StackSetDriftDetectionDetails$TotalStackInstancesCount */ => {
let var_326 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TotalStackInstancesCount`)"))
}
?
)
;
builder = builder.set_total_stack_instances_count(var_326);
}
,
s if s.matches("DriftedStackInstancesCount") /* DriftedStackInstancesCount com.amazonaws.cloudformation#StackSetDriftDetectionDetails$DriftedStackInstancesCount */ => {
let var_327 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#DriftedStackInstancesCount`)"))
}
?
)
;
builder = builder.set_drifted_stack_instances_count(var_327);
}
,
s if s.matches("InSyncStackInstancesCount") /* InSyncStackInstancesCount com.amazonaws.cloudformation#StackSetDriftDetectionDetails$InSyncStackInstancesCount */ => {
let var_328 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#InSyncStackInstancesCount`)"))
}
?
)
;
builder = builder.set_in_sync_stack_instances_count(var_328);
}
,
s if s.matches("InProgressStackInstancesCount") /* InProgressStackInstancesCount com.amazonaws.cloudformation#StackSetDriftDetectionDetails$InProgressStackInstancesCount */ => {
let var_329 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#InProgressStackInstancesCount`)"))
}
?
)
;
builder = builder.set_in_progress_stack_instances_count(var_329);
}
,
s if s.matches("FailedStackInstancesCount") /* FailedStackInstancesCount com.amazonaws.cloudformation#StackSetDriftDetectionDetails$FailedStackInstancesCount */ => {
let var_330 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#FailedStackInstancesCount`)"))
}
?
)
;
builder = builder.set_failed_stack_instances_count(var_330);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackSetDriftDetectionDetails
impl Clone for StackSetDriftDetectionDetails
source§fn clone(&self) -> StackSetDriftDetectionDetails
fn clone(&self) -> StackSetDriftDetectionDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more