#[non_exhaustive]pub struct StackResourceDriftInformationSummary { /* private fields */ }Expand description
Summarizes information about whether the resource's actual configuration differs, or has drifted, from its expected configuration.
Implementations§
source§impl StackResourceDriftInformationSummary
impl StackResourceDriftInformationSummary
sourcepub fn stack_resource_drift_status(&self) -> Option<&StackResourceDriftStatus>
pub fn stack_resource_drift_status(&self) -> Option<&StackResourceDriftStatus>
Status of the resource's actual configuration compared to its expected configuration.
-
DELETED: The resource differs from its expected configuration in that it has been deleted. -
MODIFIED: The resource differs from its expected configuration. -
NOT_CHECKED: CloudFormation hasn't checked if the resource differs from its expected configuration.Any resources that don't currently support drift detection have a status of
NOT_CHECKED. For more information, see Resources that Support Drift Detection. If you performed anContinueUpdateRollbackoperation on a stack, any resources included inResourcesToSkipwill also have a status ofNOT_CHECKED. For more information about skipping resources during rollback operations, see Continue Rolling Back an Update in the CloudFormation User Guide. -
IN_SYNC: The resource's actual configuration matches its expected configuration.
sourcepub fn last_check_timestamp(&self) -> Option<&DateTime>
pub fn last_check_timestamp(&self) -> Option<&DateTime>
When CloudFormation last checked if the resource had drifted from its expected configuration.
source§impl StackResourceDriftInformationSummary
impl StackResourceDriftInformationSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StackResourceDriftInformationSummary.
Examples found in repository?
10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094
pub fn deser_structure_crate_model_stack_resource_drift_information_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::StackResourceDriftInformationSummary,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::StackResourceDriftInformationSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackResourceDriftStatus") /* StackResourceDriftStatus com.amazonaws.cloudformation#StackResourceDriftInformationSummary$StackResourceDriftStatus */ => {
let var_469 =
Some(
Result::<crate::model::StackResourceDriftStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackResourceDriftStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_resource_drift_status(var_469);
}
,
s if s.matches("LastCheckTimestamp") /* LastCheckTimestamp com.amazonaws.cloudformation#StackResourceDriftInformationSummary$LastCheckTimestamp */ => {
let var_470 =
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_check_timestamp(var_470);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for StackResourceDriftInformationSummary
impl Clone for StackResourceDriftInformationSummary
source§fn clone(&self) -> StackResourceDriftInformationSummary
fn clone(&self) -> StackResourceDriftInformationSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more